ByFlame
Monthly financial tracking of sales, commissions, salaries and sites.
- Type
- Finance · Web system
- Role
- Idea, data modelling and development
- Stack
- Next.jsSupabasePostgreSQLTailwindPlaywrightVercel

Problem
Earnings from two companies and freelance work were scattered across spreadsheets, with no single dashboard or per-company access.
Solution
A role-based system: each company sees only its own results and the consolidated dashboard stays with the admin.
What I built
- Role-based login with Supabase Auth: admin, user and a read-only access for each company
- Access rules inside the database (Row Level Security): each company sees only its own numbers
- History imported from spreadsheets into PostgreSQL, with commissions calculated by database triggers
- Personal finance, goals, invoices in Storage and CSV bank statement import
- Unit, database and end-to-end tests (Playwright), running on GitHub Actions
Challenges
Enforcing privacy in the database, not just in the UI: the RLS rules are tested on a local Postgres to prove that no company or user can see anyone else’s data.
Result
In production since October 2026 and used every month to close each company’s numbers.
Screens





Screenshots of the system in use, with values and names replaced by fictitious data.