Any npm package, in every Snippet.
Search npm and read any package, in both editions. With JSpark+, install it once, and it works in Node and Web Snippets, offline.
Search npm, read a package
Type a name in Search npm… and pick a result. Its version, size, weekly downloads and README are beside the list.
Modern JavaScript date utility library
🔥️ NEW: date-fns v4.0 with first-class time zone support is out!
date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js
👉 Blog
It's like Lodash for dates
- It has 200+ functions for all occasions.
- Modular: Pick what you need. Works with webpack, Browserify, or Rollup and also supports tree-shaking.
- Native dates: Uses existing native type. It doesn't extend core objects for safety's sake.
The Starters’ packages, offline
React, Vue, Svelte and three.js come inside JSpark, so a Starter’s first Run needs no connection.
React is a JavaScript library for building user interfaces.
Required by the React Starter (^19). Stays while it’s here.
reactReact is a JavaScript library for creating user interfaces.
The react package contains only the functionality necessary to define React components. It is typically used together with a React renderer like react-dom for the web, or react-native for the native environments.
import { useState } from 'react';
import { createRoot } from 'react-dom/client';
function Counter() {
const [count, setCount] = useState(0);
return (
<>
<h1>{count}</h1>
<button onClick={() => setCount(count + 1)}>
Increment
</button>
</>
);
}Install once, for every Snippet JSpark+
Click Install. The package works in Node and Web Snippets, with its types for TypeScript.
The same package, in a page JSpark+
A package you install works in Web Snippets too. JSpark builds it for the page when you install it, so the page works offline.
Markup, style and script
Update, change the version, or remove JSpark+
When npm has a newer version, Update appears. Any version is in the menu, and Uninstall removes the package.
Modern JavaScript date utility library
🔥️ NEW: date-fns v4.0 with first-class time zone support is out!
date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js
👉 Blog
It's like Lodash for dates
- It has 200+ functions for all occasions.
- Modular: Pick what you need. Works with webpack, Browserify, or Rollup and also supports tree-shaking.
- Native dates: Uses existing native type. It doesn't extend core objects for safety's sake.
Good to know
- No install scripts run
- If a package needed one, the Packages window says “Setup skipped. It may not work.”
- Offline after install
- Installed packages work with no connection. Searching and installing need one.
- CDN imports, in both editions
- A Web Snippet can import a package from a CDN without installing it.
- Run as you type
- In a Node Snippet, an imported package waits for Run, unless JSpark knows it only computes, such as lodash, date-fns or zod.
Read any npm package, right beside your code.
Not a trial: it doesn’t expire.
Windows: coming later