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

@evoke-build/evoke

v0.18.0

Published

You invoke a function; you evoke a reflex. The SDK: load a project of reflexes, decide with Jev, run.

Readme

@evoke-build/evoke

You invoke a function; you evoke a reflex. A reflex is a small program a classifier selects and calls. The SDK loads a project of reflexes, decides what an input asks for, and runs it. The classifier is Jev, TypeSafe AI's System One model. It answers closed questions with calibrated probabilities. jev() reaches it through TypeSafe AI's own API and openjev() through OpenJEV, an independent service; the core is bound to neither. The rules run in core.wasm, the same core as the evoke CLI. The SDK adds files, the network and a process.

Six things to learn, in order: reflex() · load() · handle() · a Decision · run() · replay(). Each is explained in full in the manual.

The first hour

// app.ts · npm i @evoke-build/evoke · export TYPESAFE_API_KEY=… · node app.ts "timer for 10 minutes"
import { load, reflex } from "@evoke-build/evoke"
import { jev } from "@evoke-build/evoke/jev"

const timer = reflex({
  description: "Start a countdown timer.",
  effect: "write",
  confirm: "Start a {duration} timer?",
  args: { duration: { ask: "How long?", pick: "duration" } },
  examples: { "timer for 10 minutes": { duration: "10 minutes" } },
}, async ({ duration }) => {                                   // duration: number — seconds, typed from the manifest
  setTimeout(() => console.log("ring"), duration * 1000)
  return `ringing in ${duration} s`
})

const project = await load({ reflexes: { timer }, adapter: jev() })

const handled = await project.handle(process.argv[2] ?? "", {
  confirm: async d => { console.log(d.prompt.template); return true },   // "Start a 10 minutes timer?"
  ask: async d => ({ duration: "10 minutes" }),                           // d.missing says what is missing and why
})
console.log(handled.outcome === "ran" ? handled.result.text : handled.outcome)

A Decision is a union. Narrow it by outcome, one of run, confirm, ask and abstain, then by reflex. It carries args as the classifier read them, values as the body receives them, call as one line, confidence, the prompt of a confirm, the missing of an ask, and the trace of every adapter call.

With files

evoke add evoke-build/reflexes next to the app writes evoke.toml, evoke.lock and evoke.d.ts. Overlays and vocabularies under the same root tune the wording. That includes a reflex handed as code.

import type { Reflexes } from "./evoke.d.ts"

const project = await load<Reflexes>({ root: import.meta.dirname })       // the adapter evoke.toml names
const tenant = project.with({ vocab: { rooms: await db.rooms(user) } })   // a tenant's words, a tenant's plan; milliseconds
const d = await tenant.decide("kill the lights in the den")
if (d.outcome === "run" && d.reflex === "lights") console.log(d.values.room, d.values.state)   // typed by evoke.d.ts

Tests

import { replay } from "@evoke-build/evoke/testing"

const record = process.env.RECORD ? jev() : undefined                     // RECORD=1 asks Jev once and writes the file
const project = await load({ reflexes: { timer }, adapter: replay("answers.toml", { record }) })

Every run after the first is offline, and always gives the same answers. The file is the CLI's own answers.toml.

Errors

Every error ends in what to do: lights: vocabulary "rooms" is empty → evoke vocab rooms add <word> "<meaning>". DiagnosticError is something a person fixes. FaultError is the adapter. FailureError is a body or the machine. Each carries the structured value, and the fixing line as command. Aborts reject with the signal's own reason.