Cloudflare 300+ Edge POPs • Zero Cluster Tax • Probabilistic Anomaly Detection

The Edge-Native Lucene & Elastic Alternative
Built for Extreme Scale & Real-Time Insights

Engineered for full-text BM25 search precision without the $500/month cluster tax or JVM pauses. Run native queries on Cloudflare's Global Edge with built-in real-time Z-score anomaly detection and dynamic query slicing.

npm install @avelynx/stretchy

Live Stretchy Client Playground

Test real-time Lucene & BM25 queries, explore the visual query slicer, and watch probabilistic anomaly detection flag statistical outliers on the fly.

Backend: Dataset:
SDK v1.0.0 Active
Slice: 100% of Dataset 12 / 12 documents
Probabilistic Statistical Profiling Engine
Normal Distribution
Mean (μ)
--
StdDev (σ)
--
Median (p50)
--
IQR (Q3-Q1)
--
Outliers (z ≥ 2.2)
0
0 results matched Sorted by BM25 Relevance
Generated Client SDK Code
// Loading Stretchy Client...

Accessible Everywhere

Zero external runtime dependencies. Choose between modern ES modules, universal browser UMD bundles, or production-minified CDN assets.

Universal UMD Bundle

Perfect for direct browser <script> tags, CommonJS (Node.js), and legacy bundlers. Exposes window.StretchyClient.

Download stretchy.umd.js (21 KB)
Format: Universal Module Version: 1.0.0

Modern ES Module

Tree-shakeable native ESM export. Designed for Vite, Next.js, Rollup, Webpack 5, and modern browser <script type="module">.

Download stretchy.esm.js (21 KB)
Format: ES2022 Module Target: Modern Web

Production Minified

Ultra-compact production build stripped of extraneous whitespace and comments. Ready for high-volume CDN edge delivery.

Download stretchy.min.js (17 KB)
Format: Minified UMD Size: ~17 KB Raw
Direct CDN Link (jsDelivr / unpkg)
<script src="https://client.avelynx.net/assets/stretchy.min.js"></script>

Core Client API

Clean, promise-based TypeScript methods with intelligent defaults and automated multi-tenant isolation.

new StretchyClient({ baseUrl?, licenseKey?, apiKey? })
Initializes a new Stretchy client. Defaults to https://search.avelynx.net.
const client = new StretchyClient({ baseUrl: 'https://search.avelynx.net' });
client.search(indexName, options)
Performs full-text search with Lucene matching, BM25 scoring, fuzzy term expansion, and faceted aggregation.
const res = await client.search('products', { query: 'wireless', limit: 20, fuzzy: true });
client.detectAnomalies(data, fieldOrOptions)
Statistical profiling engine that calculates Mean, StdDev, IQR, and flags outliers exceeding Z-score or Tukey fences.
const report = client.detectAnomalies(res.hits, { field: 'price', zThreshold: 2.5 });
client.querySlicer(matchedCount, totalCount)
Computes slice ratios, match percentages, and returns formatted visual gauge objects for UI dashboards.
const slice = client.querySlicer(res.hits.length, res.total); // => { percent: 16.8, label: "42 of 250 matched (16.8%)" }
client.indexDocs(indexName, docs)
Ingests a single document or batch of JSON records. Auto-creates index schema and dual-indexes text and range fields.
await client.indexDocs('products', [{ id: 'sku-1', name: 'Product Name', price: 99.99 }]);
client.createTrialLicense(companyName, email, tenantId?)
Generates an authentic cryptographic 14-day evaluation license key directly from the edge.
const trial = await client.createTrialLicense('Acme Corp', 'dev@acme.com');

Why Stretchy vs. Legacy Clusters

Compare the operational and cost profiles of Stretchy against traditional Elasticsearch and Splunk setups.

Feature Elasticsearch / OpenSearch AveLynx Stretchy
Monthly Cluster Tax $200 – $1,200+/mo (idle nodes) Near $0 at rest (Pennies / M queries)
Cold Start & Latency 150ms+ regional roundtrips, GC pauses Sub-15ms worldwide (300+ Edge POPs)
Anomaly Detection Requires heavy external ML daemon Built-in real-time Z-scores & IQR cuts
Client Footprint Heavy 50MB+ SDKs Zero-dependency ~17KB minified bundle