SWON — Workforce Platform

A marketplace where organizers hire temporary workers and attendance decides pay.

Category
Workforce marketplace
Stack
React Native (Expo) · TypeScript · NestJS · Prisma · MariaDB · REST API
Status
Hosted pilot · pre-launch
Documentation
Complete case study
Job discovery — screenshot of the running application
Worker home: shifts near Tiruppur with date, pay and seats left.
01

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.

02

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.

03

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.
04

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.

05

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
06

System architecture

Mobile client

Expo Router app in React Native and TypeScript. React Query for server state, Zustand for local state, secure storage for tokens.

API

NestJS REST service: JWT authentication via jose, Zod request validation, request throttling, file uploads through multer.

Data

Prisma over MariaDB. Money is stored as integer paise in BigInt columns, never floats. Timestamps are UTC.

Contracts

A shared package defines payload schemas used by both the API and the app, keeping request shapes identical on both sides.

Admin

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.

07

Technology stack

React Native (Expo)TypeScriptNestJSPrismaMariaDBREST API

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.

08

Engineering decisions

01

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.

02

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.

03

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.

04

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.

05

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.

09

My contribution

Product definition & architecture

Mine. Role model, job and application lifecycle, attendance rules, API shape and the decision to keep payments disabled.

Implementation

AI-assisted. App and API code developed with AI assistance against written specifications, then reviewed and corrected module by module.

Validation

Mine. End-to-end smoke coverage of the main flows — last audit 227 checks, zero failures — plus manual testing on real devices.

Deployment & operations

Mine. Provisioned and operate the pilot server, database, API service and DNS.

10

Challenges

01

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.

02

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.

03

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.

04

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.

11

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.
12

Status & limitations

Hosted pilot · pre-launch Deployed for evaluation. Payments and payouts are implemented but switched off.
  • 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.
13

Additional screenshots

Contact

Let’s build something useful.

Have a business workflow to improve, a product idea to develop, or a software role to discuss? Get in touch.

BaseIndia · IST · UTC+05:30