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

@averri/extract

v0.1.0-alpha.0

Published

Averri extractors: Prisma schema facts, Hono/Express exposures, Zod schema references, hand-written Vitest tests, Module nodes and the repository content hash

Readme

@averri/extract

Extractors for the Averri Semantic IR (SPEC-IR §3–§4). Everything is static: ts-morph and @mrleebo/prisma-ast read the repository; no user module is ever evaluated (D-2). Every node and edge produced here has provenance.origin: "extracted" with evidence and a documented confidence.

import { extractProject } from "@averri/extract";

const { nodes, edges, evidence, warnings, contentHash, inputFiles, zodSchemas, prisma, stack } =
  extractProject("/path/to/repo", { entryPoints: ["src/app.ts"], publicMarker: "publicRoute" });

| Extractor | Produces | Confidence | |---|---|---| | Prisma (extractPrismaSchema) | Entity/Field nodes, Entity -contains-> Field, Module -contains-> Entity, Entity -persistedBy-> Module, relation facts | 0.98; 0.9 for a field whose type is unknown (unsupported) | | Hono / Express (extractRoutes) | Exposure nodes with composed paths, middleware attribution, body schema; Module -contains-> Exposure, Exposure -validatesWith-> Module | SPEC-IR §4.1 table: 0.98 root, 0.95 via mount prefix / basePath, 0.6 dynamic, 0.5 unreached | | Zod (extractZodSchemas) | zodSchemas facts (SymbolRef, top-level fields, complete, method: ast \| checker) | — (facts, no node kind) | | Vitest (extractTests) | hand-written Test nodes (Test:<file>:<line>), covers from // @averri covers ... and id literals, Module -contains-> Test | 0.95 literal title; 0.8 without a vitest import; 0.6 dynamic title | | Modules (extractModules) | one Module per visited file with role, exports, hash, lines; contentHash + inputFiles | 1 |

Options (ExtractOptions): sourceRoots (["src"]), prismaSchema ("prisma/schema.prisma", null to skip), entryPoints (auto-detected when omitted, with an entry-points-detected warning), publicMarker, generatedDir ("tests/averri", excluded from tests and the content hash, D-13), testGlobs, tsConfigPath, configFile, include.

Helpers shared with the compiler: normalizeRoutePath, composePath, routePathsMatch (route-match), usePatternMatches, middlewareCallee, middlewareMatches, staticString, resolveDeclaration, symbolRefOf, loadProject / extractFromContext (reuse one ts-morph project), contentHashOf.

Decisions specific to this package are recorded as D-36 in docs/SPEC-DECISIONS.md.