← Warru — software engineering studio
Case study — GovTech SaaS · 2026

DAS Express: a day of declaration work in ~20 minutes.

Every January, Algerian employers must file the DAS — the annual salary declaration required by CNAS. For small businesses without payroll software, that means a full day fighting an opaque file format on a portal that rejects anything imperfect. DAS Express turns it into a guided import-and-download flow. das.warru.dev

The problem

The CNAS tele-declaration portal expects two plain-text files —20E*.TXTand20S*.TXT— in a strict, poorly documented layout. One wrong byte and the upload bounces. The target users are TPE/PME with 5–50 employees: gérants, improvised HR, external accountants — people tracking payroll in Excel, not in a payroll system. Every year, the same deadline panic around January 31.

What we built

  • Excel-first import. Upload the spreadsheet you already have. A hierarchical matching engine reconciles employees — social security number first, then name + birthdate, then unique name, with a fuzzy-match fallback — instead of forcing re-entry.
  • Guided 5-step wizard. Company details, employees, salaries, review, download — with real-time validation so errors surface before the portal ever sees them. Drafts persist locally (IndexedDB) so a browser crash doesn't eat the work.
  • Byte-exact output. The generator doesn't approximate the CNAS format — it is verified byte-for-byte against a corpus of real accepted declaration files, locked in by golden-file regression tests.
  • One engine, two targets. The same codebase ships as the web SaaS and as DAS Desktop — an offline-first Tauri app for accountants whose client data never leaves the machine.

Under the hood

Next.js 15 and React 19 on the front, Prisma over Postgres on the back, XLSX parsing client-side, and a test suite of 100+ automated tests — including byte-for-byte goldens and simulations against real declaration files. The hard part was never the UI; it was reverse-engineering a format that tolerates zero approximation and keeping it correct as the corpus grew.

Next.jsReactTypeScriptPrismaPostgresTauriVitestIndexedDB

Outcome

20 min
instead of a full day
Byte-exact
output vs official format
1 codebase
web SaaS + offline desktop