PATCH is a web-based screenplay formatting tool that helps writers convert their raw text into properly formatted screenplays following Hollywood standards. This project is built with Next.js and bootstrapped with create-next-app
.
- Real-time screenplay formatting
- Live preview with proper formatting
- Export to PDF
- Customizable display options:
- Multiple font types (Sans-serif, Serif, Monospace, etc.)
- Adjustable font sizes (12px - 24px)
- Bold text toggle
- Character limit indicator (1,875 characters)
- Re-roll functionality for alternative formatting
- Editor component with real-time formatting
- PDF export functionality
- Ollama API integration for script processing
- Context window: 4096 tokens
- GPU acceleration enabled
- 8 thread processing
- Temperature: 0.0 (focused output)
- Top-k: 30
- Top-p: 0.7
- Repeat penalty: 0.8
-
Clone the repository
-
Install dependencies:
npm install
# or
yarn install
# or
pnpm install
# or
bun install
- Set up environment variables:
NEXT_PUBLIC_OLLAMA_BASE_URL=your_ollama_url
NEXT_PUBLIC_OLLAMA_MODEL=your_model_name
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
- Open http://localhost:3000 with your browser
- Enter your unformatted script in the left text box
- Click "Format" to convert your text
- Preview the formatted version in the right panel
- Adjust display settings using the top toolbar
- Export to PDF when satisfied with the formatting
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
- Node.js 16.x or higher
- Next.js 14.x
- Modern web browser with JavaScript enabled
- Ollama API endpoint
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Contributions are welcome! Please feel free to submit a Pull Request.
© 2023 PATCH. All rights reserved.
For support, please open an issue in the repository or contact the development team.