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 🙏

© 2025 – Pkg Stats / Ryan Hefner

seta-indexer

v0.1.1

Published

Vector database indexer for documentation

Readme

seta-indexer

A standalone CLI tool for vector database indexing and semantic search over documentation. Supports PDF, Markdown, text, and more. Powered by local embeddings and LanceDB.

Features

  • Indexes PDF, Markdown, MDX, TXT, JSON, YAML, XML, CSV
  • Intelligent chunking with sentence/paragraph boundary detection
  • Fast local embeddings with all-MiniLM-L6-v2 (via @xenova/transformers)
  • Vector similarity search with filtering (library, topic, difficulty)
  • Incremental updates and file change detection
  • Flexible file selection with --include and --exclude glob patterns

Installation

npm install -g seta-indexer
# or use npx
npx seta-indexer <folder> [options]

Usage

Index a documentation folder

npx seta-indexer /path/to/docs

Local usage (from cloned repo)

# Clone and setup
git clone https://github.com/techformist/seta-indexer.git
cd seta-indexer
npm install

# Build the project
npm run build

# Run locally with node
node dist/cli.js /path/to/docs

# Or use the dev script for development
npm run dev -- index /path/to/docs

Available commands (local usage)

# Index documents
node dist/cli.js index /path/to/docs --verbose

# Search indexed content
node dist/cli.js search "your query" /path/to/docs

# Show database statistics
node dist/cli.js stats /path/to/docs

# Clean/remove database
node dist/cli.js clean /path/to/docs

# Run tests
npm test

With options

  • --verbose, -v : Detailed logging
  • --force : Force re-index all files
  • --chunk-size <size> : Chunk size (default: 1000)
  • --chunk-overlap <overlap> : Overlap (default: 200)
  • --model <model> : Embedding model (default: all-MiniLM-L6-v2)
  • --db-path <path> : Custom DB path
  • --include <patterns...> : Glob patterns to include (e.g. **/*.md docs/**/*.pdf)
  • --exclude <patterns...> : Glob patterns to exclude (e.g. **/drafts/**)

Supported File Types

  • .pdf, .md, .mdx, .txt, .json, .yaml, .yml, .xml, .csv (by default)
  • Use --include/--exclude for custom file selection

Output Examples

Indexing:

🚀 Starting indexing process for: /docs
📁 Documentation path: /docs
🗄️  Database path: /docs/.seta_lancedb
📋 Loading existing index state...
🔍 Scanning documentation files...
📄 Found 25 documentation files
🧠 Initializing embedding model...
🔗 Connecting to LanceDB...
⚙️  Processing documentation files...
   📄 Processing: main_guide.md
   📝 Generated 12 chunks
   ✅ Generated 12 embedded chunks
✅ Indexing completed

Troubleshooting

  • Ensure all dependencies are installed (npm install)
  • For PDF extraction errors, check file integrity
  • For embedding errors, ensure enough RAM and disk space for model caching
  • For DB errors, use --force to re-index from scratch

License

MIT