Enterprise legal docketing software combining CompuLaw-style rules-based deadline calculation with AI document analysis.
Status: ✅ Production Ready | Database Seeded | Backend & Frontend Deployed
- Frontend: https://frontend-five-azure-58.vercel.app
- Backend API: https://litdocket-production.up.railway.app
- API Docs: https://litdocket-production.up.railway.app/api/docs
- Backend: Railway (FastAPI + PostgreSQL)
- Frontend: Vercel (Next.js 14)
- Database: Supabase PostgreSQL (14 jurisdictions seeded)
- Auth: Firebase Authentication
- AI: Anthropic Claude API
- Case management
- Deadline tracking and calculation
- Trigger-based deadline generation (Florida + Federal rules active)
- PDF document upload and viewing
- AI-powered document analysis
- Calendar view
- Morning report dashboard
- Framework: Next.js 14 (App Router)
- Styling: Tailwind CSS (enterprise legal aesthetic)
- Auth: Firebase Auth → Backend JWT
- State: React hooks + context
- Framework: FastAPI (Python 3.12)
- ORM: SQLAlchemy 2.0
- Database: PostgreSQL via Supabase
- AI: Anthropic Claude API
- Auth: JWT (python-jose)
- Node.js 18+
- Python 3.12+
- PostgreSQL (or use Supabase)
# Clone the repo
git clone https://github.com/jackson-jpeg/litdocket.git
cd docketassist-v3
# Backend setup
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env # Configure your env vars
uvicorn app.main:app --reload
# Frontend setup (new terminal)
cd frontend
npm install
cp .env.example .env.local # Configure your env vars
npm run devBackend (.env):
DATABASE_URL=postgresql://...
JWT_SECRET_KEY=your-secret-key-here
ANTHROPIC_API_KEY=sk-ant-...
FIREBASE_SERVICE_ACCOUNT={"type":"service_account"...}Frontend (.env.local):
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_FIREBASE_API_KEY=...
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=...docketassist-v3/
├── frontend/ # Next.js frontend
│ ├── app/ # App router pages
│ ├── components/ # React components
│ ├── lib/ # Utilities, API client, auth
│ └── types/ # TypeScript types
│
├── backend/ # FastAPI backend
│ ├── app/
│ │ ├── api/v1/ # API routes
│ │ ├── models/ # SQLAlchemy models
│ │ ├── schemas/ # Pydantic schemas
│ │ ├── services/ # Business logic
│ │ │ ├── rules_engine.py # Deadline calculation
│ │ │ └── ai_service.py # Claude integration
│ │ └── seed/ # Database seeding
│ ├── scripts/ # Utility scripts
│ │ └── seed_production.py # Database seeding
│ └── supabase/migrations/ # Database migrations
│
└── docs/ # Documentation
└── archive/ # Historical docs
- CLAUDE.md - Project instructions and coding standards ⭐
- UPDATED_RULES_ARCHITECTURE.md - Current rules engine architecture
- DATABASE_SEEDED_CONFIRMATION.md - Database seeding status and next steps
- SCRIPTS_CLEANUP_SUMMARY.md - Backend scripts cleanup summary
- backend/scripts/README.md - Available backend scripts
- backend/LEGAL_DEFENSIBILITY_GUIDE.md - Legal accuracy standards
- backend/SYSTEM_STATUS.md - System status and fixes log
- frontend/PAPER_STEEL_DESIGN_SYSTEM.md - Design system
- frontend/FIXES_APPLIED.md - Frontend fixes log
- docs/archive/ - Historical planning and old status docs
LitDocket uses a trigger-based deadline calculation system inspired by CompuLaw:
- User enters a trigger event (e.g., "Complaint Served on Jan 15")
- System calculates 30+ dependent deadlines automatically
- If trigger date changes, all deadlines cascade-update
- Manual overrides are preserved from auto-recalculation
- 14 Jurisdictions seeded and active
- Florida State Courts - Full civil procedure rules
- Federal Courts - FRCP rules
- 2 Rule Templates:
- FL Complaint Served → 3 deadlines
- FL Trial Date → 30+ deadlines
- Jurisdiction → RuleSet → RuleTemplate → RuleTemplateDeadline
- Supports service method extensions (mail, personal, etc.)
- Priority levels: FATAL, CRITICAL, IMPORTANT, STANDARD, INFORMATIONAL
See UPDATED_RULES_ARCHITECTURE.md for full details.
- Login: https://frontend-five-azure-58.vercel.app
- Open a case (or create new one)
- Click "Add Trigger"
- Select:
- Jurisdiction: Florida
- Trigger Type: Complaint Served
- Date: Any date
- Service Method: Mail
- Click "Generate Deadlines"
Expected: 3 deadlines appear automatically with correct dates calculated!
# Deploy via git push
git push origin main
# Railway auto-deploys from main branch
# Or manual deploy
railway up# Deploy via git push
git push origin main
# Vercel auto-deploys from main branch
# Or manual deploy
vercel --prodCRITICAL - LegalTech Security Standards:
- Ownership Verification: ALL endpoints filter by
user_id - IDOR Prevention: Never trust client IDs without ownership check
- Input Validation: All inputs validated via Pydantic
- No Secrets in Code: Use environment variables only
- Audit Trail: Soft deletes, timestamps on all models
See CLAUDE.md for full security standards.
Status: ✅ Production database already seeded (14 jurisdictions)
If you need to re-seed:
railway ssh --service litdocket
python scripts/seed_production.pySee DATABASE_SEEDED_CONFIRMATION.md for details.
- ✅ Fixed backend 502 errors (deleted obsolete model files)
- ✅ Confirmed database seeded (14 jurisdictions)
- ✅ Cleaned up backend scripts directory
- ✅ Consolidated documentation (archived 18 obsolete .md files)
See commit history for full changelog.
- TypeScript: Strict mode, no
anytypes - Python: Type hints required, use Pydantic for validation
- Testing: Write tests for all business logic
- Security: Follow ownership verification patterns
See CLAUDE.md for full coding standards.
"Can't login"
- Check Firebase config in frontend
.env.local - Verify backend JWT_SECRET_KEY is set
"No jurisdictions in dropdown"
- Database may not be seeded - see
DATABASE_SEEDED_CONFIRMATION.md
"Deadlines not generating"
- Check browser console for errors
- Verify backend
/api/v1/triggersendpoint is working
"Railway deployment failing"
- Check Railway logs for errors
- Verify all environment variables are set
Proprietary - LitDocket
LitDocket started as a deadline calculation tool and evolved into a comprehensive legal docketing system with:
- CompuLaw-style trigger-based deadline chains
- AI document analysis via Claude
- Enterprise-grade security and audit trails
- Multi-jurisdiction support
For historical planning docs and development notes, see docs/archive/.
Last Updated: January 27, 2026 Version: 1.0.0 Status: Production Ready ✅