Skip to content

@terraphim/autocomplete v1.0.0

Choose a tag to compare

@AlexMikhalev AlexMikhalev released this 16 Nov 22:20
· 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