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

@outl/plugin-sdk

v0.12.0-beta.172

Published

TypeScript SDK for authoring outl plugins. Types-only contract — the host implementation is injected by the outl runtime (Boa/Rust) at load time.

Readme

@outl/plugin-sdk

TypeScript SDK for authoring outl plugins.

Types + one helper, nothing else. Zero runtime dependencies. The SDK never talks to Tauri, the filesystem, or the network — the real PluginContext is injected by the outl runtime (a Boa JS engine in the Rust outl-plugins crate) when it calls your plugin's activate(ctx).

Documentation: https://outl.app/docs/query#plugin-sdk-api-outlquery

Install

npm install @outl/plugin-sdk
# or
bun add @outl/plugin-sdk

Quick start

import { definePlugin } from "@outl/plugin-sdk";

export default definePlugin({
  activate(ctx) {
    ctx.commands.register("say-hi", () => ctx.ui.notify("hi from my plugin"));

    // React to every op applied to the log (needs the `read-op-log` permission).
    ctx.ops.onOp((op) => {
      if (op.actor?.startsWith("plugin:")) return; // ignore your own writes
      ctx.log.info(`op ${op.kind} on ${op.node}`);
    });
  },
});

All plugin metadata — id, version, permissions, contributes — lives in plugin.json, never in code. definePlugin carries behavior only, so there's exactly one source of truth per fact.

Mental model

You think in blocks and ops, never in pixels, CRDT internals, or .md files. Every mutation you trigger (ctx.blocks.move, ctx.blocks.edit, …) becomes a host call routed through outl-actionsWorkspace::apply → the op log, stamped plugin:<id>@<device>. The op log stays the single source of truth; the SDK is just a typed door to it.

Blocks execute describe → apply: reads (query / get) see a snapshot from the start of the turn, and writes are buffered and applied by the host after your handler returns. A block you edit/create this turn is not visible to a later query in the same turn — collect what you need first, then mutate.

The ctx surface

Each namespace is gated by a permission declared in plugin.json; calling into one you didn't request rejects at the host boundary.

| Namespace | What it does | Permission | |-----------|--------------|------------| | ctx.blocks | Query, get, edit, create, move, toggle TODO, delete, appendTree | read-page / write-page / submit-op | | ctx.page | List, create, appendTree (seed a fresh page's first blocks) | read-page / write-page | | ctx.template | List and instantiate structural templates | read-page / write-page | | ctx.ops | onOp hook fired for every applied op (local + synced) | read-op-log | | ctx.commands | Register slash-menu / keybinding handlers | — (declared in plugin.json) | | ctx.config | Read the user's validated config for this plugin | — | | ctx.storage | Per-plugin local key/value store (does not sync) | storage:local | | ctx.secrets | Read this plugin's secrets from the OS keychain | secrets | | ctx.net | fetch with a required timeoutMs | network:<domain> | | ctx.content | Register a code-fence transformer for a language | content-transformer:* | | ctx.sync | Register a sync transport (ship/receive op JSONL) | sync-transport | | ctx.ui | notify toast; render sandboxed HTML overlay (GUI only) | — / ui-render | | ctx.log | Structured logging into the client's plugin log | — |

Structured query — outl.query

The workspace query engine is also exposed as a structured API. Pass a plain object instead of the DSL string; both paths converge on the same engine:

const tasks = outl.query({ status: "todo", tag: "ops", sort: "page", limit: 50 });
for (const t of tasks) {
  console.log(`${t.status === "done" ? "[x]" : "[ ]"} ${t.text} — (${t.page})`);
}

Full field and result-shape reference: https://outl.app/docs/query#plugin-sdk-api-outlquery.

Links

License

MIT