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

@mokronos/wfkit

v0.2.0

Published

The workflow authoring surface — the stable API agents design against.

Readme

Use with your agent → Copy the guide into your chat so your agent can install wfkit and run a real workflow for you.

@mokronos/wfkit

@mokronos/wfkit is the Bun-first SDK for authoring and running durable workflows in plain TypeScript. Workflows have typed inputs, outputs, and errors; the engine (built on @effect/workflow) persists every step result, timer, and signal wait in SQLite, so executions replay deterministically and survive process restarts.

bun add @mokronos/wfkit
import { defineStep, defineWorkflow, run, t } from "@mokronos/wfkit"

const printMessage = defineStep({
  name: "PrintMessage",
  input: t.struct({ message: t.string }),
  output: t.void,
  execute: async (input) => {
    console.log(input.message)
  }
})

export const HelloWorkflow = defineWorkflow({
  name: "HelloWorkflow",
  version: 1,
  input: t.struct({ message: t.string }),
  output: t.void,
  run: function* (input, ctx) {
    yield* ctx.run(printMessage, {
      message: input.message.trim()
    })
  }
})

run(HelloWorkflow, { message: "hello from @mokronos/wfkit" })

Subpath exports: @mokronos/wfkit/schemas (shared Effect schemas) and @mokronos/wfkit/testing (test helpers).

Generic integrations

integration(...) is one durable node for MCP tools and HTTP/OpenAPI operations. Authentication is configured separately with auth(...); only the reference is part of the workflow definition, while the credential is resolved immediately before execution.

import { auth, defineWorkflow, integration, t } from "@mokronos/wfkit"

const CreatedIssue = t.struct({ id: t.string, title: t.string })

const createIssue = integration({
  source: { kind: "mcp", url: "https://mcp.example.com/mcp" },
  operation: "create_issue",
  auth: { kind: "bearer", credential: auth("linear-oauth") },
  input: t.struct({ teamId: t.string, title: t.string }),
  output: CreatedIssue
})

export const CreateIssue = defineWorkflow({
  name: "CreateIssue",
  version: 1,
  input: t.struct({ teamId: t.string, title: t.string }),
  output: CreatedIssue,
  run: function* (input, ctx) {
    return yield* ctx.run(createIssue, input)
  }
})

The global CLI first resolves auth("linear-oauth") from its encrypted local connection store, then falls back to LINEAR_OAUTH. Custom runtimes can provide any SecretResolver. API-key, bearer-token, and custom-header authentication are also supported.

Discover operation schemas and establish a new MCP OAuth connection without copying a token:

wf integrations search linear --kind mcp
wf integrations show linear.app
wf integrations connect linear.app --scopes read
wf integrations inspect-mcp linear.app --connection linear_oauth_app --json
wf integrations connections

connect discovers RFC 9728 protected-resource metadata and RFC 8414 authorization-server metadata, dynamically registers a public client when the server advertises RFC 7591, opens the authorization-code + PKCE flow in the browser, and receives the callback on a one-use loopback listener. Access and refresh tokens are AES-GCM encrypted in ~/.wf/connections.sqlite; the separate key file is created with user-only permissions. Token values are never workflow inputs, source, CLI output, or durable history. Each connection is bound to its authorized resource, so reusing its id with another endpoint is rejected before an authorization header is created.

OpenAPI 3.x JSON and YAML documents can be inspected in the same agent-facing format:

wf integrations inspect-openapi https://example.com/openapi.json --json

CLI

The CLI is distributed separately as @mokronos/wf and installs a global, standalone wf command:

bun install --global @mokronos/wf
wf install
wf web

Use wf for the full lifecycle:

wf create <workflow-id> [--name <workflow-name>] [--source <typescript>] [--file <path>] [--version <version>] [--force]
wf list
wf run <workflow-id> [json-input]
wf runs
wf history <execution-id>
wf signal <run-id> <signal-name> [json-payload] [--actor <actor>]
wf integrations --help

Use wf help <command> or wf <command> --help for command-specific options and examples.

Global CLI state lives in ~/.wf/wf.sqlite; durable engine state lives in ~/.wf/engine.sqlite; encrypted integration credentials live in ~/.wf/connections.sqlite with their key in ~/.wf/connections.key.

Bun is the supported runtime. Source and documentation live at https://github.com/mokronos/wf.