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

lannr-extras

v0.1.4

Published

Opt-in batteries for the Lannr runtime: memory, scheduling, workspace tools, browser tools, and MCP.

Readme

🧰  lannr-extras

Batteries for the Lannr runtime.

Memory that earns trust, reactive scheduling, workspace tools, a browser, and MCP — all opt-in.

npm Node TypeScript License Docs

Install · Modules · Tour · Full docs


✨ What is it?

lannr-core is the runtime: the model writes a TypeScript program, the Vault runs it. lannr-extras is everything that makes that runtime feel like a colleague — persistent memory, routines that earn trust, reactive scheduling, real workspace tools, a browser, and MCP — each behind its own subpath export so you only pull in what you use.

It's the same capability set the lannr CLI ships, exposed as composable TypeScript.


📦 Install

pnpm add lannr-extras lannr-core zod

lannr-extras builds on lannr-core — install both.


🧩 The module surface

Import only the modules you need:

| Import | What it does | | :-- | :-- | | lannr-extras/memory | FileMemoryStore / HttpMemoryStore — routine persistence, trust tracking, diff patching, rollback | | lannr-extras/scheduler | LannrScheduler, cron / interval / once / event / webhook reactive routines, sinks | | lannr-extras/workspace-tools | Files, edits, bash, unified diffs, todos, checkpoints | | lannr-extras/browser | Chrome/CDP browser automation with URL-safety policy | | lannr-extras/mcp | MCP stdio client, registry, and tool bridge | | lannr-extras/devtools | ExecutionTimeline + MemoryBrowser |


🎒 A guided tour

import { createLannr } from 'lannr-core'
import { FileMemoryStore } from 'lannr-extras/memory'

const lannr = createLannr({
  runner,
  model,
  tools,
  memory: new FileMemoryStore('.lannr/memory'),
})
// Now the agent can $saveRoutine(...) and $patchRoutine(...),
// and proven routines get injected into future runs automatically.

Routines graduate draft → provisional → trusted → pinned as they prove themselves across real runs — and rollbackRoutine(store, id, toVersion) reverts a bad version.

import { schedule, once, on, onWebhook, LannrScheduler } from 'lannr-extras/scheduler'

const daily   = schedule('npm-report', { cron: '0 9 * * *', routine: 'weeklyReport', input: {} })
const reminder = once('release', { runAt: '2026-06-10T09:00:00Z', routine: 'changelog', input: {} })
const onDeploy = on('notify', { event: 'deploy.succeeded', routine: 'notify', inputMapper: '(e) => ({ sha: e.sha })' })
const onPush   = onWebhook('build', { routine: 'build', inputMapper: '(e) => ({ ref: e.ref })', secret: process.env.WEBHOOK_SECRET })

Cron, intervals, one-shots, local events, and webhooks fire saved routines without ever calling the model. Results flow to a sink: store, slack, webhook, or email.

import {
  createFileTools,
  createEditTools,
  createBashTools,
  createCheckpointManager,
} from 'lannr-extras/workspace-tools'

const ctx = { workspace, globalReach: false }
const tools = [
  ...createFileTools(ctx),
  ...createEditTools(ctx),
  ...createBashTools(ctx),
]

// file-level checkpoints — the engine behind `lannr undo`
const checkpoints = createCheckpointManager({ workspace, agentDir })

Real read/write/edit/patch, sandboxed bash, and file-level checkpoints (the engine behind lannr undo).

import { createBrowserTools } from 'lannr-extras/browser'

const tools = createBrowserTools({ workspace, globalReach: false })

Navigation and interaction tools backed by Chrome DevTools Protocol, with a configurable URL-safety policy (setUrlSafetyPolicy).

import { upsertMcpServer } from 'lannr-extras/mcp/registry'
import { loadMcpTools } from 'lannr-extras/mcp/bridge'

// Register a stdio MCP server in the registry…
await upsertMcpServer({ id: 'filesystem', command: 'npx', args: ['@modelcontextprotocol/server-filesystem', '/tmp'] })

// …and surface its tools inside the Vault as
// $mcpCallTool('filesystem', 'read_file', { … }).
const mcpTools = await loadMcpTools()

A stdio MCP client (McpStdioClient), a registry (readMcpRegistry / upsertMcpServer / removeMcpServer), and a bridge (loadMcpTools) that surfaces remote tools as Vault bindings.

import { ExecutionTimeline, MemoryBrowser } from 'lannr-extras/devtools'

Inspect the execution timeline and browse stored memory while debugging.


📖 Learn more

  • The runtime these extras plug intolannr-core
  • Full SDK reference — trust progression, sinks, Failure Archaeology, replay → DOCS.md
  • A configured agent in your terminallannr-cli
  • Project overviewREADME

Built for agents that ship.

Full docs → · Core → · CLI →