A full-featured insurance claims management platform built with SvelteKit, featuring role-based access control, automated claim processing, fraud detection, and comprehensive reporting.
ClaimFlow is a modern web application designed for insurance companies to manage the complete lifecycle of insurance claims. It supports multiple user roles with tailored dashboards and workflows for each.
| Role | Capabilities |
|---|---|
| Policyholder | View policies, file claims, upload documents, track status, communicate with adjusters |
| Claims Adjuster | Review assigned claims, update status, add notes, calculate settlements, verify documents |
| Agent/Broker | Manage customer policies, assist with claims, view commissions, add new policyholders |
| Underwriter | Review high-value claims ($50K+), assess risk, approve/deny policy renewals |
| Admin | Manage users, batch operations, system analytics, configure workflows |
Draft → Filed → Under Review → Investigation → Estimation →
Pending Approval → Approved/Denied → Payment Pending → Paid → Closed
| Category | Technology |
|---|---|
| Framework | SvelteKit 2.x with Svelte 5 |
| Language | TypeScript |
| Database | SQLite with Drizzle ORM |
| Styling | Tailwind CSS 4.x |
| Icons | Lucide Svelte |
| Date Handling | date-fns |
claimflow/
├── src/
│ ├── app.css # Global styles and Tailwind config
│ ├── app.html # HTML template
│ ├── hooks.server.ts # Auth middleware
│ │
│ ├── lib/
│ │ ├── components/ # Reusable Svelte components
│ │ │ ├── AppShell.svelte
│ │ │ ├── DocumentTimeline.svelte
│ │ │ └── WorkflowTimeline.svelte
│ │ │
│ │ └── server/ # Server-side modules
│ │ ├── db/
│ │ │ ├── index.ts # Database connection
│ │ │ └── schema.ts # Drizzle ORM schema
│ │ ├── auth.ts # Authentication logic
│ │ ├── batch.ts # Batch operations
│ │ ├── notifications.ts
│ │ ├── rbac.ts # Role-based access control
│ │ ├── renewals.ts # Policy renewal workflow
│ │ ├── reports.ts # Analytics/reporting
│ │ ├── seed.ts # Database seeding
│ │ ├── settlement.ts # Settlement calculator
│ │ ├── triage.ts # Auto-assignment & fraud detection
│ │ ├── uploads.ts # Document uploads
│ │ └── workflow.ts # Claim state machine
│ │
│ └── routes/ # SvelteKit routes
│ ├── auth/ # Login, register, logout
│ ├── dashboard/ # Policyholder dashboard
│ ├── policies/ # Policy management
│ ├── claims/ # Claims management
│ ├── messages/ # Messaging
│ ├── settings/ # User settings
│ ├── adjuster/ # Adjuster dashboard
│ ├── agent/ # Agent dashboard
│ ├── underwriter/ # Underwriter dashboard
│ ├── admin/ # Admin dashboard
│ └── api/ # API endpoints
│
├── drizzle.config.ts # Database configuration
├── svelte.config.js # SvelteKit configuration
├── tailwind.config.ts # Tailwind configuration
├── vite.config.ts # Vite configuration
└── package.json
users - User accounts with role assignmentspolicies - Insurance policiesclaims - Insurance claimsdocuments - Uploaded filescommunications - Messages between userssessions - User sessionsnotifications - In-app notificationsclaimNotes - Investigation and status notesclaimWorkflowHistory - Status transition audit trailsettlementCalculations - Payout calculationspolicyRenewals - Renewal trackingfraudAlerts - Fraud detection flagsmessageAttachments - Message file attachmentsauditLogs - System audit trail| Endpoint | Method | Description |
|---|---|---|
/api/claims/workflow |
GET/POST | Workflow transitions and history |
/api/claims/triage |
POST | Auto-assignment and fraud check |
/api/claims/settlement |
GET/POST | Settlement calculations |
/api/claims/export |
GET | CSV export |
/api/documents |
POST | File uploads |
/api/notifications |
GET/POST | Notification management |
/api/renewals |
GET/POST | Renewal management |
All accounts use password: password123
| Role | |
|---|---|
| Admin | admin@claimflow.com |
| Underwriter | underwriter@claimflow.com |
| Adjuster | adjuster@claimflow.com |
| Adjuster | adjuster2@claimflow.com |
| Agent | agent@claimflow.com |
| Agent | agent2@claimflow.com |
| Policyholder | john.doe@example.com |
| Policyholder | jane.smith@example.com |
| Policyholder | robert.wilson@example.com |
MIT License
Contributions are welcome! Please read the contributing guidelines before submitting a pull request.