Some code needs a page, not a console.
A real page, beside your code.
A Web Snippet runs as a real page in its own process, with its console a tab away. Change only the CSS, and the page keeps its state.
One page, in Parts
A Web Snippet is one page, written in Parts: HTML, CSS and JS, each with its own undo.
Markup, style and script
A page you can click
The page runs beside the code. What it prints is in the Console tab, and switching between them keeps the page as it was.
Components and hooks
0
−+Change the CSS, keep the state
An edit that changes only the CSS goes into the running page without a reload, so its state stays. Any other edit that changes the page reloads it.
Components and hooks
0
−+A broken edit keeps the last working page
When an edit breaks the build, the last page that worked stays up, with a bar linking to the line to fix.
Markup, style and script
Tailwind, offline
Put @import "tailwindcss"; in the CSS Part, and JSpark builds Tailwind in the app, with no connection.
Markup, style and script
Imports from a CDN
A page can import a package from a URL, or use an import map, as any web page can. This needs a connection.
Markup, style and script
Open it in your own browser JSpark+
Open the page in your default browser, with its DevTools. It reloads as you edit.
Markup, style and script
A page with its own server JSpark+
Web Page + Server and React + Server add a server Part. The page reaches it with fetch("/api/…"), and each side has its own console.
A page and its server
Good to know
- Pages keep running
- Switch to another tab, and the page keeps its state while you are away.
- Its own process
- If a page freezes, only the page is stuck: Stop page ends it, and Refresh starts the last working build again. JSpark keeps working.
- No Timeline for pages
- The Timeline replays Node Snippets only. Peek works in pages too.
- Frameworks as they run them
- Vue, Svelte and Solid compile with their own compilers, so a component behaves as it does in a project.
Next time an idea needs a page, start a Web Snippet.
Not a trial: it doesn’t expire.
Windows: coming later