Skip to content

rookie-house/untangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Untangle πŸͺ’

Demystifying Legal Documents for Everyone

Legal documents are long, complex, and filled with jargonβ€”making them hard to read, easy to ignore, and risky to sign. Untangle is an intelligent solution that simplifies legal text into clear, accessible language, highlights hidden risks, and empowers people to make informed decisionsβ€”without always needing a lawyer.


untangle-architecture

πŸš€ Features

  • Zero-friction access: Works instantly with overlays, quick toggles, and chatβ€”no tedious uploads or portals.
  • WhatsApp integration: Get clarity right where you already spend your time.
  • Cross-platform presence: Mobile overlay, Web dashboard, Chrome Extension, and WhatsApp.
  • Centralised insights: Keep track of past documents, risks, and summaries instead of one-time outputs.
  • Made for everyone: Simple language, friendly UX, confidence for all usersβ€”students, small businesses, and everyday citizens.

πŸ—οΈ Architecture

Untangle is a Turborepo monorepo containing multiple apps and packages:

Apps

  • apps/web β†’ Next.js web dashboard for users.
  • apps/server β†’ Hono + Drizzle backend API (Cloudflare Workers + Turso DB).
  • browser-extension β†’ Chrome extension for on-page legal text analysis.

ADK (Agent Development Kit)

  • adk/untangle_agent β†’ Core AI coordinator + specialized sub-agents:

    • Demistifier Agent β†’ Summarises and explains legal documents.
    • Risk Evaluator + Extractor β†’ Identifies risky clauses and phrases.
    • Conversation Agent β†’ Chat with your stored documents and insights.

Shared Packages

  • packages/ui β†’ Shared React UI components.
  • packages/eslint-config β†’ Shared linting rules.
  • packages/typescript-config β†’ Shared TS configs.

πŸ“‚ Directory Structure

rookie-house-untangle/
 β”œβ”€β”€ adk/                   # AI agent pipelines
 β”œβ”€β”€ apps/                  # Web, server, extension
 β”œβ”€β”€ packages/              # Shared configs & UI
 β”œβ”€β”€ .github/workflows/     # CI/CD
 β”œβ”€β”€ turbo.json             # Turborepo config
 β”œβ”€β”€ pnpm-workspace.yaml    # Monorepo workspace
 └── package.json

⚑ Getting Started

Prerequisites

  • Node.js >=18
  • pnpm >=9
  • Python >=3.13 (for ADK)
  • Turso database & Cloudflare Workers account

Install dependencies

pnpm install

Run development servers

# Start everything
pnpm dev

# Start only web
pnpm turbo dev --filter=web

# Start only server
pnpm turbo dev --filter=server

Build all apps

pnpm build

πŸ”‘ Environment Variables

Create .env or .dev.vars files in apps/server/ with:

TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=
JWT_SECRET=
SALT=
FRONTEND_URL=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=
UNTANGLE_ADK_API=

πŸ“¦ Deployment

  • Frontend (web) β†’ Vercel
  • Backend (server) β†’ Cloudflare Workers
  • Database β†’ Turso (libSQL)
  • AI Agents β†’ Google ADK + Gemini models

πŸ’‘ Why Untangle?

  • Makes legal documents simple, not scary.
  • Highlights risks hidden in fine print.
  • Works where you already are (WhatsApp, browser, mobile).
  • Provides ongoing insights, not just one-off summaries.

πŸ› οΈ Tech Stack

  • Frontend: Next.js, Tailwind, Shadcn UI
  • Backend: Hono, Drizzle ORM, Cloudflare Workers
  • Database: Turso (libSQL)
  • Agents: Google ADK, Gemini 2.x models
  • Extension: Chrome + Vite + React

πŸ‘₯ Contributing

We welcome contributions from developers, legal professionals, and designers!

  • Fork the repo
  • Create a feature branch
  • Open a PR πŸŽ‰

πŸ“œ License

MIT License.