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

@vayo-hq/ast

v0.1.1-beta.3

Published

Static analysis pass: express-list-endpoints + ts-morph. Produces route/middleware/scope metadata to merge with runtime capture.

Readme

@vayo-hq/ast

Vayo's static analysis pass — the part of vayo scan that reads your Express app's source without needing any traffic first.

Given a bootstrapped Express app (export default app or export const app), scanProject(rootDir, config) uses express-list-endpoints + ts-morph to recover, per route: the middleware chain, an auth-required guess (configurable middleware-name patterns), scopes (configurable scope-check function names), a folder/group guess from your route file layout, and — when your project uses Zod or a plain Mongoose model — a best-effort request body schema, all without executing a single request.

import { scanProject, type VayoConfig } from "@vayo-hq/ast";

const config: VayoConfig = { appEntryPath: "./src/app.js" };
const { routes } = await scanProject(process.cwd(), config);

Optional JSDoc tags

A route's leading comment can carry explicit tags — recognized only inside a comment that also has a bare @vayo sentinel line, so an unrelated TODO or workaround comment is never misread as a declaration:

/**
 * Fetch a single order by ID.
 * @vayo
 * @group Orders
 * @deprecated
 * @response 200 OrderSchema
 * @example 404 {"message": "Order not found"}
 * @description
 * Longer, multi-line explanation of this endpoint — the counterpart to
 * the one-line summary above.
 */
router.get("/orders/:id", getOrder);
  • @group <name> (nested: @group Admin/Users) wins over both the folder-layout guess and the URL-segment fallback, and locks the endpoint's folder placement against being dragged elsewhere in the UI.
  • @deprecated marks the endpoint deprecated independent of its API version's own lifecycle, and locks it against being un-deprecated in the UI.
  • @response <status> <SchemaName> points at an existing Zod schema to use for that status code's response shape.
  • @example <status> <JSON> provides a literal example response value for a status code.
  • @description fills in a longer, multi-line description separate from the one-line summary every route already gets for free.

Most people never call this directly — @vayo-hq/cli's vayo scan command is the intended entry point. This package exists standalone for anyone building custom tooling around the same static pass:

npm install @vayo-hq/ast@beta

License

MIT