PortfolioServices
← All projects
AI Systems/2025

StoryForge

A 14,000-line platform that takes writers from blank page to finished book.

StoryForge

Most writers never finish. The gap between the story in your head and the story on the page is enormous. Existing AI writing tools fell into two camps: generate-everything tools that produced soulless content, and autocomplete tools that could finish a sentence but not understand a narrative. Writers needed an environment that tracked their characters, understood their genre conventions, maintained their voice, and could help at every stage from outline to final draft without flattening everything into the same generic AI tone.

Planning Agent

An 8-step interactive process walks writers from raw idea to structured book plan. Genre, mood, target audience, point of view, chapter count, key details, title. Each step accepts freeform input or quick-select chips. Two creation modes: Agent Mode for conversational book creation where you describe your idea and the AI builds the structure, and Template Mode with 600+ genre-specific starters for Fantasy, Sci-Fi, Thriller, Romance, Mystery, and Horror. A single prompt can produce a complete 10-chapter novel, streaming each chapter as it finishes.

Planning Agent

The Editor

TipTap rich editor with nine AI writing tools. Highlight text to rewrite it, describe a scene with all five senses, expand a sparse passage, shift the tone, brainstorm alternatives. Floating selection menu, slash commands, right-click context menu. A generation history panel lets you compare previous outputs and roll back. Every tool receives the last 2,000 words plus the full story bible so it writes in context. Claude Haiku for fast generation, Sonnet for quality-critical passages, Gemini Flash as cost-effective fallback. AI text streams word-by-word directly into the editor.

The Editor

The Anti-Slop System

A 300-line system prompt that bans everything making AI writing sound like AI writing. Overused em dashes and ellipses. Purple prose. Melodramatic verbs. Filler hedges like "it's worth noting." It enforces show-not-tell, requires sentence length variation from 4-word punches to 30-word flows, and applies genre-specific rules. Short sentences for thrillers. Emotional interiority for romance. Dense imagery for literary fiction. The Story Bible tracks characters with descriptions, worldbuilding with locations and magic systems, and a two-level outline organizing acts and chapters. All of it gets included in every AI call.

Thirty API endpoints across 11 Prisma database models. Database-backed rate limiting with sliding windows: 15 requests per minute for writing tools, 3 per hour for full book generation. Token budget caps at 5 million per month with warnings at 80 percent. Security includes httpOnly JWT cookies with constant-time password comparison to prevent timing attacks. Quick Mode offers one-click continue writing. Pro Mode opens the full AI toolbar. Cover generation produces AI book covers. A publishing flow handles preview, edit, and publish.

Stack
Next.js 14TipTapVercel AI SDKClaudePrismaSupabaseZustand
Lead DeveloperArash Shalchian

Have something like this?

Let's talk