Interactive Financial Literacy & Fraud Awareness Platform
Issues
SafeFin is a modern full-stack platform designed to make financial education and fraud awareness interactive and accessible.
Built with cutting-edge technologies, it seamlessly integrates web, mobile, and serverless infrastructure for scalability and performance.
- π± Cross-platform apps (Web + Mobile) with shared logic
- π Secure authentication with role-based access and phone number OTP
- π Interactive quizzes, lessons, and progress tracking
- β‘ Serverless backend with edge database for global scale
- π¨ Beautiful, accessible UI with modern design systems
- π Built-in analytics and monitoring for continuous improvement
- React β Admin dashboard
- React Native + Expo β Mobile app
- Radix UI + shadcn/ui + Tailwind CSS β Web UI components
- Tamagui β Mobile UI system
- Hono β Web framework on Cloudflare Workers
- Drizzle ORM β Type-safe queries
- Turso (LibSQL) β Edge database
- Better Auth β Authentication with plugins (OTP, Expo, Admin roles, Multi-session)
- Zod β Validation
- TanStack Query β Server state + caching
- Zustand β Client state (Admin & Mobile)
- TypeScript β End-to-end type safety
- Bun β Package manager
- TurboRepo β Monorepo orchestration
- Biome β Linting + formatting
- Syncpack β Dependency management
- Vitest β Backend & web testing
- Jest β React Native testing
- Testing Library β UI testing
- Wrangler β Deploy backend to Cloudflare Workers
- Cloudflare Pages β Admin dashboard hosting
- Expo EAS Build β Mobile app builds
- Monorepo with Turbo for modularity
- Serverless-first backend with edge deployment
- Context Provider & Custom Hooks for shared state
- Repository/Service Layer for clean data access
- Compound Components for flexible UI APIs
- Middleware Chain in Hono for logging, CORS, caching, and etags
- HTTP caching with
Cache-Control+ETag - Client-side caching with TanStack Query
- React Error Boundaries for graceful failure
- Secure storage with Expo Secure Store
- CORS restricted to trusted origins
- PostHog for product analytics
- React Native Logs for mobile debugging
- Tiptap β Rich text editing
- Sonner β Toast notifications
- Skeleton loaders β Smooth loading experience
- i18n β Internationalization with React i18next
This project showcases:
- A modern full-stack architecture (React, React Native, Hono, Turso)
- Strong focus on developer experience with TypeScript, Bun, and Turbo
- Scalable, serverless-first design for global reach
- Industry-standard patterns & best practices
- Perfect balance of DX, UX, and security
.
βββ apps
βΒ Β βββ admin # SafeFin's Admin Dashboard
βΒ Β βββ app # SafeFin's Application
βΒ Β βββ server # SafeFin's Server
βββ packages
βββ auth
βββ db
βββ ui3 applications, 3 packages
graph TD
%% Define a short ID for each package (e.g., db, auth, ui)
db["@safe-fin/db"]
auth["@safe-fin/auth"]
ui["@safe-fin/ui"]
server["@safe-fin/server"]
admin["@safe-fin/admin"]
app["@safe-fin/app"]
root["@safe-fin"]
%% Define dependencies using the short IDs
db --> auth
db --> server
auth --> server
auth --> admin
auth --> app
ui --> admin
ui --> app
server --> root
admin --> root
app --> root
- Automatic Lesson, creation
- Lesson Recommendation
- Add Gamification, challange-based learning
- Add Regional Language Support for financial literacy.
- Push Notifications for fraud alerts.
- Expand calculator modules for advanced financial planning.