AI-assisted English proofreading: grammar and punctuation fixes, tone smoothing, and explanations for each change so you learn while you edit.
Live site: quickrefine.com · Repo: github.com/mishamoix/QuickRefine
The app centers on a Your draft editor (up to 600 characters), How it works, and Why writers use it sections, with Google sign-in for analysis.
- Structured feedback — Corrections with short explanations, rules, and examples (via
generateObject+ Zod schemas). - Provider choice — Switch between Anthropic, OpenAI, or OpenRouter using
LLM_PROVIDERand the matching API keys. - Modes — Standard enhance and a fast path for quicker edits.
- Auth — NextAuth with Google OAuth; MongoDB adapter for session persistence.
- Observability — Optional Langfuse tracing for prompt and usage visibility.
| Layer | Tools |
|---|---|
| Framework | Next.js 16 (App Router) |
| UI | React 19, Tailwind CSS, DaisyUI |
| AI | AI SDK (@ai-sdk/openai, @ai-sdk/anthropic) |
| DB | mongodb / mongoose, @next-auth/mongodb-adapter |
| Auth | NextAuth.js |
- Node.js 20+ (recommended)
- MongoDB URI (Atlas or local)
- API keys for at least one LLM provider you plan to use
- (Optional) Google OAuth client ID and secret for sign-in
git clone https://github.com/mishamoix/QuickRefine
cd fix_english
npm install
cp .env.example .envEdit .env and set:
MONGODB_URI— database connection stringNEXTAUTH_SECRET— random string (e.g.openssl rand -base64 32)NEXTAUTH_URL— e.g.http://localhost:3000in developmentGOOGLE_ID/GOOGLE_SECRET— from Google Cloud Console OAuth credentialsLLM_PROVIDER—anthropic|openai|openrouter- One or more of:
LLM_API_KEY,ANTHROPIC_API_KEY,OPENROUTER_API_KEY(seesrc/libs/llm.tsfor which key each provider uses) - (Optional) Langfuse keys and
LANGFUSE_HOSTif you use tracing
npm run devOpen http://localhost:3000.
npm run build # production build
npm run start # run production server (after build)
npm run lint # ESLintsrc/app/— App Router routes, metadata, OG images, API routes (/api/enhance,/api/enhance/fast,/api/auth/[...nextauth])src/components/— Landing sections (Hero,TextAnalyzer,HowItWorks,Features, …)src/libs/— LLM client, MongoDB, NextAuth, Langfuse
Questions or feedback: quickrefine@bizarrefusion.com
