@terraphim/autocomplete v1.0.0
·
2632 commits
to main
since this release
@terraphim/autocomplete v1.0.0
Complete Node.js package with autocomplete and knowledge graph functionality.
π Features
- Autocomplete Engine: Fast prefix search with Aho-Corasick automata
- Knowledge Graph: Semantic connectivity analysis and graph traversal
- Native Performance: Rust backend with NAPI bindings
- Multi-Platform: Linux, macOS, Windows, ARM64 support
- TypeScript: Complete auto-generated type definitions
- Multi-Package-Manager: npm, yarn, and Bun compatibility
π¦ Installation
npm install @terraphim/autocomplete
# or
bun add @terraphim/autocomplete⨠Usage
import * as autocomplete from '@terraphim/autocomplete';
// Build autocomplete index
const indexBytes = autocomplete.buildAutocompleteIndexFromJson(thesaurusJson);
// Search for terms
const results = autocomplete.autocomplete(indexBytes, 'machine', 10);
// Knowledge graph operations
const graphBytes = autocomplete.buildRoleGraphFromJson('Engineer', thesaurusJson);
const isConnected = autocomplete.areTermsConnected(graphBytes, 'machine learning');π Documentation
π€ Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com