Shared Packages
All Unify applications share common infrastructure through packages in the monorepo. This ensures consistency, reduces duplication, and makes cross-app features possible.@unify/database
Shared database types and Supabase client configuration.What It Provides
- TypeScript types generated from Supabase schema
- Supabase client initialization with proper configuration
- Zod schemas for runtime validation
- Privacy-aware patterns for handling PII
Key Patterns
Verified Fields
Track the source and evidence for every piece of applicant data:Privacy Proxy
Separate queryable metadata from encrypted sensitive values:@unify/identity
Unified applicant identity management across all applications.What It Provides
- Applicant linking across Terra, Pathfinder, and external systems
- Profile management with verification tracking
- History tracking for all applications and interactions
Core Schema
Usage
@unify/extraction
Document extraction service for OCR and AI-powered data extraction.This package is planned for the Foundation Phase. Documentation will be expanded as implementation progresses.
Planned Capabilities
Planned Interface
Integration Points
- Terra: Auto-fill form fields from uploaded documents
- Sentinel: Analyze documents for fraud indicators
- Airtable: Exposed via API for external systems
@unify/ai
Shared AI/LLM utilities for all applications.This package is planned for the Intelligence Layer Phase. Documentation will be expanded as implementation progresses.
Planned Capabilities
Chat/Completion
Embeddings
RAG (Retrieval-Augmented Generation)
Translation
@unify/ui
Shared React component library based on Shadcn UI.What It Provides
- Radix UI primitives with Tailwind styling
- CVA (Class Variance Authority) for component variants
- Consistent design system across all applications
Usage
Design Tokens
Package Dependencies
Adding a New Package
- Create the package directory:
- Add
package.json:
- Add to app dependencies:
- Import in your app: