Gerbang Dinas

SaaS product, 2026

A mobile-first tryout platform that copies the real exam screen: server-controlled timer, flag-for-review, autosave, and scores per subtest against the passing grade.

  • Sized for 1,000 concurrent test-takers
  • Answer keys never reach the browser
  • First-year infra budget under Rp1 juta
Gerbang Dinas landing page: “Coba tryout SKD gratis, di layar seperti hari-H” above a participant card to start a free CPNS or Kedinasan tryout.

The problem

Applicants practise on PDF question banks or apps that look nothing like the real CAT screen, usually on a cheap phone with patchy signal. A lost answer or a timer that resets on reload ruins the whole session.

What I built

  • Three apps over one database: a static Astro landing page on Cloudflare Pages, a SvelteKit tryout app, a SvelteKit admin, and Supabase with row-level security.
  • The timer runs on the server and every answer autosaves, so a dropped connection or a refresh never costs time or work.
  • Grading happens server-side with a scorer per question type: right or wrong for TWK and TIU, 1 to 5 per option for TKP, complex multiple choice for TKA.
  • Exam formats live in a registry, because question counts, durations and passing grades change with each year’s regulation.
  • AI drafts questions and explanations, but nothing is published until a person reviews it.
  • Midtrans checkout (QRIS, virtual account, e-wallet) plus teacher classes that only admit whitelisted emails.

Stack

  • Astro
  • SvelteKit
  • Supabase
  • PostgreSQL
  • Midtrans
  • Cloudflare

More work