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

@raven.js/core

v3.0.0

Published

RavenJS core framework: contract-first routing, Standard Schema request validation, ambient state DI, plugin lifecycle, and self-built OpenAPI — on a Hono engine.

Readme

@raven.js/core

RavenJS is an AI-native, contract-first web framework on a Hono engine. Lightweight, multi-runtime, and optimized for AI agents to learn and write correct code.

@raven.js/core runs on Node (20+), Bun, and Deno (server-side; edge / Cloudflare Workers are not a target). It layers a contract-first, ambient-state programming model on top of Hono — handlers never see Hono's c; they receive only the validated { body, query, params, headers } and read everything else through ambient state.

  • Contract-first interface helpers (defineContract, registerContractRoute)
  • Standard Schema request/response validation (withSchema) — library-agnostic (Zod, Valibot, …)
  • Ambient-state dependency injection via AsyncLocalStorage (AppState / RequestState)
  • Lifecycle hooks and a plugin system with scoped state
  • Self-built OpenAPI generation (app.exportOpenAPI(...))

Install

npm install @raven.js/core hono
# Node also needs a serve adapter:
npm install @hono/node-server

hono is a peerDependency — install it alongside @raven.js/core.

Quick start

// app.ts
import { Raven, RavenContext } from "@raven.js/core";

export const app = new Raven();

app.get("/hello/:name", () => {
  const { params } = RavenContext.getOrFailed();
  return Response.json({ message: `hello ${params.name}` });
});

app.ready() returns a Web-standard fetch handler (request: Request) => Promise<Response>; the runtime does the listening.

// Node
import { serve } from "@hono/node-server";
import { app } from "./app";
serve({ fetch: await app.ready(), port: 3000 });

// Bun
export default { port: 3000, fetch: await app.ready() };

// Deno
Deno.serve({ port: 3000 }, await app.ready());

Learn RavenJS — the raven-use skill

RavenJS is skill-first: the full teaching material (API surface, request lifecycle, ambient state/DI, schema & contract, plugins, OpenAPI, gotchas, and the layered code-organization patterns) lives in the raven-use skill, not in this package. The npm package ships only compiled code, type declarations, and this README. For exact, version-matched type signatures, read node_modules/@raven.js/core/dist/index.d.mts.

Work with RavenJS through the skill — it ships in the RavenJS repo under skills/. Install it with the generic skills CLI, which pulls straight from the repo:

npx skills add myWsq/RavenJS   # installs into .claude/skills (also .cursor, .codex, …)
# or copy manually: cp -r skills/raven-use your-project/.claude/skills/

Links