AI Summary<!-- This file is derived from CLAUDE.md. Keep them in sync. --> A lightweight, file-backed vector database for Node.js and browsers with Pinecone-compatible filtering and hybrid BM25 search.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "vectra — Windsurf Rules" prompt rules to my project. Repository: https://github.com/Stevenic/vectra Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Vectra is a local vector database for Node.js with features similar to pinecone but built using local 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 files • lib/ — Compiled output (do not edit directly) • bin/ — CLI entry point (vectra) • docs/ — Jekyll documentation site (GitHub Pages via just-the-docs) • samples/ — Runnable example projects • dist/ — Browser bundle (do not edit directly)
Development Commands
• yarn install — Install dependencies • yarn build or npm run build — Compile TypeScript + copy proto schemas and templates • yarn build:browser — Build browser UMD bundle via webpack • yarn build:all — Build both Node.js and browser targets • yarn test or npm test — Build + run tests • npm run test:mocha — Run tests only (skip build) • yarn lint or npm run lint — Run ESLint • yarn clean — Remove build artifacts
Code Conventions
• TypeScript strict mode — no any unless unavoidable • Tests colocated with source: src/foo.spec.ts tests src/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
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts