npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@atlascrew/crucible-client

v0.1.1

Published

Typed API client for the Crucible REST and WebSocket APIs.

Downloads

47

Readme

@atlascrew/crucible-client

Typed TypeScript client for the Crucible REST and WebSocket APIs.

  • Strongly-typed methods that mirror the REST resource layout (client.simulations.start(...), client.executions.list(...), client.reports.get(...))
  • Native fetch and WebSocket (Node 22+ or modern browser) — zero runtime dependencies
  • Structured error handling via CrucibleApiError
  • Auto-reconnecting WebSocket helper with jittered backoff

Install

npm install @atlascrew/crucible-client

Usage

import { CrucibleClient } from '@atlascrew/crucible-client';

const client = new CrucibleClient({ baseUrl: 'http://localhost:3000' });

const { executionId } = await client.assessments.start('owasp-api-1-broken-auth');
const execution = await client.executions.get(executionId);
console.log(execution.status, execution.report?.score);

Per-run target URL

By default, every scenario runs against the engine's configured target (CRUCIBLE_TARGET_URL server-side). You can override the target on a per-run basis by passing targetUrl to simulations.start() or assessments.start(). This is the typical way to reuse a single Crucible deployment across multiple environments — e.g. running the same scenario against staging today and prod tomorrow from the same CI job.

const client = new CrucibleClient({ baseUrl: 'https://crucible.internal' });

// Same scenario, two environments — one Crucible deployment.
await client.simulations.start('advanced-sqli-campaign', {
  targetUrl: 'https://staging.example.com',
});

await client.simulations.start('advanced-sqli-campaign', {
  targetUrl: 'https://prod.example.com',
});

Notes:

  • targetUrl must be an absolute http/https URL with no embedded credentials and no fragment. The server validates and returns 400 with a descriptive error on bad input.
  • Omit the field to use the engine default. The client deliberately does not forward an empty targetUrl key — if you don't pass it, the server falls back to its own default.
  • Restart inherits the originating execution's target. client.executions.restart(id) does not take a targetUrl argument; it replays against whatever target the original run used. Start a new execution if you need a different target.
  • The per-execution outbound SSRF allowlist is scoped to the override target, so two concurrent runs targeting different hosts cannot pivot off each other.

Documentation

The full user guide lives at https://crucible.atlascrew.dev/user-guides/api-client. The REST endpoints are documented at https://crucible.atlascrew.dev/reference/rest-api.

License

MIT