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

@concile/workflow

v0.1.5

Published

Durable multi-step workflows for concile: write a plain async handler that calls steps, and the engine journals every step's outcome and replays deterministically, so a run survives crashes, restarts, and deploys without re-running completed work.

Readme

@concile/workflow

Durable multi-step workflows for concile: write a plain async handler that calls steps, and the engine journals every step's outcome and replays deterministically, so a run survives crashes, restarts, and deploys without re-running completed work.

Install

bun add @concile/workflow @concile/scheduler

@concile/workflow requires the scheduler component — every step dispatches through the scheduler's job queue and inherits its retries, backoff, and cascading cancel.

Enable

Define workflows with workflow.define and compose the component alongside defineScheduler() in concile.config.ts (composing defineWorkflow without the scheduler throws at compose time):

// concile.config.ts
import { defineConfig } from "@concile/component";
import { defineScheduler } from "@concile/scheduler";
import { defineWorkflow, workflow } from "@concile/workflow";

const fulfillOrder = workflow.define({
  handler: async (step, { orderId }: { orderId: string }) => {
    await step.runMutation("orders:_reserveStock", { orderId });
    await step.runAction("payments:_charge", { orderId });
    await step.runMutation("orders:_markFulfilled", { orderId });
  },
});

export default defineConfig({
  components: [
    defineScheduler(),
    defineWorkflow({ workflows: { "workflows:fulfillOrder": fulfillOrder } }),
  ],
});

Usage

Start (or cancel) a run from any mutation or action via ctx.workflow:

export const placeOrder = mutation({
  handler: async (ctx, { orderId }) => {
    const runId = await ctx.workflow.start("workflows:fulfillOrder", { orderId });
    return runId;
  },
});

Features

  • workflow.define({ handler }) with step.runMutation / step.runQuery / step.runAction / step.sleep / step.sleepUntil — each step's result is journaled; advancing a run replays the handler from the top and resolves completed steps instantly from the journal.
  • ctx.workflow.start(ref, args) / cancel(runId, opts?) / sendEvent(runId, name, payload?), callable from mutations and actions alike. start writes in the calling mutation's own transaction: if the mutation rolls back, the workflow never started.
  • step.waitForEvent(name) — a durable external signal: the run parks on an events row (no scheduler job) until ctx.workflow.sendEvent resolves it.
  • Fan-out/fan-in with Promise.all([step.a(), step.b()]), bounded by maxParallelism (default 16).
  • Saga compensation: per-step { compensate: FnRef } handlers unwind in reverse step order on failure, and cancel compensates by default (opt out with { compensate: false }). A failed compensation halts the unwind and terminal-fails with both errors preserved.
  • Per-step { maxAttempts } retry caps (also applied to that step's compensation), plus workflow-level onComplete/context round-trip.
  • A live workflow:status query for observing runs reactively.
  • Handlers must be deterministic: no fetch, Math.random(), or Date.now() in the handler body — put non-deterministic work inside a step.runAction.

Part of Concile — docs at https://concile-six.vercel.app/docs

License: FSL-1.1-Apache-2.0