
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
fleet-vector-api
Advanced tools
**Real semantic search** across the SuperInstance ecosystem using Cloudflare Workers AI embeddings + Vectorize.
Real semantic search across the SuperInstance ecosystem using Cloudflare Workers AI embeddings + Vectorize.
This isn't fake 32-dim hand-computed vectors. This is @cf/baai/bge-small-en-v1.5 — a real 384-dimensional embedding model running on Cloudflare's edge network, producing embeddings that actually understand what your crates do.
Crate README + Cargo.toml metadata
↓
Workers AI (bge-small-en-v1.5, 384-dim)
↓
Vectorize index (cosine similarity)
↓
Semantic search API at the edge
The ecosystem has 548 crates. Finding related work across domains is hard:
conservation-law, entropy-lint, agent-homeostasis, hodge-belief-rspersistent-sheaf, sheaf-cohomology, sheaf-agents-c, sheaf-coherenceagent-cadence, agent-rubato, agent-groove, agent-swingKeyword search misses cross-domain connections. Semantic embeddings catch them.
curl -X POST http://localhost:8787/ingest \
-H "Content-Type: application/json" \
-d '{
"crates": [{
"name": "conservation-law",
"description": "Core invariant for constraint-aware AI systems",
"readme": "# Conservation Law\n\nImplements γ + η = C...",
"version": "0.2.1",
"keywords": ["conservation", "invariant", "ternary"]
}]
}'
curl -X POST http://localhost:8787/search \
-H "Content-Type: application/json" \
-d '{" query": "agent coordination with conservation laws", "topK": 5 }'
curl -X POST http://localhost:8787/similar \
-H "Content-Type: application/json" \
-d '{"crate_name": "conservation-law", "topK": 10}'
curl -X POST http://localhost:8787/embed \
-H "Content-Type: application/json" \
-d '{"text": "ternary mathematics for agent systems"}'
# Returns: 384-dim vector, magnitude, preview
| Method | Path | Description |
|---|---|---|
POST | /ingest | Ingest crate(s): README → Workers AI → Vectorize |
POST | /search | Semantic search across all crates |
POST | /similar | Find crates similar to a given crate |
GET | /crates/:name | Get crate metadata + README preview |
GET | /stats | Index statistics |
POST | /embed | Debug: embed arbitrary text |
GET | /health | Health check |
# Ingest all crates from local filesystem
npm run ingest -- --api http://localhost:8787 --repos /home/phoenix/repos
# Dry run first
npm run ingest -- --dry-run
# Limit to first 10 for testing
npm run ingest -- --limit=10
@cf/baai/bge-m3 in wrangler.toml when neededCloudflare recommends pooling: 'cls' for bge models — uses the [CLS] token representation which captures full-sequence semantics better than mean pooling.
Cosine similarity is the standard for semantic search. Unit vectors make dot product = cosine similarity, which is what Vectorize uses internally.
| Store | Purpose | Retention |
|---|---|---|
| Vectorize | 384-dim embeddings + metadata | Permanent |
| KV | Full crate metadata JSON | 30 days (refresh on ingest) |
| R2 | Raw README.md files | Permanent |
npm install
npm run dev # Starts wrangler dev on :8787
npm test # Run unit tests
# Create Vectorize index first
wrangler vectorize create fleet-crates --dimensions=384 --metric=cosine
# Deploy
npm run deploy
MIT OR Apache-2.0
FAQs
**Real semantic search** across the SuperInstance ecosystem using Cloudflare Workers AI embeddings + Vectorize.
We found that fleet-vector-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.