To our knowledge, Project Sparkture is the only VIA project in Singapore that records its volunteers' VIA hours automatically.
Every hour is worked out from the session itself: the volunteer's check-in, the In-charge's Session Report and the volunteer's report on their student. No forms to fill in, and no spreadsheets to key in at the end of term.
The usual way
Volunteers fill in a VIA form after each activity, or at the end of term.
Someone collects the forms, chases the missing ones and checks them by hand.
Hours are keyed into a spreadsheet, and mistakes surface only when the report is due.
The Sparkture way
Volunteers check in at the session, and that is their record.
The system matches every check-in against the In-charge's report and the volunteer's own report.
Hours are confirmed automatically, every night, and corrected within a minute when something changes.
How it works
Check in at the session. The volunteer checks in on the Sparkture Portal with the code given out at that session, so a check-in can only come from someone who was there.
The In-charge reports the session. After each session, the zone's In-charge files a Session Report marking who was present. Check-ins are matched to it by date, zone and time.
The volunteer reports on their student. Each volunteer writes a report on what they covered, due by the end of that week. The Portal reads every report and checks it is genuine: a blank or copied report does not count.
Hours are confirmed automatically. When the check-in, the Session Report and the volunteer's report line up, the session's hours are confirmed, taken from the session's own timing. This runs every night, and again within a minute of any change.
Statements and sign-off. Every volunteer gets a monthly statement of their hours. Before each submission to schools, each confirms their figures with one click, and the bi-term VIA report is produced as a spreadsheet in the layout we used to fill in by hand.
When something's missing
Reminders. Volunteers are reminded to send their report before the deadline, including a Sunday 5 pm reminder for weekend sessions.
Held, not lost. Hours with something missing are held. The moment the missing piece arrives, even after the deadline, they are confirmed and the volunteer is told.
Checks that catch slips. Late check-ins, wrong session codes, and anyone marked present who never checked in are flagged for Programme Leadership, with a weekly summary.
Everything else. Hours for events and training are added in bulk or requested and approved, so a volunteer's whole record lives in one place.
Built with
React and TypeScript web app, also on iOS and Android
Supabase: PostgreSQL database and Edge Functions
Scheduled jobs (pg_cron) every minute, nightly and weekly
Is there an automatic VIA hours recording system in Singapore?
Yes: Project Sparkture records its volunteers' VIA hours automatically, from session check-ins, In-charges' Session Reports and volunteers' reports. To our knowledge, it is the only VIA project in Singapore that does.
How does Project Sparkture record VIA hours?
A volunteer checks in at the session with that session's code, the zone's In-charge reports who was present, and the volunteer reports on their student. When all three line up, the hours are confirmed automatically, every night and within a minute of any change.
Can our school or VIA project use the system?
We built it for Project Sparkture, but we are happy to talk to other VIA projects and schools about using it or building their own. Contact Zhao Kunbo, who built it, using the details on this page.
Do schools still get a VIA report?
Yes. Before each submission, every volunteer confirms their hours with one click, and the bi-term VIA report is produced as a spreadsheet, so schools receive their records as usual.
Technical details
The technical view of the same system: the parts it is made of, the records it keeps, the rules that turn a session into confirmed hours, and when each part runs. Security details, such as keys and access rules, are left out on purpose.
Architecture
Apps: Web app: React, TypeScript, Vite, Tailwind; iOS and Android apps from the same code (Capacitor); Hosted on Vercel
Backend: PostgreSQL database (Supabase); Serverless functions in TypeScript (Deno); Scheduled jobs inside the database (pg_cron), calling the functions
Services: Google Gemini on Vertex AI: reads each volunteer report PDF; Resend: every email the system sends
Records the system keeps
Check-in. One per volunteer per session: date, zone, start and end time, and the session code they entered. Checking in again corrects it in place, and the earlier version is kept in an archive.
Session Report. Filed by the zone's In-charge after each session: timing, who was present (by account), and the student head count. Filing again replaces it, and the earlier version is kept in an archive.
Volunteer report. The volunteer's report on a student for a session date, as a PDF. A resubmission replaces the earlier copy, which is kept in an archive.
Report check. What the AI read off the report (ticks and text), the problems found, and a level from 1 to 3.
Hours record. One per volunteer per session: hours, status, deadline, and the report it was matched to.
Flag. A note for Programme Leadership: a late check-in, a late report, a code that doesn't match the session, or someone marked present who never checked in.
An hours record, from start to finish
Pending. Created when a check-in matches the In-charge's Session Report. Waiting for the volunteer's report, due by Sunday 23:59 of that session's week.
Confirmed. Check-in, Session Report and a valid report all line up. Hours are counted.
Withheld. Past the deadline with something still missing. Re-checked on every run: when the missing piece arrives, the record is confirmed and flagged as late.
Removed. The Session Report says no lesson ran, a duplicate check-in, or a decision by Programme Leadership.
Exempt. Excused by Programme Leadership or the In-charge, so no report is needed.
Matching rules
A check-in counts for a session when the date and zone match, the times overlap, and the In-charge marked the volunteer present.
Overlapping check-ins by the same volunteer on one day count once: the earliest.
The hours are the length of the session.
Someone marked present who never checked in gets a held placeholder for that session. If they check in later, the check-in takes the placeholder over.
A check-in whose code doesn't match its session isn't confirmed automatically: it waits for Programme Leadership.
A report counts when it is for the same volunteer and session date. The earliest valid copy decides whether it was late.
A report the AI check finds invalid (blank, copied, or about the wrong student) doesn't count while the hours are still unreported.
Nothing is deleted: a record is held, confirmed or removed, and the people concerned are told by email.
When each part runs
Within a minute of a change: Any new or edited check-in, report or Session Report marks a queue; a job every minute confirms whatever that change completed and emails the volunteer.
Every 3 minutes: Unread volunteer reports are read by the AI check, and their levels worked out.
Nightly, 23:59: The full run: matches new check-ins, holds what is overdue, re-checks held records, raises flags and sends reminders.
Sundays, 5 pm: Report reminders for weekend sessions, before that night's deadline.
Wednesdays: A digest of the week's flags for Programme Leadership and the Discipline Committee.
1st of each month: Every volunteer's statement of their hours.
Before each submission: Each volunteer confirms a frozen snapshot of their hours with a one-click link (no login), and the bi-term report is generated as a spreadsheet.
How reports are checked
Each report PDF is read by Gemini, tick boxes included, into a structured reading: the student, the session date, subjects and topics, the boxes ticked, and the written observations.
The rules are code, not the AI: they turn the reading into problems, each quoting what is on the page, and a level. Level 1 is invalid (blank, fabricated, wrong student, reused), 1A an altered copy of the volunteer's own earlier report, 2 incomplete, 3 a minor slip.
Copies are found in code too: an identical file, or text that shares at least 80% of its three-word runs with an earlier report.
Only Level 1 and 1A affect hours, and only hours not yet reported to schools.
Principles
Re-runnable: running any job twice gives the same result.
Held, not lost: a missing piece delays hours, never deletes them.
People are told: volunteers, In-charges and Programme Leadership each get the emails that concern them.
Tested: over 550 automated tests cover the rules, the pages and the checks.