SWON — Workforce Platform
A marketplace where organizers hire temporary workers and attendance decides pay.
Overview
SWON is a workforce marketplace for event and temporary work, built mobile-first. Organizers post jobs; workers discover them, apply and get hired; attendance is recorded on site; and the operational layer around a shift — verification, notifications, admin review — runs through the same system. It was developed internally under the name WorkBridge: one product, one codebase.
Business context
Temporary staffing runs on phone calls and chat groups. Organizers need a known number of reliable people at a specific place at a specific time. Workers need to find work they can actually reach, and to be paid for showing up.
A marketplace has to serve both sides without collapsing into a job board: identity and verification, clear job terms, applicant selection, proof of attendance, and a record of what is owed.
The constraint that shaped the product is the device. Many workers carry a low-end Android phone on an unreliable connection, so nothing important can depend on a fast network or a powerful browser.
Problem statement
- Job discovery has to work on a cheap phone over an unreliable connection.
- Organizers need to see who applied and confirm a shortlist quickly, often the same day.
- Attendance at the venue is the basis for payment, so check-in has to be defensible.
- Money has to be recorded precisely — integer minor units, append-only ledger — even while payment rails stay off.
- Operations need a single place to review accounts, jobs and attendance without reading the database.
Solution overview
An Expo (React Native) app for workers and organizers, a NestJS REST API over Prisma and MariaDB, and a web admin console on the same API.
Request and response contracts are defined once in a shared Zod package consumed by both the app and the API, so the two cannot drift apart without a type error at build time.
Finance is modelled fully — ledger entries, money split rules, payment and payout interfaces — and the execution path is switched off. The product can be reviewed honestly without implying that real transfers happen.
Core modules & workflows
Accounts & identity
- Phone-based signup with OTP verification
- Role selection: worker or organizer
- Profile and skill records
- Session and token handling
Worker side
- Job discovery with distance and date filters
- Application submission and status
- Assigned work and reporting details
- Earnings view
Organizer side
- Job posting with headcount, pay and timing
- Applicant review and hiring
- Attendance monitoring per job
- Job lifecycle management
Operations
- On-site attendance check-in with location capture
- Trip and ETA tracking
- Notifications
- Admin console for review and moderation
Finance — implemented, switched off
- Ledger and earning entries
- Money split rules
- Payment and payout interfaces
- Disabled pending provider integration and approval
System architecture
Expo Router app in React Native and TypeScript. React Query for server state, Zustand for local state, secure storage for tokens.
NestJS REST service: JWT authentication via jose, Zod request validation, request throttling, file uploads through multer.
Prisma over MariaDB. Money is stored as integer paise in BigInt columns, never floats. Timestamps are UTC.
A shared package defines payload schemas used by both the API and the app, keeping request shapes identical on both sides.
A separate web console authenticated against the same API for operational oversight.
Deployment: a single VPS running the API service behind nginx. This is a pilot environment, not a scaled production stack.
Technology stack
Expo and React Native on the client, NestJS with Prisma on the server, MariaDB underneath, and a shared Zod contract package that keeps both ends in step.
Engineering decisions
One contract package, two clients
Request and response shapes are defined once in Zod and consumed by the API and the mobile app. Shape drift becomes a build error instead of a 400 at runtime.
Money as integers, movement as ledger
Amounts are paise. Balances are derived from ledger entries rather than a mutable column, so the finance model is auditable before any payment provider is connected.
Feature-flag the money movement
Finance ships with the product and the execution path is off. It keeps the implementation honest and the claims accurate until provider integration and approval are complete.
Explicit state machines
Posted, filled, in progress, completed, cancelled are transitions with allowed next steps, not free-text status strings that any screen can set.
Design for the cheapest phone in the room
Large touch targets, plain scrollable lists over heavy animation, and cached responses so a dropped connection does not blank the screen.
My contribution
Mine. Role model, job and application lifecycle, attendance rules, API shape and the decision to keep payments disabled.
AI-assisted. App and API code developed with AI assistance against written specifications, then reviewed and corrected module by module.
Mine. End-to-end smoke coverage of the main flows — last audit 227 checks, zero failures — plus manual testing on real devices.
Mine. Provisioned and operate the pilot server, database, API service and DNS.
Challenges
Attendance that can be defended
Check-in captures location and time, but the honest answer is that GPS can be spoofed. The design keeps a human confirmation step on the organizer side rather than pretending the location is proof.
ETA and routing
Live ETA depends on an external routing API with rate limits and gaps. The app falls back to a timetable so the screen degrades instead of failing.
Money precision
Splits, rounding and partial amounts are the classic source of silent drift. Storing paise as integers and deriving balances from a ledger removed a whole category of bug before payments were ever switched on.
Scope discipline on a pre-launch product
It is tempting to ship a payment button and call the platform launched. Keeping the finance surface visible but inert was a product decision, not a technical limitation.
Verified results
- Pilot deployment is live for evaluation. It is not a public launch.
- The end-to-end smoke suite last ran 227 checks with zero failures. It is a developer-run script, not a CI pipeline.
- Attendance, hiring, job lifecycle and admin review work end to end against the pilot database.
- No user, revenue or growth figures are published, because the pilot has not produced meaningful ones.
Status & limitations
- Payments and payouts are disabled pending provider integration and approval. No money moves through the platform.
- SMS delivery uses a development provider, so OTP is not production-grade yet.
- An audit log table exists but the application does not write to it yet.
- A timetable fixture stands in for live transit data in the ETA demo.
- Single VPS with no swap and no automated off-site backup beyond scheduled dumps.
- No CI pipeline. Tests run locally before each deployment.
Additional screenshots