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

@dtechvision/fabrik-runtime

v0.1.1

Published

TypeScript helpers for Fabrik/Smithers workflows.

Downloads

26

Readme

@dtechvision/fabrik-runtime

TypeScript helpers for Fabrik/Smithers workflows.

Scope

Use this package for server-side workflow code.

Do not use it for:

  • browser apps
  • generic Node libraries

Published entrypoints:

  • @dtechvision/fabrik-runtime
  • @dtechvision/fabrik-runtime/credential-pool
  • @dtechvision/fabrik-runtime/codex-auth
  • @dtechvision/fabrik-runtime/jj-shell
  • @dtechvision/fabrik-runtime/k8s-jobs

Requirements

  • ESM-capable runtime
  • TypeScript source consumption
  • Bun/Smithers-style workflow execution is the primary target

Module-specific requirements:

| Module | Requirement | |---|---| | credential-pool | mounted credential files for file-pool features | | codex-auth | Codex auth files in the credential pool layout | | jj-shell | jj and git in PATH | | k8s-jobs | Kubernetes runtime access |

Install

bun add @dtechvision/fabrik-runtime smithers-orchestrator zod

or

npm install @dtechvision/fabrik-runtime smithers-orchestrator zod

Quickstart

/** @jsxImportSource smithers-orchestrator */
import { createSmithers, Task, Workflow } from "smithers-orchestrator";
import { z } from "zod";
import { withCodexAuthPoolEnv } from "@dtechvision/fabrik-runtime/codex-auth";

const { smithers, outputs } = createSmithers(
  { report: z.object({ codexHomeSet: z.boolean() }) },
  { dbPath: process.env.SMITHERS_DB_PATH ?? ".smithers/runtime-check.db" },
);

export default smithers(() => (
  <Workflow name="runtime-package-check">
    <Task id="verify" output={outputs.report}>
      {async () => {
        const env = withCodexAuthPoolEnv({});
        return { codexHomeSet: typeof env.CODEX_HOME === "string" && env.CODEX_HOME.length > 0 };
      }}
    </Task>
  </Workflow>
));

Run:

bunx smithers run path/to/workflow.tsx --run-id runtime-package-check

Common use

Read a credential into process.env:

import { injectCredentialEnv } from "@dtechvision/fabrik-runtime/credential-pool";

injectCredentialEnv("ANTHROPIC_API_KEY");

Rotate across credential files:

import { CredentialFilePool } from "@dtechvision/fabrik-runtime/credential-pool";

const pool = new CredentialFilePool({
  prefix: "codex-auth",
  extension: ".json",
  activeDir: "/tmp/codex-active",
  activeFilename: "auth.json",
  agent: "codex",
});

pool.init();
const rotated = await pool.handleError(err);

Create a Codex agent with auth rotation:

import {
  CodexAuthBlockedError,
  createCodexAgentWithPool,
} from "@dtechvision/fabrik-runtime/codex-auth";

const codex = createCodexAgentWithPool({
  model: "gpt-5",
  cwd: process.cwd(),
  env: {},
});

try {
  await codex.generate({ prompt: "Hello" });
} catch (err) {
  if (err instanceof CodexAuthBlockedError) {
    // resumable auth exhaustion; restore credentials and resume the run
    console.log(err.details); // { total, failed, remaining, activeAuthName, failedAuths }
  }
  throw err;
}

Read the auth home directory at runtime (lazy, respects CODEX_AUTH_HOME env var):

import { getCodexAuthHome } from "@dtechvision/fabrik-runtime/codex-auth";

const home = getCodexAuthHome(); // e.g. /tmp/codex-auth-pool

Notes

  • Each RotatingCodexAgent instance owns its own pool state. Multiple agents in the same process do not interfere with each other.
  • Auth failures are tracked by file path + content hash, so replacing a credential file on disk clears its failure history.
  • Codex auth rotation emits OTEL metrics/events when an OpenTelemetry SDK is configured (events are attached to the active span, not standalone).
  • Fabrik runtime images may already ship this package.
  • Package versions follow the same v* tag line as Fabrik releases.
  • Prefer aligned Fabrik image and package versions when both are in use.