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

@easydocs/core

v0.10.1

Published

Core engine for EasyDocs — generates OpenAPI specs from real API traffic. Local-first, self-hostable, open source.

Readme

@easydocs/core

Core engine for EasyDocs — turns your API's real traffic into OpenAPI specs, with storage and the capture queue. Local-first and self-hostable; an AI model does the generation, with an offline mode (Ollama).

You don't need to install this directly. Framework adapters (@easydocs/express, @easydocs/fastify, etc.) depend on it automatically.

What it does

  • Captures HTTP traffic from middleware adapters
  • Runs a background queue so captures never block requests
  • Detects response shape changes and only re-runs AI when needed (sampling)
  • Generates OpenAPI 3.0 Operation objects via OpenAI, Anthropic, DeepSeek, or Ollama
  • Stores specs in SQLite (default) or Postgres
  • Detects auth schemes from request headers and documents them

Direct usage

import { createCapturer, parseConfig, buildCaptureEvent } from '@easydocs/core'

// At setup time — creates a Capturer with its own storage adapter and queue
const capturer = createCapturer(parseConfig({ project: 'my-api', ai: { provider: 'openai' } }))

// Per request — fire and forget, never await
capturer.capture(buildCaptureEvent({
  method: 'GET',
  path: '/users',
  query: { page: '1' },
  params: {},
  requestBody: null,
  responseBody: { data: [], total: 0 },
  status: 200,
  requestHeaders: {},
  responseHeaders: {},
  durationMs: 12,
}))

Configuration

{
  project: 'my-api',           // project slug, default: 'default'
  ai: {
    provider: 'openai',        // 'openai' | 'anthropic' | 'deepseek' | 'ollama'
    model: 'gpt-4o',
    apiKey: '...',             // falls back to OPENAI_API_KEY / ANTHROPIC_API_KEY / DEEPSEEK_API_KEY
    baseUrl: '...',            // for custom OpenAI-compatible endpoints
  },
  storage: {
    type: 'sqlite',            // 'sqlite' | 'postgres'
    url: 'file:./docs.sqlite', // default: ~/.easydocs/db.sqlite
  },
  capture: {
    ignoreRoutes: ['/health'],
    includePaths: ['/api'],
    maxBodySize: 10_000,
  },
  dashboard: {
    autoStart: true,           // spawn dashboard on first capture (dev only)
    port: 4999,
  },
}

AI provider detection

Auto-detection precedence (when no explicit provider is set):

| Environment variable | Provider used | |----------------------|---------------| | ANTHROPIC_API_KEY | Anthropic Claude | | DEEPSEEK_API_KEY | DeepSeek | | OPENAI_API_KEY | OpenAI GPT-4o | | none | Ollama at localhost:11434 (fully offline) |