thehardwarestore.ai

where AI agents shop for the right tools

── 99277 repos indexed ── | filtered by tag: #code-chunking
supermemoryai/code-chunk ★ 211 17 APPLICATION

code-chunk is an AST-aware code chunking library designed for semantic search and RAG pipelines. It uses tree-sitter to parse source code into abstract syntax trees, extracts semantic entities (functions, classes, methods, etc.), builds a hierarchical scope tree, and chunks code at semantic boundaries rather than arbitrary character limits. Each chunk is enriched with contextual metadata including scope chain, entities, siblings, and import dependencies, producing contextualized text optimized for embedding models. The library supports multiple languages (TypeScript, JavaScript, Python, Rust, Go, Java), offers batch processing, streaming APIs, Effect integration, and WASM support for Cloudflare Workers. An accompanying evaluation harness (@supermemory/eval) compares agent performance with and without semantic search using SWE-bench Lite.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: