High-Performance Fintech Fraud Detection & Transaction Streaming
Klarheit is a modern, full-stack monorepo designed for real-time financial monitoring. Built with a focus on type-safety, low latency, and cinematic UI, it leverages the Better-T-Stack to deliver a robust fraud detection engine.
| Layer | Technology |
|---|---|
| Runtime | Bun (High-performance JS runtime) |
| Frontend | Next.js (App Router, React) |
| Backend | ElysiaJS (High-performance web framework) |
| API Layer | oRPC (End-to-end type-safety & OpenAPI) |
| Database | PostgreSQL + Prisma ORM |
| Auth | Better-Auth |
| Styling | TailwindCSS + Shadcn/UI |
| Monorepo | Turborepo |
- Real-time Streaming: Live transaction monitoring via WebSockets / Socket.io.
- Fraud Detection Engine: High-speed data processing architecture inspired by Kafka/RabbitMQ patterns.
- Unified Type-Safety: Shared types across frontend and backend via oRPC.
- Modern Aesthetics: Minimalist, "Noir" fintech dashboard optimized for clarity and speed.
- Monorepo Architecture: Clean separation of concerns between
apps/web,apps/server, and sharedpackages.
Klarheit/ βββ apps/ β βββ web/ # Next.js Dashboard UI β βββ server/ # Elysia + oRPC Backend Engine βββ packages/ β βββ ui/ # Shared shadcn/ui primitives & global styles β βββ api/ # Core business logic & API definitions β βββ auth/ # Authentication configuration β βββ db/ # Prisma schema & PostgreSQL connection βββ docker-compose.yml # Infrastructure (PostgreSQL, Redis, etc.) βββ turbo.json # Build pipeline configuration
Ensure you have Bun installed on your system.
bun installCreate a .env file in both apps/server/ and apps/web/:
DATABASE_URL="postgresql://user:password@localhost:5432/klarheit"
BETTER_AUTH_SECRET="your_secret_here"bun run db:push
bun run db:generateRun the entire stack (Frontend + Backend):
bun run dev- Web Dashboard β http://localhost:3001
- API Server β http://localhost:3000
| Command | Action |
|---|---|
bun run dev |
Start all apps in watch mode |
bun run build |
Production build |
bun run check |
Lint + format (Biome) |
bun run db:studio |
Open Prisma Studio |
bun run check-types |
TypeScript validation |
Optimized for Cloudflare via Alchemy:
cd apps/web
bun run deployUdit GitHub: https://github.com/BuddyCodez
Klarheit: Because financial systems deserve absolute clarity.