harlan-zw

harlan-zw / retriv

Public

Tiny local-first hybrid search for docs and TypeScript. Up to 30% better recall plus optional cloud integrations.

22
1
100% credibility
Found Feb 05, 2026 at 10 stars 2x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

retriv is a library for adding hybrid keyword and semantic search to JavaScript/TypeScript projects, featuring code-aware splitting and support for local or cloud storage.

How It Works

1
💡 Discover retriv

You learn about retriv, a smart tool that helps you quickly find exactly what you need in your project's code and notes.

2
📦 Add to your project

You bring retriv into your work with one easy step, and it's ready to help.

3
Pick your storage spot
🏠
Stay local

Keep everything on your own computer for quick access and full control.

☁️
Go cloud

Store in the cloud to search from any device anytime.

4
🤖 Add smart understanding

Connect a thinking service that grasps the real meaning behind words and code names.

5
📁 Share your files

Give it your code and documents – it neatly organizes them into perfect searchable pieces without breaking anything important.

6
🔍 Ask away

Type simple questions like 'how to log in users' and watch it pull up the best matches from code and guides.

Search magic unlocked

Now you instantly find functions, docs, or snippets exactly when you need them, making your project a breeze to work with.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 22 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is retriv?

retriv delivers tiny local-first hybrid search for TypeScript and JavaScript codebases plus docs. Query "password hashing" to snag exact functions like `hashPassword(raw)` or related markdown guides, blending BM25 keywords with vector semantics for up to 30% better recall than plain vector tools. Built in TypeScript, it runs SQLite by default with seamless cloud scaling to Turso, Upstash, or Cloudflare.

Why is it gaining traction?

Unlike generic retrievers that chunk code mid-function or miss camelCase identifiers, retriv uses syntax-aware splitting and smart tokenization – `getUserName` expands to match partials without fuzz. Hybrid RRF fusion prioritizes exact hits over vague semantics, and split-category search prevents docs from drowning code results. Devs grab it for instant 30% recall lifts in retrieval augmented generation setups.

Who should use this?

Monorepo maintainers indexing TS code alongside READMEs, AI devs piping retrieval into local LLMs for code agents, or Next.js teams embedding hybrid search in apps. Ideal for fullstack engineers building internal tools where generic github tiny file manager or retriever rassen fall short on JS quirks.

Verdict

At 10 stars and 1.0% credibility, retriv feels pre-production despite polished docs and tests – prototype your retrieval deutsch or retrieve flows today, but monitor for edge-scale polish. Strong start for tiny recursive model-like efficiency in hybrid search.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.