Docs / Start here
Where your work goes
Open tabs come back when you start JSpark again. The Library keeps what you choose.
On this page
JSpark keeps your code for you, in two places: your open tabs, and the Library. You don’t need to save a file. When you want one, File → Save to File… writes a tab’s code to a file, and File → Open… opens a file as a copy in a new tab.
Open tabs are kept
JSpark saves your open tabs as you type. The next time you start it, every tab comes back as you left it: the code, the tab’s name, where the cursor was, and its Language and Load Mode.
The output is not kept. Run a Snippet again to see it.
Close a tab
If a tab has changes that are not in the Library, JSpark asks before closing it. Click Back to keep it open, or Close to close it.
A tab that still shows its Starter’s demo, or a Saved Snippet just as you opened it, closes without asking. To stop the question, turn off Settings → General → Ask before closing unsaved work.
Closed a tab by mistake? Choose File → Reopen Closed Snippet (⌘⇧T or Ctrl+Shift+T). The window remembers the tabs you closed only until it closes. See Tabs and the Home screen.
Keep a Snippet in the Library JSpark+
To keep a Snippet after its tab is closed, add it to the Library:
- Click Add to Library, the bookmark on the rail, or choose File → Add to Library…
- Check the Title. It starts as the tab’s name.
- Add Notes and Tags if you like. They help you find it later.
- Click Save. The bookmark fills for a moment.
A Saved Snippet is a copy. Changing the tab afterwards does not change it, and saving again makes a second Saved Snippet. Open the Library with ⌘⇧L or Ctrl+Shift+L. See The Library.
Saving to the Library needs JSpark+. In JSpark, everything already saved stays readable: you can search, open, copy and export it.
Take your code out
To use your code somewhere else, save it to a file or copy it:
- Choose File → Save to File… (⌘⇧S or Ctrl+Shift+S). JSpark writes the tab’s code to a new file, ready to run. See Open and save files.
- In a tab, press ⌘A or Ctrl+A to select all the code, then ⌘C or Ctrl+C to copy it.
- In the Library, click Copy code under a Saved Snippet.
Back up everything
Export Library saves every Saved Snippet to one file. It works in JSpark and JSpark+.
- Choose File → Export Library…, or click … at the bottom of the Library’s list and choose Export Library…
- Choose where to save the file. JSpark names it after the day, such as
JSpark Library 2026-09-30.json.
The file holds each Saved Snippet’s title, notes, Tags and code, as JSON you can read in any text editor. Your open tabs are not in it: add a Snippet to the Library first, or save it to a file.
In JSpark+, Import Library… reads such a file back, on this computer or a new one. It only adds: a Saved Snippet already in the Library is kept as it is. See Export and import.
The pictures show JSpark on a Mac. On Windows, the window buttons are at the top right, the menus are in theMenu button at the left end of the tabs, and shortcuts use Ctrl where a Mac uses ⌘. The rest works the same way.