john kevin asprec 5a79f1a2eb
Some checks failed
CI — Chrome / Chrome — typecheck, test, build (pull_request) Has been cancelled
CI — CLI / CLI — typecheck, build, smoke (pull_request) Has been cancelled
CI — Website / Website — typecheck, build (pull_request) Has been cancelled
CI — VS Code / VS Code — typecheck, build (pull_request) Has been cancelled
feat: add website components and pages for LexAI
- Implemented SiteHeader and SiteFooter components for consistent navigation and footer across the website.
- Created CommunityPage and ContributePage to provide information on community involvement and contribution guidelines.
- Developed DocsPage to serve as the main documentation hub, detailing features and installation instructions.
- Added HomePage to introduce LexAI and its functionalities, highlighting key features and privacy aspects.
- Established links.ts for centralized management of external links used throughout the website.
- Configured main.tsx for application entry point with React Router for navigation.
- Introduced styles.css for consistent styling across the website.
- Set up TypeScript configuration files for improved type checking and development experience.
- Configured Vite for building and serving the website.
2026-08-13 20:27:55 +08:00
2026-03-06 13:12:30 +08:00

LexAI

Bring your own LLM key. LexAI is an open-source writing (and coding) assistant with no LexAI backend, no account, and no subscription. Your text and API key go only to the provider you choose.

Package What it is Docs
packages/chrome Chrome MV3 extension — select text on any page → Fix / Rephrase / Shorten / Expand / Explain / Make Prompt README · Chrome Web Store
packages/vscode VS Code / Cursor extension — writing actions + workspace-aware Code Assist README · Marketplace
packages/cli CLI Prompt Builder — improve a rough idea into a paste-ready prompt README
packages/website Marketing site + docs (features & all packages) README

Shared provider/prompt core: src/lib.

Quick start

# Prerequisites: Node 22+
git clone https://git.juankibin.space/kibin/LexAI.git
cd LexAI

# Install all packages
npm run install:all

# Chrome extension (dev)
npm run chrome:dev

# VS Code extension
npm run vscode:build
# or install: https://marketplace.visualstudio.com/items?itemName=JuanKibin.lexai-vscode

# CLI Prompt Builder
npm run cli:build
export LEXAI_API_KEY=sk-...          # required; PowerShell: $env:LEXAI_API_KEY="sk-..."
export LEXAI_PROVIDER=openai         # optional: openai | anthropic | groq | openrouter
export LEXAI_MODEL=gpt-4o            # optional
node packages/cli/out/cli.js prompt "add rate limiting to the auth routes"

# Website (features + docs)
npm run website:dev

Repository layout

LexAI/
├── packages/
│   ├── chrome/     # Manifest V3 extension (WXT + React)
│   ├── vscode/     # VS Code / Cursor extension
│   ├── cli/        # lexai prompt CLI
│   └── website/    # Marketing site + docs
├── src/lib/        # Shared providers, actions, types
├── tests/          # Unit + e2e tests (run via chrome package)
├── docs/           # Project operating docs (agents / planning)
└── .gitea/         # CI workflows + issue/PR templates

Supported providers

OpenAI · Anthropic · Groq · OpenRouter

Privacy

  • No LexAI servers and no LexAI telemetry
  • Chrome: key encrypted in chrome.storage.local
  • VS Code: key in Secret Storage
  • CLI: key via LEXAI_API_KEY only; optional LEXAI_PROVIDER / LEXAI_MODEL (never put the key in ~/.lexai/config.json)

Contributing

See CONTRIBUTING.md and our Code of Conduct.

License

MIT © LexAI contributors

Description
Bring your own LLM key. LexAI helps you write and work with code in VS Code / Cursor — no LexAI account, no subscription, no LexAI servers.
Readme MIT 3.8 MiB
LexAI v1.0.0 Latest
2026-03-11 09:38:00 +00:00
Languages
TypeScript 87.6%
JavaScript 9.7%
CSS 2.3%
HTML 0.4%