So far, the Snippets only printed values.
Real Node, with your own access to your computer.
A Node Snippet runs on real Node, with your access to your files, the network and other programs. Code that reaches them waits for you to press Run.
Write a real file, after you press Run
Code that reaches your files, the network or other programs doesn’t run as you type: a shield in the rail says why. Press Run, and the file is written to the Working Folder and read back.
Call an API, start a server
fetch and node:http work as in Node. A server keeps listening until you press Stop.
Run other programs
child_process runs a program on your Mac and reads its output.
One Working Folder
Every Node Run starts in the Working Folder. Reveal it in Finder, move it to a folder of your own, or empty it.
- Node snippets
- Node 24.21.0
- Web snippets
- Chromium 152.0.7977.130
- JavaScript engine
- V8 15.2.124.28
Downloads new versions in the background and installs them when you quit.
- License Agreement
- Privacy Policy
- Refund Policy
Working folder
12 KBWhere Node snippets run: a file written to a relative path, or beside __dirname, lands here and stays until you empty it.
An API key, out of your code
Keep up to 3 environment variables in Settings, and every Node Run reads them as process.env.
Run in a folder of your own JSpark+
Run in Folder… runs one Snippet in your project, so it can import your files and use your packages.
Every variable, and your .env JSpark+
Keep as many variables as you need, and the Working Folder’s .env is passed to every Node Run too.
Good to know
- Not a sandbox
- JSpark doesn’t limit a Node Run: code that deletes a file deletes it. Waiting for Run only keeps half-written code from starting.
- Reading process.env doesn’t wait
- Reading it runs as you type; changing it waits for Run.
- Where the values are kept
- Variable values stay on this Mac, encrypted with a key in your Keychain, never in the Library, an export or a problem report.
- Servers keep running
- The time limit stops only code that is busy without a pause, so a server keeps running until you press Stop.
Test code that reads files or calls an API The Working Folder Environment variables All features
When the code needs Node, it’s already here.
Not a trial: it doesn’t expire.
Windows: coming later