← Back to desktop
‹ ReaportTK Cendekia ›
2026·

SIPANDAI — Dukcapil Stock Platform

Multi-tenant platform linking KTP/KIA printing to blank stock, with procurement forecasting.

Role Fullstack developer & requirements leadTeam Solo, interviewing office staff directly
Repository
SIPANDAI — Dukcapil Stock Platform — cover

Summary

Every KTP and KIA printed consumes blanks and printer materials. SIPANDAI makes that deduction atomic and automatic, gives each Dukcapil office full control of its own data, and gives the platform owner an audited, permissioned view across tenants to forecast procurement.

Metrics

Tenancy
multi
isolated per office
Ledger
immutable
balances are projections
Docs
23
blueprint → demo guide
Migrations
20
Drizzle · MySQL 8

The problem

  • !Blank KTP and KIA stock was tracked on paper. Nobody could say how many were left without walking to the cupboard.
  • !Printing is not uniform: different printer models and packages consume materials at different rates, and successful prints and rejects both consume stock.
  • !Procurement was raised after stock ran out, so production stopped waiting for blanks.
  • !The platform owner needs a cross-tenant view of stock risk, but tenant operational data must stay isolated and any cross-tenant access has to be disclosed and audited.

Approach

What I actually changed, and why.

  1. 01

    Interview first, build second

    I mapped the real workflow by talking to the people who do it, then wrote interview-to-feature traceability back — 15 KB of it — so the client could check nothing was invented and nothing was dropped.

  2. 02

    An immutable ledger, not a stock field

    Stock is derived from an append-only ledger; cached balances are projections. Printing, material usage, balance updates and the audit record are written in one transaction, so they cannot disagree.

  3. 03

    Consumption rules as configuration

    Printers, consumables, capacities and consumption ratios are data, not code. Rules are snapshotted onto each production transaction, so a later configuration change cannot rewrite history.

  4. 04

    Tenant identity from the session, never the request

    Tenant identity comes from the authenticated server session, and tenant_id sits on every tenant-owned record — with isolation covered by its own verification scripts rather than assumed.

  5. 05

    Verification scripts as first-class artefacts

    Around 25 named checks — inventory posting, stocktake reversal, production reversal, forecast, tenant onboarding, subdomain branding, backup and restore — each runnable on demand against a real database.

  6. 06

    Documentation the client can act on

    23 documents: blueprint, requirements, roles and permissions, inventory rules, data model, forecasting spec, security and commercial model, acceptance criteria, open decisions, a client demo guide and a 33 KB user guide.

  7. 07

    Keep it deployable where it actually runs

    The MVP avoids mandatory Redis, workers, WebSockets or Docker so it stays compatible with persistent Node.js shared hosting.

Outcome

  • ✓Stock levels are accurate at any moment rather than at the last stock-take.
  • ✓Procurement is driven by a forecast of when stock runs out, not by an empty cupboard.
  • ✓Requirements are traceable from interview transcript to screen and to a verification script.
  • ✓Unresolved requirements are tracked explicitly in an open-decisions document instead of being silently guessed.

Gallery

3 items

Production recording with automatic stock deduction
Procurement forecast from consumption history
Per-role user guide shipped with the system

Stack

Tags

Next case studyTK CendekiaA kindergarten's whole operation: admin web for staff, Flutter apps for parents and teachers.→

sipandai-dukcapil

Muhammad Rizky Qoirul Huda — Fullstack Software Engineer · Surabaya, Indonesia. muhammadrizkyqh@gmail.com

Prefer the full experience? Open the desktop or read the plain-text version.