Lexeme
Lexeme is an open-source chat text editor tool inspired by SQL Workbench. It offers a fully integrated workflow for brainstorming, writing,...
Last verified:
What is Lexeme?
Lexeme is an open-source ChatGPT text editor inspired by SQL Workbench that provides a fully integrated workflow for brainstorming, writing, and rewriting with ChatGPT as your copilot, all within the same window. It eliminates the need to switch back and forth between ChatGPT and traditional text editors, enabling power users to collaborate with ChatGPT without constantly copying and pasting.
Key features include Selective Context, where only selected text is sent to ChatGPT allowing you to rewrite a single sentence instead of an entire paragraph; Reusable Prompts, letting you set your preferred style in the document prompt so every subsequent chat uses the same prompt; and Built-in Action Prompts for quick tasks like Improve, Expand, Shorten, Continue, Counter argument, Example, Brainstorm, and Custom Prompts. The tool also supports System Prompts with global, document, and action prompt layers to define ChatGPT's personality and response format.
Lexeme is designed for writers, content creators, developers, and professionals who need efficient AI-assisted writing workflows. It supports advanced use cases like writing Q4 OKRs, Slack messages, announcements, and project documentation. The tool is open-source under GPL-3.0 license and built with TypeScript, making it accessible for users who want to self-host or customize the editor.
The interface allows users to create multiple chats within the same document, keeping each chat context separate to support an iterative writing process. Users can highlight text and smoothly transition into a chat with ChatGPT, making the editing process seamless and intuitive for both casual and power users.
Lexeme pricing
Pricing model: Free
Lexeme is open-source and free to use under the GPL-3.0 license. However, users must provide their own OpenAI API key which requires payment directly to OpenAI for ChatGPT access. New OpenAI accounts may receive $5 in free credits, but free tier access is restricted to older models (GPT-3.5 Turbo) with low rate limits (3 requests/min). Credit card is required for GPT-4+ access. The tool itself has no additional licensing fees beyond the OpenAI API costs.
Lexeme pros
- Open-source under GPL-3.0 license for free use and customization
- Fully integrated workflow eliminates switching between ChatGPT and text editor
- Selective Context sends only highlighted text to ChatGPT
- Reusable Prompts maintain consistent writing style across chats
- Built-in Action Prompts for common tasks like Improve, Expand, Shorten
- Multiple chats within same document with separate context
- System prompts with global, document, and action layers for fine control
- Custom Prompts allow users to create their own writing guides
- Inspired by SQL Workbench for familiar power user interface
- No constant copying and pasting between tools required
- Rewrite single sentences without affecting entire paragraphs
- Supports advanced use cases like OKRs, Slack messages, announcements
- Built with TypeScript for modern web performance
- Self-hostable with custom API endpoint support via OPENAI_BASE_URL
- Iterative writing process with preserved chat context separation
Lexeme cons
- Requires OpenAI API key and payment for ChatGPT access
- No official released version yet on GitHub (no releases published)
- Limited to 41 stars on GitHub indicating small community
- Only 2 contributors shown on GitHub repository
- No packages published for easy installation
- Custom API endpoint requires manual environment variable setup
- Kubernetes deployment requires manual k8s.yml configuration
- May have minor language and accuracy errors as with AI tools
Frequently asked questions about Lexeme
What is Lexeme?
Lexeme is an open-source ChatGPT text editor inspired by SQL Workbench that provides a fully integrated workflow for brainstorming, writing, and rewriting with ChatGPT as your copilot, all within the same window without switching between tools.
How does Selective Context work?
Selective Context allows you to highlight only the text you want to edit, and only that selected text is sent to ChatGPT. This means you can rewrite a single sentence instead of the entire paragraph, enabling precise editing without copying and pasting.
What are Reusable Prompts?
Reusable Prompts let you set your preferred writing style in the document prompt, and every subsequent chat will use the same prompt. This eliminates the need to create a new chat and repeat yourself when drafting similar but unrelated messages, emails, or announcements.
What built-in action prompts are available?
Lexeme includes built-in action prompts for Improve, Expand, Shorten, Continue, Counter argument, Example, Brainstorm, and Custom Prompts. These allow you to quickly perform common writing tasks like improving style, adding detail, meeting word limits, generating opposing viewpoints, providing examples, or brainstorming new ideas.
How do system prompts work in Lexeme?
System prompts are initial instructions defining the starting point for a new chat. In Lexeme, they combine three layers: global prompt (context for all documents), document prompt (details for chats within that document), and action prompts (final concise requirements). This layered approach greatly influences response relevance and accuracy.
Is Lexeme free to use?
Yes, Lexeme itself is open-source and free under the GPL-3.0 license. However, you need your own OpenAI API key which requires payment to OpenAI for ChatGPT access. New accounts may receive $5 in free credits restricted to GPT-3.5 Turbo with low rate limits.
Who is Lexeme designed for?
Lexeme is designed for power users, writers, content creators, developers, and professionals who need efficient AI-assisted writing workflows. It's ideal for anyone writing OKRs, Slack messages, announcements, project documentation, or any text-based work requiring iterative AI collaboration.
Can I self-host Lexeme?
Yes, Lexeme is open-source and self-hostable. To run the development server, export your OPENAI_API_KEY and run 'npm run dev'. You can also specify a custom API endpoint by setting the OPENAI_BASE_URL environment variable. Kubernetes deployment is supported via k8s.yml configuration.
How do I create multiple chats in one document?
Lexeme allows you to create multiple chats within the same document, keeping each chat context separate. This supports an iterative writing process where different conversations maintain their own context without interfering with each other, ideal for working on different sections or topics within the same document.
What programming language is Lexeme built with?
Lexeme is built primarily with TypeScript (88.9% of the codebase), with CSS (9.7%) and other languages (1.4%). The repository is hosted on GitHub under pagebrain/lexeme with 41 stars and is licensed under GPL-3.0.