Installation‐Guide - Life-Experimentalist/NovelSynth GitHub Wiki
Installation Guide
🚀 Quick Start
Prerequisites
- Node.js 16+ and npm 8+
- Modern browser (Chrome 88+, Firefox 85+, Edge 88+)
- AI provider API key (Google Gemini recommended)
Development Installation
1. Clone and Setup
git clone https://github.com/LifeExperimentalist/novelsynth.git
cd novelsynth
npm install
2. Build Extension
# Development build
npm run build:dev
# Production build
npm run build
# Watch mode for development
npm run watch
3. Load in Browser
Chrome/Edge:
- Open
chrome://extensions/
oredge://extensions/
- Enable "Developer mode" toggle
- Click "Load unpacked"
- Select the
dist
folder
Firefox:
- Open
about:debugging
- Click "This Firefox"
- Click "Load Temporary Add-on"
- Select
manifest.json
fromdist
folder
4. Configure API Keys
- Click NovelSynth extension icon
- Go to Settings
- Add your Google Gemini API key
- Test with a sample enhancement
Production Installation
Chrome Web Store
Coming soon - extension under review
Firefox Add-ons
Coming soon - extension under review
Manual Installation
- Download latest release from Releases
- Unzip the package
- Follow browser-specific loading instructions above
🔧 Configuration
API Key Setup
Google Gemini (Recommended)
- Visit Google AI Studio
- Sign in with Google account
- Create new project if needed
- Click "Create API Key"
- Copy key to NovelSynth settings
Free Tier Limits:
- 15 requests per minute
- 1 million tokens per day
- Rate limit resets daily
OpenAI (Optional)
- Visit OpenAI Platform
- Create account and add payment method
- Generate new secret key
- Add to NovelSynth as secondary provider
Pricing:
- GPT-4 Turbo: $0.01 per 1K tokens
- GPT-3.5 Turbo: $0.0015 per 1K tokens
Settings Overview
Enhancement Settings
- Primary Provider: Google Gemini
- Enhancement Mode: Improve (balanced enhancement)
- Auto-Enhancement: Disabled (manual control)
- Content Types: Novels, Articles, Technical docs
Performance Settings
- Chunk Size: 4000 tokens (optimal for most content)
- Processing Timeout: 30 seconds
- Cache Duration: 7 days
- Background Processing: Enabled
⚠️ Troubleshooting Installation
Common Issues
Build Errors
# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install
# Check Node.js version
node --version # Should be 16+
npm --version # Should be 8+
Extension Loading Failed
- Check browser developer mode is enabled
- Verify
dist
folder contains all required files - Check browser console for errors
- Try refreshing extension page
TypeScript Compilation Errors
# Install TypeScript globally
npm install -g typescript
# Check TypeScript configuration
npx tsc --noEmit
# Rebuild with clean slate
npm run clean && npm run build
API Key Issues
- Verify key format (Google keys start with
AI...
) - Check API quota and billing status
- Test key with simple API call
- Ensure no extra spaces or characters
Getting Help
- 📧 Create issue on GitHub
- 💬 Join our Discord community
- 📖 Check FAQ for common questions