Launching today

JSLab
Write code. Watch it run as you type.
2 followers
Write code. Watch it run as you type.
2 followers
JSLab is a fast, native JavaScript and TypeScript scratchpad for macOS. Write code, watch it run as you type, and read every result beside the line that produced it. No project, no build step, no telemetry. Apple Silicon. A runaway loop never kills the editor.






Free Options
Launch Team / Built With

AWS Activate CreditsCredits that fuel your startupās next milestone
Promoted


Hi Product Hunt!
JSLab is a native JavaScript & TypeScript scratchpad for Apple Silicon Macs. You type, it runs, and every result, log and error shows up beside the line that produced it. No project, no build step.
Why we built it: trying an idea in JavaScript usually means a new folder, a package.json and a console.log on every other line. JSLab skips all of that. Open a tab, write code, and the answers are already there.
What's inside:
ā Auto Log shows the value of every top-level expression, no console.log needed. Add //? to log any line, or a logpoint to log one without touching the code.
ā Errors point at your line, with stack frames mapped back to your TypeScript source.
ā Three runtimes per tab: Bun, a real browser page, or Browser & Node APIs. Switch in the status bar and the tab re-runs.
ā npm packages install once for every tab, with types, autocomplete, and a quick-fix install for an import you don't have yet.
ā A Web View for DOM, canvas and React, right beside your code.
ā Ask AI with your own OpenAI, Anthropic or Gemini key (kept in the macOS Keychain), or Ollama running locally. Changes come back as a diff you can apply or discard.
ā 21 built-in themes, and you can import your VS Code theme.
No telemetry, and a runaway loop never takes the editor down.
We'd love to hear what you'd use a scratchpad like this for, and what's missing. We're here all day to answer questions.