Start here
Connect your app
Spool learns about errors from your application through Spool's own SDK, @just-every/spool. Every error belongs to a project and to a release you have registered, so Spool can tell which build it came from.
During first-project setup, Send test error checks the new key and release from Spool itself; choose Continue to workbench afterwards. To check errors from your own application, follow the steps below.
The Capture page in the workbench walks through these steps for the selected project and fills in its own address and the latest release for you.
Details
Browser capture without Node.js or npm
Download /errors-capture.js from your Spool installation (the Capture page links to it), and serve the file alongside your browser app. In a module script, initialise the helper once:
<script type="module">
import { installBrowserCapture } from './errors-capture.js';
installBrowserCapture({ endpoint: 'http://127.0.0.1:8787', project: 'web-app',
ingestKey: 'YOUR_INGEST_KEY', release: 'r42', build: 'b1907' });
</script>
Use your Spool address, project key and registered release/build, and allow your application's exact origin on Capture. This helper captures browser errors and unhandled rejections without npm or a bundler. For Node, Workers or build-time map tooling, use the SDK below.
The browser helper skips a second report of the same Error object within 100 ms. Separate throws can create separate occurrences even when they share a message and location. The helper also limits bursts at each error location.
1.Add the Spool SDK
Install the package and initialize it once in your application, with your Spool address, the project and its ingest key:
Run this in your application’s repository, with Node.js and npm installed and available on PATH. The Spool installer’s private Node runtime runs Spool itself; it does not put Node or npm on your shell’s PATH for your application.
npm install @just-every/spool
import { init } from '@just-every/spool';
init({ endpoint: "http://127.0.0.1:8787", project: "web-app", ingestKey: 'YOUR_INGEST_KEY',
release: "r42", build: "b1907" });
It listens for errors and unhandled promise rejections in the browser, next to anything else you already use. Add explicit labels with breadcrumb('checkout', 'payment submitted'); Spool never collects form values, requests or console output on its own, and it removes common secrets before anything leaves the page.
Browsers can only send to Spool from origins you allow: add your application's exact origin on the Capture page.
On a server, import init and captureException from @just-every/spool/node. In a Cloudflare Worker, call captureException(error, options, ctx) from @just-every/spool/worker; it keeps the Worker alive with ctx.waitUntil until Spool answers.
2.Register the release
Open Releases and add the release name and build your application reports, such as r42 and b1907. Register each release in the order you ship them: that order is how Spool knows a resolved issue has come back in a later release. Spool refuses errors from releases it does not know.
3.Upload the source maps
Spool matches each bundle to its source map using a bundle debug ID, a UUID stored in both the JavaScript bundle and its map. Use the plugin or command below to create that matching pair and upload the map. For a manual upload in Releases, use the ID from the prepared map's debug_id field (also written as //# debugId=… in the bundle), and select the same project, release and build your SDK reports. Typing a new ID into the upload form does not stamp your bundle. Spool keeps maps private and never fetches source files from the internet. The prepared-map picker on Releases accepts flat V3 maps up to 256 KiB. The project artifact-storage byte cap also applies.
You can also upload maps from your build with a deploy key from Settings. A deploy key can only register releases and upload maps for its project. Keep the key in your build's environment, never in your application's source. With Vite or Rollup, add the SDK's plugin:
import { spoolSourceMaps } from '@just-every/spool/vite';
export default {
build: { sourcemap: true },
plugins: [spoolSourceMaps({ endpoint: 'https://spool.example', project: 'web', release: 'web@1.2.0', build: 'build-42', keyEnv: 'SPOOL_DEPLOY_KEY' })],
};
With any other bundler, run the command-line tool after the build:
npx spool-sourcemaps --endpoint https://spool.example --project web \
--release web@1.2.0 --build build-42 --key-env SPOOL_DEPLOY_KEY dist/app.js
Each bundle needs its .map next to it. Run the tool before publishing the built application: it rewrites the bundle and map with the matching debug ID, so serve those resulting files. Both tools register the release, mark each bundle so the SDK can match its errors to the map, and upload the maps. A refused upload fails the build. Confirm success by triggering an error in the exact stamped build and checking its original-source frame as described below.
Spool's source map CLI adds a debug-ID registration line to the generated bundle. If an earlier retained native JavaScript event in the same release and build matches the stamped frame's type, file, function and column, Spool can use the pre-stamp generated line for grouping once the exact artifact maps that shifted position. Repeats follow that grouping across releases. A new debug ID needs its own matching map. The stack and source-map lookup still show the reported coordinates.
4.Check it works
Trigger an error in your application, then open Capture and choose Check for events. Open the received issue in Issues and check that its stack maps to your original source using the matching release, build and uploaded map.
For a check from inside Spool, first-project setup has Send test error, which registers the release shown and sends one sample error with the new key. Choose Continue to workbench to see it in Issues. Later, Capture test exception on Capture sends a test using your ingest key and a release you already registered. Both are labelled as Spool sample evidence in the issue, without a map-upload or reproducer step. These tests check ingestion from Spool's own origin; they do not check your app's origin, SDK installation or source maps.
Keys for anything outside this checkout
Run Spool with ~/.local/bin/rer dev and open the private RER_OPEN link to create your project and keys. With rer dev v2 (using the rer version pinned in package.json), your application can use the dev-minted ingest key against local Spool directly. Your build can use a dev-minted deploy key there too. Neither needs the checkout's private owner gate, even when the application or build runs from another repository on this computer.
| Key | Scope | Local dev gate required? |
|---|---|---|
| Ingest | Send events to one project | No |
| Deploy | Register releases and upload source maps for one project | No |
| Agent | Read evidence for one project; no writes | Yes, for dev-minted keys |
Allow your browser application's exact origin on Capture, and register its release/build before sending errors. Browser capture deliberately omits owner credentials. Never put RER_OPEN, its rer-dev fragment value or SPOOL_DEV_KEY in a browser app, SDK init, browser environment variable or build output. Ingest admission does not grant owner access or evidence reads.
The rer-dev fragment is the private checkout gate used for owner entry and local read-only agent access. For a trusted local coding agent, extract only that value privately into SPOOL_DEV_KEY and use the absolute path to Spool's CLI from your app repository; see local agent access. Keep the gate out of shared configuration and source control.
Deployed Spool refuses every dev-minted key, including ingest and deploy keys. Sign in to the deployed installation and create fresh keys for that installation. Private archives exclude all project grants, including dev-minted grants; recreate keys after restore. Local mail is suppressed, so no email or mailbox workaround is needed. Stop with ~/.local/bin/rer dev --stop before deploy, verify, reset or data transfer.
Already using Sentry? Point your DSN here
Spool also accepts JavaScript errors from the unmodified Sentry browser and Node SDKs. Replace only the DSN with the one Spool shows for your project, and keep your release and dist settings. Spool keeps exceptions and stack traces, observed sessions and release health, bounded transaction timing summaries, text feedback and SDK-reported client-discard counts. Full traces and individual spans, replays, profiles, attachments, logs and metrics are not retained; unsupported items are counted by category. Feedback contact and screenshots are excluded. Cron check-ins route to a connected Uptime heartbeat or are counted as unrouted. The switching guide has the details.
See supported languages for the exact native/Sentry Python and Go grammars, limits, repository path mapping, privacy and unavailable symbolication.
Use a browser loader tag
For an existing Sentry Loader Script installation, open Settings → Project keys → Details for its capture key. Set the shipped SDK version, tracing sample rate, replay session/error sample rates and feedback option there. All three rates start at zero and feedback starts off; choose any higher rate explicitly. Paste that key's public DSN client key into the unsaved tag field to fill:
<script src="https://YOUR_SPOOL_ORIGIN/sdk/YOUR_INGEST_KEY.min.js" crossorigin="anonymous"></script>
The SDK bundle is built into Spool and served from its own origin. No CDN fetch is needed. The default loader buffers init, addBreadcrumb, captureMessage, captureException, captureEvent, withScope and showReportDialog. An error, unhandled rejection or capture/report-dialog call loads the SDK once; non-capture calls stay queued. Sentry.forceLoad() or data-lazy="no" loads immediately. Enabling tracing, replay or feedback also loads immediately. Automatic breadcrumbs before SDK initialization are unavailable.
Define window.sentryOnLoad before the tag or call Sentry.onLoad(callback) after it. Each callback runs once, with a client initialized for that key. Later onLoad registrations run immediately. To keep release identity, call Sentry.init({release: 'web@1.2.0', dist: 'build-42'}) in the callback; the loader retains the key's DSN and settings. Events without a release use ordinary Sentry intake: they are accepted and counted without inventing a release. Matching release/dist events group and count like directly bundled browser SDK events.
Settings apply on the next script load. Disabling the loader and revoking its capture key are separate actions: disabled, revoked and unknown loader keys all answer 404 with no script or DSN. Disabling a loader does not revoke an SDK already loaded by a page. The script contains only the public DSN and that key's options. Your application's origin must still be allowed in Capture.
After restoring a private archive, create new capture keys before using the loader.