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

ai-doc-index

v1.1.0

Published

Scaffold AI-friendly documentation index for Flutter/Dart projects (AGENTS.md + docs/ai/)

Readme

ai-doc-index

Scaffold AI-friendly documentation for Flutter/Dart projects in seconds.

npm version

What is this?

ai-doc-index scaffolds a structured documentation system designed for AI agents (Cursor, Antigravity, GitHub Copilot) to read your Flutter/Dart codebase efficiently without wasting tokens.

The pattern

AGENTS.md                    ← Entry point: context + docs map
docs/ai/
  context-routing.md         ← "Which task → which file to read" routing table
  architecture.index.md      ← Feature matrix: route → BLoC → Repository
  tech.md                    ← DI/BLoC conventions, commands, packages
  architecture.md            ← Full architecture deep-dive
  features.md                ← Feature-level documentation
  database.md                ← Schema, migrations, RLS, RPC
  shared.md                  ← Shared widgets, theme, utils
docs/wip/
  _index.md                  ← WIP features tracker

Core idea: context-routing.md tells the AI which files to skip based on task type → fewer tokens, faster responses.


Usage

npx ai-doc-index init

The CLI will ask for your project name, stack, and backend, then scaffold all files into the current directory.

Files that already exist are not overwritten — safe to re-run.


Quick start

# 1. Go to your Flutter project root
cd my_flutter_project

# 2. Scaffold the docs
npx ai-doc-index init

# 3. Fill in your actual content
# - AGENTS.md → project context
# - docs/ai/architecture.index.md → your feature matrix
# - docs/ai/tech.md → your packages & commands
# - docs/ai/database.md → your schema

Why this works

  • AI agents read docs linearly — a routing table prevents them from loading all files
  • A flat feature matrix (architecture.index.md) lets AI grep one row instead of reading code
  • Separation into small files means AI loads only what's needed per task

Template customization

After scaffolding, replace <!-- TODO: ... --> placeholders with your actual project details:

| File | What to fill | |---|---| | AGENTS.md | Project description, stack | | architecture.index.md | Feature matrix (route → BLoC → Repo) | | tech.md | Actual packages, commands, DI setup | | database.md | Table schema, migrations list | | shared.md | Your shared widgets and utilities |


License

MIT © ngocbaomobile