vectra
CLAUDE.md633 starsChanged 7 months agoMITView on GitHub
A lightweight, file-backed vector database for Node.js and browsers with Pinecone-compatible filtering and hybrid BM25 search.
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Run npm run test:mocha for fast iteration (skips rebuild)
- Very specific: line 50
Run yarn lint and fix any errors
- Very specific: line 51
Run yarn test and ensure all tests pass
- Very specific: line 52
Update llms.txt if you changed public API surface
- Very specific: line 53
Update docs/changelog.md with a summary of changes
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vectra
A lightweight, file-backed vector database for Node.js and browsers with Pinecone-compatible filtering and hybrid BM25 search.
Project Structure
src/— TypeScript source fileslib/— Compiled output (do not edit directly)bin/— CLI entry point (vectra)docs/— Jekyll documentation site (GitHub Pages via just-the-docs)samples/— Runnable example projectsdist/— Browser bundle (do not edit directly)
Development Commands
yarn install— Install dependenciesyarn buildornpm run build— Compile TypeScript + copy proto schemas and templatesyarn build:browser— Build browser UMD bundle via webpackyarn build:all— Build both Node.js and browser targetsyarn testornpm test— Build + run testsnpm run test:mocha— Run tests only (skip build)yarn lintornpm run lint— Run ESLintyarn clean— Remove build artifacts
Code Conventions
- TypeScript strict mode — no
anyunless unavoidable - Tests colocated with source:
src/foo.spec.tstestssrc/foo.ts - Barrel exports through
src/index.ts— every public API must be re-exported here - Browser exports through
src/browser.ts— excludes Node-specific modules - Internal utilities in
src/internals/— not exported from the package - Proto schemas live in
src/codecs/schemas/*.protoand are copied tolib/at build time - Language binding templates in
src/templates/are copied tolib/templates/at build time
Testing
- Framework: mocha with sinon for mocks
- Coverage: nyc — reports to Coveralls
- Run
npm run test:mochafor fast iteration (skips rebuild) - Test timeout: 10000ms
CI
- GitHub Actions on push/PR to
main - Pipeline: install → lint → build → test → coverage upload
- Node 22 on ubuntu-latest
Before Submitting a PR
- Run
yarn lintand fix any errors - Run
yarn testand ensure all tests pass - Update
llms.txtif you changed public API surface - Update
docs/changelog.mdwith a summary of changes
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

