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

@sc-db/sdk

v0.1.1

Published

TypeScript SDK for the SCDB API — open Star Citizen data (DataForge)

Readme

@sc-db/sdk

Typed TypeScript client for the SCDB API — open, free data for Star Citizen, derived 100% from the game files (DataForge + the Data.p4k archive): ships, items, FPS gear, missions & contracts, crafting blueprints, the 3D starmap, and per-body mining tables.

The API is public and read-only — no API key, no auth. Types are generated from the API's OpenAPI spec, so the client always matches the live server.

Install

npm i @sc-db/sdk

Usage

import { createScdb } from "@sc-db/sdk";

const scdb = createScdb();              // defaults to https://api.sc-db.fr

// ships
const ships = await scdb.ships({ name: "gladius" });
const ship = await scdb.ship(guid);     // detail + default loadout

// items / FPS gear (filter by type, size, manufacturer…)
const rifles = await scdb.items({ category: "fps_weapon", size: 3 });

// mining — what's mineable where, with probabilities
const cellin = await scdb.miningBody("Stanton2a");
const spots = await scdb.miningProspect(["Quantainium", "Taranite"]);  // best places

// starmap
const systems = await scdb.starmapSystems();
const crusader = await scdb.starmapObject("Stanton2");

Point it at your own instance with createScdb({ baseUrl: "https://…" }).

What you can query

| Area | Methods | | --- | --- | | Meta | stats · meta · types | | Records (raw + graph) | records · record · refs · refsIn | | Ships | ships · ship | | Items | items · itemFacets · item · compareItems | | Missions & contracts | missions · mission · contracts · contract · contractTypes · contractFactions | | Blueprints | blueprints · blueprint · blueprintCategories | | Starmap & locations | starmap · starmapObject · starmapSystems · locations · locationTypes | | Mining | miningBodies · miningBody · miningElements · miningDeposits · miningProspect | | Localization | localization · localizationKey |

Every method is fully typed (request + response). Errors throw ScdbError. scdb.raw exposes the underlying openapi-fetch client as an escape hatch.

Caching

GET responses are cached in memory. The data only changes once per game patch, so the cache never expires by time — instead it's keyed on the build version and refreshes automatically when the API ships a new patch:

await scdb.checkVersion();   // poll for a new patch; flushes the cache if it changed
scdb.clearCache();           // drop everything manually
createScdb({ cache: false }); // opt out entirely

Rate limit

The public API is rate-limited per IP (120 requests / 60s by default). On 429 the response carries Retry-After. Please cache responses (the SDK does) rather than hammering it — and use this client instead of scraping the website.

Links

  • API reference (Swagger): https://api.sc-db.fr/docs
  • OpenAPI spec: https://api.sc-db.fr/openapi.json
  • Website: https://sc-db.fr
  • Source: https://github.com/Romain-Boudot/sc-db

License

MIT · Unofficial project, not affiliated with Cloud Imperium Games. Data belongs to CIG; this only re-exposes what ships in the game client.