v148 · on-device AI
Local-First Workflow
A live article-digest feed: paste or pick an article, choose whether to prioritise speed or quality, and get an on-device summary with no server round-trip. Add multiple articles to see the feed in action.
On-device
No API key
Works offline
⚠ Summarizer API not available — using simulated summaries. Enable via an origin trial or Chrome flag to use real on-device inference.
Performance:
Add article to feed
or use a sample:
// Pick performance mode per call site
const PERF_FOR_CONTEXT = {
'comment': 'fast', // snappy inline TL;DR
'article': 'balanced', // reasonable quality
'whitepaper': 'quality', // depth matters
};
const summarizer = await Summarizer.create({
type: 'tl;dr',
format: 'plain-text',
length: 'short',
performancePreference: PERF_FOR_CONTEXT[contentType],
});
const summary = await summarizer.summarize(text);
see also
- Fast vs Quality — side-by-side comparison
- Article Summarizer — detailed demo
- Comment Stream — high-volume inline TL;DR
- Quality Control Panel — latency benchmarks
- Safety Harness — edge cases
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗