Skip to content

Repository files navigation

Redline

Paste a freelance contract, client brief, or work agreement. Redline marks up the risky clauses inline — right in your document — and explains what's wrong and how to fix it, in plain English.

Built for freelancers who don't have a lawyer to check a brief before they sign it.

How it works

  1. Paste your contract or brief text
  2. Redline sends it to Claude with a structured prompt that checks for common freelance risks: vague payment terms, missing kill fees, unlimited revisions, scope creep, unfavorable IP terms, unrealistic deadlines, missing termination clauses, and overly broad exclusivity
  3. Risky clauses are highlighted directly in your pasted text (like real contract markup), color-coded by severity
  4. Click any highlight to see the issue and a suggested fix

Tech stack

  • Next.js 16 (App Router) + TypeScript
  • Tailwind CSS v4
  • Claude API (Anthropic) for contract analysis, structured JSON output

Installation & usage

git clone <your-repo-url>
cd redline
npm install

Create a .env.local file in the project root and set one of these (Claude is used if both are present):

ANTHROPIC_API_KEY=your_key_here

or, as a free no-card alternative, a Gemini key from aistudio.google.com:

GEMINI_API_KEY=your_key_here

Then run the dev server:

npm run dev

Open http://localhost:3000. Click "Try a sample" to see it work immediately, or paste your own contract text.

Deploying

Deploys cleanly to Vercel — push to GitHub, import the repo on Vercel, add ANTHROPIC_API_KEY as an environment variable, deploy.

Notes for judges

  • The analysis prompt requires the model to return verbatim excerpts from the input, which is what allows exact inline highlighting of the source text (not just a generic list of issues).
  • No database — the app is intentionally stateless for v1 (paste → analyze → results). This kept the scope tight enough to ship solo in the hackathon window while still landing a strong end-to-end demo.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages