Ingestion Layer
Normalize PDFs, images, emails, notes, and structured records into a consistent matter workspace.
Legalitize was designed with scalability, security, and legal accuracy as non-negotiable constraints. This page documents the technical architecture for investors conducting due diligence.
Five distinct layers, each independently deployable and horizontally scalable. No monolithic coupling between concerns.
Every technology selection was made for production viability, developer ecosystem maturity, and long-term maintainability โ not trend-following.
Legal data is among the most sensitive data a platform can hold. Every layer of Legalitize treats security as a first-class constraint.
AES-256 encryption for all documents stored in S3. TLS 1.3 for all data in transit. Database fields containing PII encrypted at the application layer in addition to transport security.
AES-256TLS 1.3JWT with short-lived access tokens (15 min) and secure refresh token rotation. bcrypt password hashing (cost factor 12). Session invalidation on logout. CSRF protection via SameSite cookies.
JWTbcryptZod schema validation on all inputs eliminates injection vectors at the API boundary. Rate limiting per user and per IP. Request logging with anomaly detection hooks. CORS policy enforcement.
Zod ValidationRate LimitingEvery database query includes user_id and matter_id scoping enforced at the ORM layer. No cross-user data access is architecturally possible through the API. Row-level security enforced by Prisma middleware.
Row-Level SecurityArchitecture aligned with records access handling requirements for case records. Attorney-client privilege considerations documented in data handling policy. SOC 2 Type II pathway identified for enterprise customers.
records access-AwareSOC 2 ReadySHA-256 hashing of all generated documents at creation. Version history maintained. S3 object versioning enabled. Document integrity can be verified against hash at any point โ critical for legal evidentiary use.
SHA-256VersioningThe Legalitize API is built for both internal consumption and eventual enterprise partner integration.
Every uploaded record can connect to parties, dates, issues, claims, events, exhibits, drafts, deadlines, and review notes. That architecture allows Legalitize to support multiple practice areas while preserving source-linked truth and reviewable output.
Normalize PDFs, images, emails, notes, and structured records into a consistent matter workspace.
Connect entities, events, issues, exhibits, claims, deadlines, communications, and draft context.
Keep human approval, attorney review, source citations, audit history, and version control in the workflow.