TripSync

Multi-Tenant Finance SaaS for Travel Agencies

Next.jsTypeScriptNextAuthMongoDB
MongooseTailwind CSSVitest

/ Overview

A finance management platform for travel agencies with a real double-entry accounting core. Every agency gets its own chart of accounts; invoices for tickets, hotels, visas and transport, credit notes and vouchers all post balanced journal entries, and every balance and report is calculated from the journal.

/ Project Details

Name: TripSync

Type: Multi-Tenant Finance SaaS for Travel Agencies

Stack: Next.js, TypeScript, NextAuth, MongoDB, Mongoose, Tailwind CSS, Vitest

Role: Full-stack engineer: accounting engine, API and dashboard

Platforms: Web (agency dashboard + platform admin)

/ The challenge

Travel agencies were tracking ticket, hotel and visa sales, supplier payables and agent commissions in spreadsheets, where balances quietly drift apart and nobody can tell who changed what.

/ How I built it

01

Built a posting engine where every invoice, credit note, receipt and payment voucher writes a balanced journal entry inside a database transaction.

02

Gave each agency its own chart of accounts, with a ledger account created automatically for every customer, supplier, bank and cash account.

03

Calculated all balances and reports from the journal: trial balance, balance sheet, general ledger, cash and bank book, aging and profit and loss, plus a ledger health check.

04

Enforced tenant isolation at the data layer, kept financial records append-only (corrections through credit notes and voids), and logged every change in an audit trail.

05

Added TOTP two-factor sign-in, role-based access for owners, accountants, agents and viewers, and automated tests with Vitest on an in-memory MongoDB.

/ Results

What this build delivers. Key outcomes and capabilities shipped for TripSync.

/ Highlights

01

Double-entry ledger: no stored balances, nothing can drift

02

Trial balance, balance sheet, P&L, aging and general ledger

03

Strict tenant isolation with a full audit trail

04

Two-factor sign-in and a super-admin control panel

Surge
Tangle Social
Caterbox
PMS Automation
PHIR
PITCHERS
Opportunist
Habbits Food
Surge
Tangle Social
Caterbox
PMS Automation
PHIR
PITCHERS
Opportunist