Skip to content
BuddyCodezPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

πŸ›‘οΈ Klarheit

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.


⚑ Tech Stack

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

✨ Key Features

  • 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 shared packages.

πŸ“‚ Project Structure

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

πŸš€ Getting Started

1. Prerequisites

Ensure you have Bun installed on your system.


2. Installation

bun install

3. Environment Setup

Create a .env file in both apps/server/ and apps/web/:

DATABASE_URL="postgresql://user:password@localhost:5432/klarheit"
BETTER_AUTH_SECRET="your_secret_here"

4. Database Initialization

bun run db:push
bun run db:generate

5. Development

Run the entire stack (Frontend + Backend):

bun run dev

πŸ› οΈ Development Scripts

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

🌐 Deployment

Optimized for Cloudflare via Alchemy:

cd apps/web
bun run deploy

πŸ‘€ Author

Udit GitHub: https://github.com/BuddyCodez


Klarheit: Because financial systems deserve absolute clarity.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages