
JSLab
Write JavaScript and watch it run as you type
2 followers
Write JavaScript and watch it run as you type
2 followers
JSLab is a fast, native JavaScript and TypeScript scratchpad for macOS. Every result, log and error lands beside the line that produced it. Three runtimes, npm packages, a Web View for React, and Ask AI with your own key, or Ollama locally.






Free Options
Launch Team / Built With
BesydrA self-learning supervisor for coding agents
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.