跳到正文
DEV Community· Jason Guo·· 2 小時前AI 評分51

WriteFit:我為何打造「只評論、不代寫」AI 寫作工作室(Next.js 16 + Cloudflare Workers + D1)

Why I Built a "Critique-Only" AI Writing Studio (Next.js 16 + Cloudflare Workers + D1)

AI 導讀

Jason Guo 介紹他打造 WriteFit 的設計:AI 只評論草稿,不替用戶撰寫或改寫句子。評論採用 Line Editor、Beta Reader、Dialogue & Subtext 三種視角,每次列出 3 項附有原文引句的問題及手動修訂任務,完成後可並排比較版本。

正文

Jason Guo

Most AI writing apps optimize for speed: you paste a rough paragraph, click a button, and the model hands back a smoother paragraph. The text looks cleaner, the writer learns nothing, and after a few weeks everything you publish starts sounding like the same generic LLM cadence.

While building WriteFit, I decided to enforce the exact opposite constraint: the AI is never allowed to write or rewrite a single sentence for you.

Here are the three product and engineering decisions that made this work in practice.

1. Locking LLMs Out of Ghostwriting & Sycophancy

If you just ask a general-purpose model to "critique my draft," it usually does two unhelpful things:

  1. Opens with three sentences of polite praise ("Great atmospheric tension!").
  2. Hands you a rewritten version of your paragraph anyway.

To prevent both, we split critique into three strict editorial lenses—Line Editor, Beta Reader, and Dialogue & Subtext—and constrain the structured output to strictly 3 quoted issues:

  • Exact quote from the user's draft
  • Why that specific line weakens the scene (e.g. filter-word stacking like "he saw / she felt", white-room syndrome, adverb crutches, or flat emotion labels)
  • A concrete revision task the user has to execute by hand

After revising, the user gets a side-by-side version diff instead of an AI replacement. For writers who want a 15-minute daily warm-up without staring at a blank page, we also built an Avram-style 3-word random writing prompt drill (object + setting + dramatic tension) and a 5-step Character Workshop.

2. Stack: Next.js 16 + OpenNext on Cloudflare Workers + D1

Running a bilingual (English + Chinese) Next.js 16 app on Cloudflare Workers with D1 keeps latency low and hosting predictable:

  • Static marketing & comparison pages (like our honest breakdown of WriteFit vs Sudowrite) prerender cleanly via generateStaticParams.
  • Dynamic practice & billing routes run on Workers backed by Cloudflare D1 + Drizzle ORM.
  • One gotcha we hit with Cloudflare Workers Builds: make sure your CI build command runs npx opennextjs-cloudflare build (not bare next build) and deploy uses npx wrangler deploy --keep-vars so dashboard-configured environment variables aren't wiped on deploy.

3. Frictionless Try-Before-Signup + Client-Only BYOK

Requiring an account before a visitor can see a single critique kills conversion. On the other hand, leaving an LLM endpoint completely open invites abuse.

Our compromise:

  • 1 free anonymous critique/day on the homepage, rate-limited by IP hash in D1.
  • 2 critiques/day on a free account.
  • BYOK (Bring Your Own Key) on paid plans—users can plug in their own OpenAI or Anthropic API key, kept strictly in browser localStorage, and drafts are never used for model training.

If you're building AI-assisted tools in any creative domain, I'd love to hear how you balance keeping the human in the driver's seat vs. letting the model auto-complete the work. You can also test the critique-only loop on a one-click sample draft right on the WriteFit homepage without signing up.

來源:DEV Community · dev.to