Skip to content
W

Workershub

A trustworthy platform connecting informal workers

Created on 9th November 2025

•

W

Workershub

A trustworthy platform connecting informal workers

The problem Workershub solves

Key Challenges in the Unorganized Labor Sector

  • Unorganized labor faces severe under-digitalization, limiting access beyond word-of-mouth.
  • Lack of visibility and scalable reputation platforms restricts income growth.
  • Customers struggle to find reliable local services due to absence of trust signals like ratings and transparent payments.
  • No digital marketplace results in inefficiencies and widespread mistrust on both sides.
  • This disconnect handicaps the sector’s economic potential and reduces client satisfaction.

Objectives / Proposed Solutions

  1. Connect small-scale workers to a wider digital audience, improving job access and conditions.
  2. Enable competitive job bidding to empower workers with choice and fair pricing.
  3. Drive trust through transparent payment processes and reliable client feedback.
  4. Foster a review-driven marketplace that encourages accountability and quality service.
  5. Promote fair competition and economic inclusion in traditionally unregulated labor sectors.

Challenges we ran into

🧩 Challenges We Faced & How We Tackled Them


⚙️ 1. Authentication Issues

🧠 Problem:
While implementing user authentication, we faced issues integrating Supabase Auth with Flutter.
Since we needed role-based access (Client and Worker) within a single app, managing separate user roles under one authentication flow became complex.
Additionally, email verification and session persistence between app restarts caused unexpected logouts and token expiration issues.

💡 Solution:
We restructured the authentication system by:

  • Using Supabase Email Auth for secure login/signup.
  • Adding a role field (“client” / “worker”) in the user profile table instead of maintaining two separate auth modules.
  • Implementing local session persistence using shared_preferences for a smooth user experience.
  • Deferring OTP/phone-based authentication to a later phase to keep the MVP focused and stable.

✅ Outcome:
Users can now sign up, log in, and stay authenticated seamlessly, with distinct role-based access maintained for both clients and workers.


💬 2. Real-Time Chat (Socket Integration)

🧠 Problem:
Integrating real-time chat using Socket.io was challenging because:

  • Flutter sockets disconnected when the app went into the background.
  • Message delivery failed during temporary network drops.
  • We needed a secure mechanism to ensure that only approved client-worker pairs could initiate chat sessions.

💡 Solution:
We resolved these issues by:

  • Setting up a custom Socket.io backend (Node.js + Express) to handle real-time events.
  • Using JWT-based socket authentication to ensure only verified users could connect.
  • Storing chat messages in Supabase (PostgreSQL) for message persistence even if the socket disconnects.
  • Implementing a chat permission layer, where chat is enabled only after the client approves the worker’s bid.
  • Adding reconnect and retry logic in the Flutter socket client to handle disconnections gracefully.

✅ Outcome:
Stable, real-time, and secure communication between clients and workers — with message history preserved and robust reconnection handling.


💪 These challenges helped us design a more scalable, secure, and user-friendly architecture for WorkersHub, ensuring smooth communication and trust between both roles.

Discussion

Builders also viewed

See more projects on Devfolio