Muse is a minimalist web-based writing app with an AI editor/cowriter. It's designed to get out of the way of the author while providing helpful suggestions from an AI assistant.
- Clean, distraction-free writing interface
- AI suggestions appear on the sides, away from the main text
- Unobtrusive and ephemeral suggestions that fade out if you keep writing
- Dynamic suggestion types based on what the AI thinks would be most helpful
- Multiple suggestions can appear simultaneously when appropriate
- Adjustable "chattiness" level to control how frequently the AI provides suggestions
- Intelligent context management for longer documents
- Secure local storage of your OpenAI API key
- Save your work to a local file
- Open existing text files to continue working on them
- First-time user onboarding with a helpful "how to use" modal
- Support the developer with a "Tip jar" button
- Clone this repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser to the URL shown in the terminal (typically http://localhost:5173)
Muse requires an OpenAI API key to generate suggestions. You can set this up in one of two ways:
Create a .env
file in the root directory with the following content:
VITE_OPENAI_API_KEY=your_openai_api_key
- Click the settings icon in the top-right corner of the app
- Enter your OpenAI API key in the field provided
- Adjust the "AI Chattiness" slider to control how frequently suggestions appear
- Click "Save"
Your API key is stored securely in your browser's localStorage and is never sent to our servers.
As you write, the AI assistant will provide suggestions to help improve your writing after you pause typing for a few seconds. These suggestions appear on the left and right sides of the screen and will fade away after a few seconds if you continue writing.
- Suggestions only appear after you stop typing for a few seconds
- The AI will not continuously interrupt you with suggestions
- New suggestions will only be generated after you resume typing and then pause again
- For longer documents, the AI maintains a running summary to provide context-aware suggestions
- The number and frequency of suggestions depend on your chattiness setting
- Click the save button (or use the menu) to save your document
- On modern browsers, a file picker dialog will appear allowing you to choose where to save the file
- On older browsers, you'll be prompted to enter a filename before downloading
- Click the menu button in the top-left corner to access the file menu
- Use "Open File" to load an existing text document
The AI acts as a world-famous author and editor, providing insights on:
- Style improvements
- Character development
- Plot direction
- Thematic exploration
- Pacing adjustments
- Dialogue enhancement
- Setting enrichment
- Emotional resonance
- Reader engagement
- Structural considerations
This project uses:
- React with TypeScript
- Vite for fast development and building
- Tailwind CSS for styling
- OpenAI API for AI suggestions