feat: initial LexAI Chrome extension scaffold
Some checks failed
CI — Test & Build / Unit Tests (push) Failing after 54s
CI — Test & Build / Build Extension (push) Has been skipped

- WXT + React 18 + TypeScript setup
- Background service worker (LLM API proxy)
- Content script (floating toolbar + text selection)
- Options page (provider/model/API key config)
- Popup UI
- Gitea Actions workflows (CI, preview, release)
- Vitest unit tests + Playwright E2E setup
- Supports: OpenAI, Anthropic, Groq, OpenRouter
This commit is contained in:
Nemo
2026-03-06 09:34:15 +08:00
commit b04076081c
20 changed files with 6254 additions and 0 deletions

30
package.json Normal file
View File

@@ -0,0 +1,30 @@
{
"name": "lexai",
"version": "0.1.0",
"description": "A Grammarly-like Chrome Extension powered by your own LLM provider and API key",
"scripts": {
"dev": "wxt",
"build": "wxt build",
"zip": "wxt zip",
"test": "vitest",
"test:e2e": "playwright test",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"wxt": "^0.20.18",
"zustand": "^5.0.3",
"tweetnacl": "^1.0.3",
"tweetnacl-util": "^0.15.1"
},
"devDependencies": {
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"typescript": "^5.7.3",
"tailwindcss": "^3.4.17",
"autoprefixer": "^10.4.20",
"vitest": "^3.0.7",
"@playwright/test": "^1.50.1"
}
}