Catalog npm
Back to packageRELEASE DETAILS

1.0.5

npm

1baton

1Baton runner

Published21 Jun 2026
Direct dependencies11
Transitive dependenciesNot calculated

README

Current package documentation

1Baton

A local runner for the 1Baton app. Start it on your machine so the browser can execute real HTTP API calls against your internal services.

Why

Browsers can't call most internal APIs directly — they block cross-origin requests (CORS) and have no access to your private network. The runner fills that gap: it runs as a local process with full network access, receives the Playbook from the browser, calls your APIs, and streams results back in real time.

1Baton app (browser)
    │  POST /api/run      → sends the Playbook
    │  GET  /api/run/:id/stream  ← live step results
    ▼
Runner (localhost:7331)
    │  real HTTP calls
    ▼
Your internal APIs

Usage

npx 1baton --port 7331

Leave it running in a terminal while you use the 1Baton app. The app detects it automatically and switches from simulation to real execution.

Options

FlagDefaultDescription
--port, -p7331Port to listen on

How it works

  1. The browser POSTs the Playbook to /api/run and receives a runId
  2. The browser opens a streaming connection to /api/run/:runId/stream
  3. The runner executes each step sequentially, resolving variables and making real HTTP calls
  4. Each step result is streamed back as a Server-Sent Event

See RUNNER.md for a full explanation of variable scoping, output promotion, assertions, and the API reference.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 11

Native requirements
11 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.19.4runtime
cors
Environment
{
  "local_name": "cors",
  "alias": false,
  "peer_metadata": null
}
^2.8.5runtime
express
Environment
{
  "local_name": "express",
  "alias": false,
  "peer_metadata": null
}
^4.21.2runtime
jsonpath-plus
Environment
{
  "local_name": "jsonpath-plus",
  "alias": false,
  "peer_metadata": null
}
^10.3.0runtime
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^3.1.3development
supertest
Environment
{
  "local_name": "supertest",
  "alias": false,
  "peer_metadata": null
}
^7.2.2development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.8.3development
@types/cors
Environment
{
  "local_name": "@types/cors",
  "alias": false,
  "peer_metadata": null
}
^2.8.17development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.15.3development
@types/express
Environment
{
  "local_name": "@types/express",
  "alias": false,
  "peer_metadata": null
}
^5.0.2development
@types/supertest
Environment
{
  "local_name": "@types/supertest",
  "alias": false,
  "peer_metadata": null
}
^7.2.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "ce14b607776ff1ed818bf13a415f33e3856d8ec4",
  "tarball": "https://registry.npmjs.org/1baton/-/1baton-1.0.5.tgz",
  "fileCount": 10,
  "integrity": "sha512-fLoXMUPACAGs9PC2otkKuRlgxn+wberACrRM7IABWcn09Ft+wsromDyO0eehTYUMqZ9UiuKZ/Bp5RzvrLsOwAA==",
  "signatures": [
    {
      "sig": "MEUCIQC/sr0uL/m3YnkHVsi7yGGxhA3AjhMh64mbcxfEJUCMMAIgTnyGwU/tOiGIuu+XKse3Jv1b0s2z3V/FB9twU8wgorg=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 22970
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:25 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:5ddfaa87daa43e7e787d4e57ca027ee336f485cc1f58e2a4b2a4c606bbf96a14

Other collected versions

1.0.63 Jul1.0.423 May1.0.323 May1.0.223 May1.0.19 May1.0.08 MayView all collected versions →