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

@devfellowship/sdk

v0.2.0

Published

DevFellowship SDK — Supabase-compatible client with workflow primitives

Readme

@devfellowship/sdk

DevFellowship SDK v0 — Supabase-compatible client with workflow primitives.

Install

npm install @devfellowship/sdk

Usage

import { createDflClient } from "@devfellowship/sdk";

const dfl = createDflClient({
  supabaseUrl: "https://your-project.supabase.co",
  supabaseAnonKey: "your-anon-key",
  natsUrl: "nats://localhost:4222",
  engineUrl: "http://localhost:3335",
});

// Raw Supabase client (same API as @supabase/supabase-js)
const { data } = await dfl.client.from("users").select("*");

// Fire an intent (publishes to NATS DFL_INTENTS stream)
await dfl.wf.fireIntent("onboarding.new_member", {
  intentId: "unique-id-123",
  payload: { userId: "abc", email: "[email protected]" },
});

// Subscribe to workflow instance progress events
const unsub = await dfl.wf.subscribeInstance("instance-uuid", (event) => {
  console.log("Workflow event:", event);
});

// Call engine proxy endpoint
const result = await dfl.wf.proxy("my-service-node", { key: "value" });

LLM proxy

All LLM calls in the DFL fleet should go through dfl-flows-engine so we get unified OTEL spans, cost attribution, and provider-agnostic adoption. wf.chat() is a thin typed wrapper around wf.proxy() for chat-completion workflows.

Quickstart

import { createDflClient, type LlmChatResponse } from "@devfellowship/sdk";

const dfl = createDflClient({
  supabaseUrl: process.env.SUPABASE_URL!,
  supabaseAnonKey: process.env.SUPABASE_ANON_KEY!,
  engineUrl: process.env.DFL_ENGINE_URL!, // required for wf.chat / wf.proxy
});

const res = await dfl.wf.chat(
  "openrouter-chat",
  {
    model: "gpt-4.1-mini",
    messages: [
      { role: "system", content: "You are concise." },
      { role: "user", content: "Title for a 3min video about RLS?" },
    ],
    temperature: 0.4,
  },
  { appName: "lesson-studio" }
);

console.log(res.choices[0].message.content);

The appName is propagated as the X-DFL-App header so the engine can attribute cost back to the right product. If omitted, process.env.DFL_APP_NAME is used as a fallback (Node only — guarded for browser-safe usage).

Available workflow keys

These are the canonical LLM workflow definitions in dfl-flows-definitions (see dfl-flows-definitions#13). Pass any of them as the first arg to wf.chat() / wf.proxy():

| Key | Provider | Shape | |---|---|---| | openrouter-chat | OpenRouter (preferred default per DFL standard) | LlmChatRequestLlmChatResponse | | openai-chat | OpenAI direct | LlmChatRequestLlmChatResponse | | anthropic-chat | Anthropic direct | LlmChatRequestLlmChatResponse (normalized server-side) | | groq-chat | Groq | LlmChatRequestLlmChatResponse | | groq-whisper-transcribe | Groq Whisper | WhisperTranscribeRequestWhisperTranscribeResponse (use wf.proxy() not wf.chat()) |

Cancellation

Pass an AbortSignal to cancel an in-flight call:

const ctrl = new AbortController();
setTimeout(() => ctrl.abort(), 5_000);

await dfl.wf.chat(
  "openrouter-chat",
  { model: "gpt-4.1-mini", messages: [...] },
  { appName: "dfl-seo", signal: ctrl.signal }
);

Environment variables

When using createDflClientFromEnv():

| Variable | Required | Description | |---|---|---| | SUPABASE_URL | Yes | Supabase project URL | | SUPABASE_ANON_KEY | Yes | Supabase anonymous key | | DFL_NATS_URL | No | NATS server URL for workflow ops | | DFL_ENGINE_URL | No | Flows engine URL — required for wf.proxy() / wf.chat() | | DFL_APP_NAME | No | Default X-DFL-App header value (overridden by opts.appName) |