How amardamoney/lisa-extension works
LISA Core is a Chrome extension that captures AI conversations and exports them as portable, compressed LISA JSON or verbatim LISA-V. The main workflow runs from an AI chat page through platform-specific capture and the extension’s background processing to an export initiated in the popup or floating button. Other documented capabilities include checkpoint and snapshot history, selection export, and premium subscription management. The service worker and several major modules are only partially excerpted; edges relying on documented behavior cite the README, and uncertain internal wiring is omitted.
Main entry points: service-worker.js Background Engine · run.js Eval Harness · content Platform Parsers · lisa-v-parser.js LISA-V Export
Components 21
Conversation Capture
- Platform Parsers
src/content - API Capture
src/content - Progressive Capture
src/content/lisa-progressive.js
Memory Processing
- LISA-V Export
src/content/lisa-v-parser.js - Background Engine
src/background/service-worker.js - Semantic Analysis
src/utils/semantic-analyzer.js - Checkpoint Detection
src/shared/checkpoint-detect.js - Export Builders
src/shared/export-builders.js - Snapshot History
src/shared/snapshot-shim.js
Extension Experience
- Floating Save
src/content/lisa-floating-button.js - Extension Popup
src/popup/popup.js
Premium Billing
- Subscription Manager
src/stripe/stripe-payment-manager.js - Stripe Client
src/stripe/stripe-client.js - Billing Server
server/index.js
Compression Evaluation
- Eval Harness
eval/run.js - Extension Loader
eval/load-lisa.js - Token Counter
eval/count.js - Quality Judge
eval/judge.js
Other components
- Extension User
- AI Chat Pages
- Stripe
Connections 20
- AI Chat Pages → Platform Parsers: provides chat
README.md - Platform Parsers → Background Engine: captures conversation
- API Capture → Background Engine: captures conversation
- Extension User → Extension Popup: starts export
README.md - Extension Popup → Background Engine: requests export
- Background Engine → Semantic Analysis: enriches data
- Background Engine → Checkpoint Detection: detects checkpoints
src/shared/checkpoint-detect.js - Background Engine → Export Builders: builds export
src/shared/export-builders.js - Background Engine → Snapshot History: uses snapshot schema
src/background/service-worker.js - Extension User → Floating Save: chooses save
README.md - Floating Save → LISA-V Export: requests LISA-V
README.md - LISA-V Export → AI Chat Pages: captures verbatim
src/content/lisa-v-parser.js - Extension User → Platform Parsers: selects text
README.md - Subscription Manager → Stripe Client: manages payments
src/stripe/stripe-payment-manager.js - Stripe Client → Billing Server: calls billing API
src/stripe/stripe-client.js - Billing Server → Stripe: creates sessions
server/index.js - Eval Harness → Extension Loader: loads extension
eval/run.js - Eval Harness → Token Counter: counts tokens
eval/run.js - Eval Harness → Quality Judge: evaluates quality
eval/run.js - Extension Loader → Export Builders: uses builders
eval/load-lisa.js