@smartlangguard/core
v0.1.5
Published
SmartLangGuard Core - Translation engine, license layer, telemetry, and updater for fixing Arabic/English keyboard layout mistakes
Maintainers
Readme
@smartlangguard/core
SmartLangGuard Core - Translation engine, license layer, telemetry, and updater for fixing Arabic/English keyboard layout mistakes.
Installation
npm install @smartlangguard/coreUsage
const core = require('@smartlangguard/core');
// Initialize
await core.init({
endpoint: 'https://api.smartlangguard.com',
telemetryEnabled: true
});
// Fix mistyped text
const result = await core.fixText('high hofhv;');
console.log(result.corrected); // "اهلا اخبارك"
console.log(result.direction); // "en-to-ar"
console.log(result.score); // 88Features
- Translation Engine - Rules-based QWERTY ↔ Arabic 101 layout mapping
- Custom AI Model - Statistical model with 92% accuracy (free, offline, ~1ms)
- License Layer - Online validation + offline HMAC-signed tokens
- Telemetry - Batched, anonymized, opt-out
- Auto-Updater - SHA256 + RSA signature verification
API
init(config)
Initialize the core. Returns a Promise.
fixText(text, options)
Fix mistyped text. Returns { original, corrected, direction, score, source }.
activateLicense(token)
Activate a license token. Returns { success, license }.
getLicenseStatus()
Returns current license status.
checkForUpdate()
Check for available updates.
performUpdate(options)
Download and apply update.
License
UNLICENSED - © 2026 SmartLangGuard. Free tier for personal/commercial use. Pro features require subscription.
