How openshiporg/openfront-law-firm works
Openfront Law Firm is a self-hostable legal-practice and client-collaboration application. Visitors discover attorneys and practice areas and can request consultations; firm staff then manage intake, conflicts, matters, deadlines, documents, communications, time, expenses, billing, and trust records, while clients use scoped sharing. The dashboard’s Keystone-backed data layer supports those workflows, with payment-provider webhooks handling payment settlement. The graph preserves documented product areas, but the excerpts show only selected routes and calls; links without direct source evidence are omitted.
Main entry points: route.ts Payment webhook · index.ts Keystone configuration · ServicePages.tsx Public site · useQueryFactory.ts Dashboard queries
Components 24
Public and client experience
- Public site
features/storefront/screens/ServicePages.tsx - Consultation booking
features/storefront/screens/ServicePages.tsx - Client portal
features/portal/actions.ts
Firm dashboard
- Dashboard interface
features/dashboard/screens - Dashboard queries
features/dashboard/hooks/useQueryFactory.ts - Admin data actions
features/dashboard/actions/getAdminMetaAction.ts - Query factory
features/dashboard/hooks/useQueryFactory.ts - Query cache
features/dashboard/lib/queryClient.ts
Legal practice operations
- Intake and conflicts
features/keystone/mutations/intakeWorkflows.ts - Matters and work
features/keystone/mutations/practiceWorkflows.ts - Documents and communications
features/keystone/models/documents.ts - Billing and trust
features/keystone/mutations/billingWorkflows.ts
Platform services
- AI and legal research
features/platform/ai/api/completion.ts - Accounting
features/platform/accounting/screens/AccountingPage.tsx - Payment webhook
app/api/payment-webhooks/[providerId]/route.ts - Provider adapter
features/keystone/utils/paymentProviderAdapter.ts - Payment workflows
features/keystone/mutations/portalPayments.ts - Consultation payments
features/keystone/mutations/consultationPayments.ts
Application data layer
- Keystone configuration
features/keystone/index.ts - Domain models
features/keystone/models - PostgreSQL database
features/keystone/database-url.ts
Other components
- Visitors
- Clients
- Firm staff
Connections 20
- Visitors → Public site: explore
README.md - Public site → Consultation booking: request consultation
features/storefront/screens/ServicePages.tsx - Clients → Client portal: use sharing
README.md - Firm staff → Dashboard interface: manage practice
README.md - Firm staff → Intake and conflicts: manage intake
README.md - Firm staff → Matters and work: manage matters
README.md - Firm staff → Documents and communications: manage records
README.md - Firm staff → Billing and trust: manage finances
README.md - Firm staff → Accounting: manage accounting
- Firm staff → AI and legal research: use AI tools
- Dashboard queries → Query factory: uses
features/dashboard/hooks/useAdminMeta.query.ts - Query factory → Admin data actions: queries
features/dashboard/hooks/useAdminMeta.query.ts - Admin data actions → Keystone configuration: uses client
features/dashboard/actions/getAdminMetaAction.ts - Keystone configuration → Domain models: registers
features/keystone/index.ts - Keystone configuration → PostgreSQL database: configures
features/keystone/index.ts - Payment webhook → Provider adapter: verifies event
app/api/payment-webhooks/[providerId]/route.ts - Payment webhook → Payment workflows: reconciles payment
app/api/payment-webhooks/[providerId]/route.ts - Payment webhook → Consultation payments: settles consultation
app/api/payment-webhooks/[providerId]/route.ts - Clients → Billing and trust: pay invoices
README.md - Query cache → Dashboard queries: caches queries