324cfcc4865ca5e288e91b4f5d34fa411eb7e6c1
- src/lib/types.ts: message contract (both ANALYZE_TEXT shapes preserved), config/response types, storage-key constants. - src/lib/messaging.ts: single safeStorageGet/safeStorageSet/safeSendMessage/ isExtensionValid implementation replacing the three divergent copies in Options, Popup, and content. Content script keeps its refresh-toast behavior via an onContextInvalidated callback. - New '@lib' import alias (wxt force-overwrites '~' and '@' to srcDir, so those cannot point at ./src); wired in wxt.config, tsconfig, vitest. - tests/unit/messaging.test.ts: 14 unit tests over the wrappers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
⚡ LexAI — AI Writing Assistant
A Grammarly-like Chrome Extension powered by your own LLM API key. No monthly subscription. Full control.
Features (Roadmap)
- ✅ Grammar & spelling correction
- ✅ Rephrase / rewrite text
- ✅ Shorten or expand text
- 🔜 Tone suggestions
- 🔜 Autocomplete
- 🔜 Custom style profiles
Supported LLM Providers
- OpenAI (GPT-4o, GPT-4o-mini)
- Anthropic (Claude 3.5 Haiku, Sonnet)
- Groq (free tier — fast!)
- OpenRouter (100+ models)
Tech Stack
- WXT + React 18 + TypeScript
- Manifest V3
- Inline-styled UI (no CSS framework)
Development
npm install
npm run dev # Dev mode with hot reload
npm run build # Production build
npm run zip # Package for Chrome Web Store
npm test # Run unit tests
Load in Chrome
- Run
npm run build - Open Chrome →
chrome://extensions - Enable Developer Mode
- Click Load unpacked → select
.output/chrome-mv3
Project Management
Plane: LEXAI project → https://plane-pro.juankibin.space
Releases
1
LexAI v1.0.0
Latest
Languages
TypeScript
87.6%
JavaScript
9.7%
CSS
2.3%
HTML
0.4%