Logo Lanfrica

fab679/wakili-intel

Domaine:

digital infrastructure

Type de record:

software
Créateur:
fab
Hôte:
WakiliIntel is an AI-powered legal drafting copilot for Kenyan advocates. It researches Kenya Law, builds an RDF knowledge graph, loads practice-area skills, and drafts pleadings live in a shared-state editor, running on AMD GPUs and Fireworks AI. # WakiliIntel AI‑assisted legal drafting for Kenyan advocates. WakiliIntel helps lawyers draft pleadings, submissions, and opinions using an intelligent editor backed by Kenya Law research, an RDF knowledge base, and drafting‑skill modules. ## Overview WakiliIntel is a full‑stack web application with two main parts: - **Rich text editor** — A Tiptap/ProseMirror editor with inline autocomplete, slash commands, and a collaborative‑style drafting agent panel. - **Drafting agent** — A Pydantic AI agent that researches Kenya Law (via the public kenyalaw.org search and an Oxigraph RDF store), loads practice‑area‑specific skills, and generates structured legal documents as ProseMirror JSON. Each case can hold multiple documents (threads), each with its own draft, citations, and revision history. Uploaded PDFs/DOCX files are ingested and fed into the agent as context. ## Tech Stack | Layer | Technology | |---|---| | **Frontend** | Next.js 16, React 19, TypeScript, Tailwind CSS 4, shadcn/ui | | **Editor** | Tiptap 3 (ProseMirror), AG‑UI protocol for agent–editor sync | | **Backend** | Python 3.11, FastAPI, Pydantic AI 2.8 | | **AI Provider** | Fireworks AI (OpenAI‑compatible) | | **Database** | Supabase (Postgres) | | **Knowledge Base** | Oxigraph (local RDF/SPARQL store) | | **Legal Research** | kenyalaw.org scraper (BeautifulSoup) | | **Auth** | Supabase Auth (JWT via JWKS) | | **Payments** | M‑Pesa Daraja API (sandbox / production) | ## Getting Started ### Prerequisites - Python ≥ 3.11 + uv - Node.js ≥ 20 + npm - A Supabase project - A Fireworks AI API key ### Backend ```bash cd backend uv sync cp .env.example .env # fill in your API keys uv run uvicorn app.main:app --reload ``` ### Frontend ```bash cd frontend npm install cp .env.example .env.local # fill in your Supabase & API URL npm run dev ``` Open localhost and sign in via Supabase Auth. ### Environment Variables | Variable | Required | Description | |---|---|---| | `FIREWORKS_API_KE …