Includes a CodeRabbit badge in the README to showcase code review status.
Freewriting Prompts

- Use this plugin to generate writing prompts for inspiration
- Write continuously without stopping to edit or second-guess yourself
- Clean up afterwards using Freewriting Cleanup to polish the unedited output
Recommended Workflow:
- Generate prompts with this plugin when you need inspiration
- Enable Digital Paper mode for uninterrupted freewriting sessions
- Use Freewriting Cleanup to polish your raw, unedited writing into readable text
Installation
Method 1: Community Plugin Store (Recommended)
- Open Settings → Community Plugins
- Disable Safe Mode if needed
- Click Browse and search for "Freewriting Prompts"
- Install and Enable the plugin
Method 2: Manual Installation
- Go to GitHub Releases
- Download the latest
main.js,manifest.json, andstyles.css - Create a folder
{VaultFolder}/.obsidian/plugins/freewriting-prompts/ - Place the downloaded files in this folder
- Reload Obsidian (
Ctrl/Cmd + Ror restart) - Enable the plugin in Settings → Community Plugins
Method 3: BRAT (Beta Reviewer's Auto-update Tool)
- Install the BRAT plugin
- Add this repository:
alexanderkucera/obsidian-freewriting-prompts - Enable the plugin after installation
Quick Start
1. Get Your Anthropic API Key
- Visit Anthropic Console
- Create an account or sign in
- Generate an API key from the dashboard
- Copy the key (starts with
sk-ant-)
2. Configure the Plugin
- Go to Settings → Community Plugins → Freewriting Prompts
- Paste your API key in the Anthropic API Key field
- Click Test Connection to verify it works
- Adjust other settings as desired
3. Start Using Prompts
For Timed Writing Sessions:
- Use
Ctrl/Cmd + P→ "Show Timed Prompts" - Prompts will appear as notifications at your configured intervals
For Note Integration:
- Open any note and place your cursor where you want prompts
- Use
Ctrl/Cmd + P→ "Freewriting Prompt" - Prompts will be inserted directly into your note
Configuration
API Configuration
| Setting | Description | Default |
|---|---|---|
| API Key | Your Anthropic API key | (required) |
| Model | Claude model to use | claude-3-haiku-20240307 |
Command Configuration
| Setting | Description | Default | Range |
|---|---|---|---|
| Timed Count | Number of timed prompts | 10 | 1-50 |
| Delay Seconds | Seconds between prompts | 6 | 1-300 |
| Note Count | Prompts inserted in notes | 3 | 1-20 |
Prompt Customization
- System Prompt: Instructions for the AI on how to generate prompts
- Timed Example: Example prompt for timed sessions
- Freewriting Example: Example prompt for note insertion
Commands
Timed Freewriting Prompts
Delivers prompts as timed notifications perfect for writing sprints:
- Generates your configured number of prompts
- Shows the first prompt immediately
- Delivers remaining prompts at your specified intervals
- Each notification shows "Prompt X/Y" with the writing prompt
Use Cases:
- Timed writing sessions (Pomodoro technique)
- Breaking through writer's block
- Maintaining writing momentum
- Creative warm-up exercises
Freewriting Prompt
Inserts prompts directly into your current note:
- Generates prompts based on your settings
- Inserts them at your cursor position
- Formats as a timestamped list
- Perfect for collecting prompts for later use
Use Cases:
- Building prompt collections
- Planning writing sessions
- Creating prompt libraries
- Inspiration gathering
Stop Timed Prompts
Cancels any running timed prompt sequence.
Settings
Advanced Features
-
Test API Key: Verify your connection with detailed feedback including:
- Response time
- Token usage
- Model confirmation
- Specific error messages for troubleshooting
-
Clear Cache: Force regeneration of prompts by clearing the 10-minute cache
Supported Models
- claude-3-haiku-20240307 (fastest, most cost-effective)
- claude-3-sonnet-20240229 (balanced performance)
- claude-3-opus-20240229 (highest quality)
- claude-3-5-sonnet-20241022 (latest sonnet)
- claude-3-5-haiku-20241022 (latest haiku)
Troubleshooting
Common Issues
| Problem | Solution |
|---|---|
| "API key is required" | Enter your Anthropic API key in settings |
| "Network error" | Check internet connection and API key validity |
| "Rate limit exceeded" | Wait a moment and try again, or upgrade your Anthropic plan |
| No prompts generated | Verify API key works with the test button |
Error Messages
The plugin provides detailed error messages for different scenarios:
- 401 Unauthorized: Invalid API key
- 403 Forbidden: Account or billing issues
- 429 Rate Limited: Too many requests
- 500 Server Error: Anthropic service issues
- Network Error: Connection problems
Debug Steps
- Test API Key: Use the "Test Connection" button in settings
- Check Console: Open Developer Tools (F12) for detailed error logs
- Verify Settings: Ensure all required fields are filled
- Clear Cache: Try clearing the prompt cache
- Restart Plugin: Disable and re-enable the plugin
Getting Help
- Issues: Report bugs on GitHub Issues
- Discussions: Ask questions in GitHub Discussions
Development
Setup
# Clone the repository
git clone https://github.com/alexanderkucera/obsidian-freewriting-prompts.git
cd obsidian-freewriting-prompts
# Install dependencies
npm install
# Start development server
npm run dev
Project Structure
freewriting-prompts/
├── api/
│ └── anthropicClient.ts # Anthropic API integration
├── commands/
│ ├── timedPrompts.ts # Timed notification prompts
│ └── notePrompts.ts # Note insertion prompts
├── services/
│ └── promptGenerator.ts # Prompt generation service
├── main.ts # Plugin entry point
├── settings.ts # Settings interface
└── types.ts # Type definitions
Build Commands
npm run dev # Development with file watching
npm run build # Production build with type checking
npm run version # Version bump and manifest update
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development Guidelines
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Follow TypeScript and ESLint conventions
- Test your changes thoroughly
- Commit with descriptive messages
- Submit a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you find this plugin helpful, consider supporting its development:
Contact
Author: Alexander Kucera Website: alexanderkucera.com GitHub: @AlexKucera
Happy writing! 📝✨