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

@vobase/core

v0.38.0

Published

The app framework built for AI coding agents - core runtime

Downloads

1,746

Readme

@vobase/core

Core runtime for Vobase — the app framework built for AI coding agents.

Provides the module system, agent harness contract, workspace primitives (virtual filesystem, RO enforcer, AGENTS.md generator), CLI verb registry, auth/audit/storage/channel adapter contracts, jobs, and persistence helpers.

Installation

bun add @vobase/core

Module canonical shape

Every Vobase module is a ModuleDef from module.ts that aggregates sibling files. The agent-facing seams sit under one declarative slot:

import { defineModule } from '@vobase/core'

export default defineModule({
  name: 'my-module',
  requires: ['contacts'],
  schema, web, jobs, init,
  agent: {
    agentsMd: [...],          // IndexContributor[] — AGENTS.md fragments
    materializers: [factory], // WorkspaceMaterializerFactory<TCtx>[]
    roHints: [...],           // RoHintFn[] — chained by chainRoHints
    tools: [...],             // AgentTool[] with audience/lane/prompt
  },
})

bootModules topologically sorts by requires and produces an AgentContributions<TCtx> bag that wake builders consume. TCtx is template-specialized (the helpdesk template threads its WakeContext through it).

Agent tool metadata

AgentTool carries three wake-time policy fields:

  • audience: 'customer' | 'internal' — wake builders strip customer-facing tools on supervisor coaching wakes.
  • lane: 'conversation' | 'standalone' | 'both' — partitions the catalogue between conversation-bound and operator-thread/heartbeat wakes.
  • prompt?: string — colocated AGENTS.md guidance rendered under ## Tool guidance next to the tool name.

Use defineAgentTool({ ... }) to collapse the validation/error-mapping boilerplate.

Workspace CLI

A unified CliVerbRegistry is the single surface for verbs. The same body runs:

  • inside the agent's bash sandbox (in-process transport, via createBashVobaseCommand)
  • over HTTP-RPC from the standalone @vobase/cli binary (catalog route)

Modules register verbs at init via ctx.cli.register(defineCliVerb({ ... })) or registerAll([...]). Set audience: 'agent' | 'staff' | 'all' to gate which transports see the verb. The CLI dispatcher coerces --flag=value argv into the JSON-Schema-declared types so verb schemas can use strict z.number() / z.boolean().

What's exported

  • Harness: createHarness, AgentTool, ToolContext, ToolResult, AgentEvent, HarnessEvent, WakeScope, SideLoadContributor, WorkspaceMaterializer, WorkspaceMaterializerFactory<TCtx>, defineAgentTool, DirtyTracker
  • Modules: defineModule, bootModules, collectAgentContributions, ModuleDef, ModuleInitCtx, AgentContributions, RoHintFn
  • Workspace: generateAgentsMd, defineIndexContributor, buildReadOnlyConfig, ScopedFs, MaterializerRegistry
  • CLI: CliVerbRegistry, defineCliVerb, createBashVobaseCommand, createCatalogRoute, createCliDispatchRoute, createInProcessTransport
  • Adapters: ChannelAdapter, StorageAdapter, AuthAdapter contracts; createLocalAdapter / createS3Adapter
  • Schemas + helpers: auditLog, recordAudits, sequences, storageObjects, nanoidPrimaryKey, nextSequence, trackChanges, signHmac, verifyHmacSignature, journalAppend, etc.
  • Errors: notFound, unauthorized, forbidden, conflict, validation, dbBusy

Compatibility notes

@vobase/core runs primarily under Bun. The postgres:// branch of createDatabase requires Bun.SQL; both Bun.SQL and drizzle-orm/bun-sql are loaded lazily at call time so the schema graph stays Node-loadable for drizzle-kit. Tests use PGlite (memory://) under either runtime.

License

MIT