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

@fictura/node

v0.1.0

Published

Fictura backend error capture for Node — crashes, failed awaits and the errors you already log, grouped by cause on your Issues page.

Readme

@fictura/node — backend error capture

Reports your Node backend's errors to Fictura's Issues page: grouped by cause, ranked by users affected, with New / Ongoing / Escalating status and alerts on first-seen and regressions.

Zero dependencies. One file.

Install

npm install @fictura/node

Wire it (2 lines)

import { Fictura } from "@fictura/node";

const fictura = new Fictura({
  apiBase: process.env.FICTURA_API_BASE!,
  apiKey: process.env.FICTURA_API_KEY!,   // Dashboard → Setup → SDK app key
  release: process.env.GIT_SHA,
  environment: process.env.NODE_ENV,
});
fictura.install();

That's the whole integration. Three kinds of failure now reach the Issues page, and only the third asks anything of you.

1. Crashes and failed awaits. uncaughtException and unhandledRejection. Your process still dies on an uncaught error, with the same exit code — adding a listener normally suppresses that, so this puts it back.

2. Errors you already log. console.error(...) becomes an Issue:

try {
  await gemini.generate(prompt);
} catch (e) {
  console.error("Generation failed:", e);   // already an Issue. No new code.
  return fallback();
}

This matters more than it looks. Most real failures — a vendor API down, a database call that fails over — are caught and logged, never re-thrown, so the crash handlers alone would never see them. Pass captureConsole: false to opt out.

3. Anything you want to be explicit about:

catch (e) {
  fictura.captureException(e, { route: "/api/v1/generate", userId: user.id });
}

An error that is both logged and thrown is reported once, not twice.

Express

app.use(fictura.errorHandler());   // after your routes

Failed requests then carry their route template and user id, so /users/1 and /users/2 stay one issue. The error is passed on to your own handler untouched.

Guarantees

  • Never throws into your app; never blocks a response (bounded queue, drops oldest on overflow, 2s HTTP timeout, no retry storms).
  • The flush timer is unref'd — a finished script still exits.
  • Grouping is server-side: error name + top app frames + route, so node_modules internals and line-number churn don't split issues.

Also available

  • Python / FastAPIpip install fictura
  • React Native / Expo@fictura/sdk, where error capture is already on if you call Growth.init()