MenuStart here / Where your work goes

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.

Each tab is one Snippet. All three come back the next time you start JSpark.

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:

  1. Click Add to Library, the bookmark on the rail, or choose File → Add to Library…
  2. Check the Title. It starts as the tab’s name.
  3. Add Notes and Tags if you like. They help you find it later.
  4. Click Save. The bookmark fills for a moment.
Add to Library asks for a Title, Notes and Tags; the Library then finds the Snippet by any of them.

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+.

  1. Choose File → Export Library…, or click … at the bottom of the Library’s list and choose Export Library…
  2. Choose where to save the file. JSpark names it after the day, such as JSpark Library 2026-09-30.json.
The … button at the foot of the Library's list exports or imports a Library.

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.

Esc

Type to search every docs page.

JSpark is downloading

When you open JSpark-Setup.exe, Windows may stop it once, because the installer isn’t code-signed yet. If the file came from jspark.app:

A blue Windows box, “Windows protected your PC”: Microsoft Defender SmartScreen prevented an unrecognised app from starting. Under it, the link More info, and the button Don’t run.

1Click More info.

The same box after More info: Application JSpark-Setup-1.4.0.exe, Publisher Unknown publisher, and the buttons Run anyway and Don’t run.

2Then click Run anyway.

You see this only once: updates install inside the app. More in Install JSpark.