Skip to content

nomita1303/OffShift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation


Logo

OffShift: Zero-G Gig Economy Insurance

Coverage so light and flexible, it feels weightless.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

Hey! Welcome to the repo for OffShift. We're proudly building this platform for the DEVTrails 2026 Hackathon. 🏆

As 3rd-year CS students, we noticed a massive gap in how modern labor works versus how traditional insurance operates. We decided to build a platform that actually respects the gig worker.

The Problem

The "gig economy" (delivery riders, freelance drivers, task-based workers) is booming. However, insurance companies still treat these workers like 9-to-5 employees with strict, expensive, and heavy 24/7 policies.

If a delivery rider only works for 4 hours a day on weekends, why are they paying full-time premiums? Furthermore, the claims process involves mountains of PDF paperwork, manual verifications, and weeks of waiting—time these workers cannot afford to lose. Traditional insurance is fundamentally broken for the modern, fast-paced "gig" lifecycle.

The Solution: "Zero-G" Coverage

We built OffShift to provide "Zero-G" insurance—coverage so flexible, algorithmic, and lightweight that it feels completely frictionless. OffShift is an on-demand, mobile-first micro-insurance platform that adapts directly to the worker's shift using API-driven embedded insurance middleware.

Unique Features (What makes us stand out!)

Here is how OffShift completely redefines gig insurance for Users, Agents, and Companies:

1. The Power of "The Toggle" (User Experience)

At the core of the worker's app is a massive, visually satisfying toggle button.

  • Frictionless Activation: You flip it ON when your shift starts (e.g., accepting a Zomato order). You flip it OFF when you're done.
  • Micro-Pricing: You only pay for the exact hours/minutes you are exposed to risk. The premium is calculated dynamically in real-time on your screen.

2. "Sense" Telematics & Gamification (Behavioral Risk)

Why punish bad drivers when you can reward good ones?

  • Sensor Integration: We utilize the native mobile gyroscope and GPS to track speed and breaking habits safely in the background.
  • Unlockable Rewards: We gamify the experience. Maintain a "Safe Driver" streak for 15 hours and automatically unlock a 20% discount coupon applied directly to your future micro-premiums.

3. Instant Parametric UPI Claims (Smart Contracts)

The old way of filing a claim using a 40-page PDF is dead.

  • Smart Triggers: If a telematics algorithm detects a severe impact and is mutually backed by a hospital API or gig platform (like an SOS button press), a "Parametric Smart Contract" is triggered.
  • Instant Payout: The pre-determined claim amount is blasted directly into the gig worker's pre-registered UPI Wallet via instant API transfer, skipping human adjusters entirely for micro-claims.

4. API-First Fleet Middleware (Company/Agent Dashboard)

We aren't just a consumer app; we are an infrastructure play.

  • Embedded Insurance: Using our Node.js microservices, massive gig platforms like Urban Company or Uber can plug our "Toggle" API directly into their own partner apps.
  • Broker Command Center: Agents get access to a powerful data-dense dashboard to upload CSVs, bulk auto-KYC fleets, and monitor active worker heatmaps in real-time.

(back to top)

Built With (Tech Stack)

We carefully selected our tech stack to prioritize rapid prototyping, blazing-fast performance, and a stunning "dark mode" aesthetic suitable for a hackathon timeline.

Frontend Ecosystem

  • React - The industry standard. We chose React for its component-based architecture allowing us to perfectly isolate our complex "Toggle" logic.
  • Vite - Next.js is great, but Vite provides the ultimate lightning-fast Hot Module Replacement (HMR) for incredibly fast SPA rendering during hackathons.
  • TailwindCSS - We heavily rely on Tailwind for rapid styling, focusing heavily on glassmorphism, neo-brutalism, and ultra-high contrast dark modes without writing custom CSS files.

Backend Ecosystem

  • Node.js - Our primary runtime for handling real-time API requests and writing our parametric claim webhooks.
  • Express.js - Lightweight and unopinionated framework to scaffold our RESTful architecture.

Database & Auth

  • Supabase - Supabase (PostgreSQL) is the absolute MVP of our stack. It gives us out-of-the-box secure authentication, row-level security policies (RLS), and real-time database subscriptions (vital for syncing the mobile App toggle with the Agent Dashboard dashboard instantly).

(back to top)

Getting Started

To get a local copy up and running, follow these simple example steps.

Prerequisites

Make sure you have Node.js and npm installed on your machine.

  • npm
    npm install npm@latest -g

Installation

  1. Get your Supabase API Keys at https://supabase.com
  2. Clone the repo
    git clone https://github.com/SHIVIKA330/OffShift.git
  3. Install NPM packages
    cd offshift
    npm install
  4. Enter your API in .env
    VITE_SUPABASE_URL='ENTER YOUR SUPABASE URL'
    VITE_SUPABASE_ANON_KEY='ENTER YOUR SUPABASE ANON KEY'

(back to top)

Usage

Right now, we are wrapping up Phase 1: Foundation. We've mapped out the DB schemas, our API routes, and got the repository skeleton ready.

Database Schema (Supabase)

  • users: The gig workers (id, name, upi_id, driving_score)
  • policies: The available bundles (id, name, hourly_rate)
  • active_sessions: The "Toggle" states (id, user_id, start_time, end_time, total_premium)
  • claims: Handled via smart-contract/admin override.

(back to top)

Roadmap

  • Phase 1: Foundation (Architecture & DB Schemas)
  • Phase 2: Core UX (The Mobile Toggle & Agent UI)
  • Phase 3: Logic (Telematics integration & Micro-premiums)
  • Phase 4: Innovation (Smart Claims & UPI Integrations)
  • Phase 5: Polish & Pitch Preparation

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Top contributors:

Shivika
Shivika
Tejika
Tejika
Nomita
Nomita
Yuvika
Yuvika
Love
Love

(back to top)

Contact

OffShift Team - DEVTrails 2026 - shivikaj47@gmail.com

Project Link: https://github.com/SHIVIKA330/OffShift

(back to top)

About

OffShift: Parametric insurance for gig workers. Uses Downdetector & live rider pings to verify food delivery app outages and instantly pays via UPI. No claim forms required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 100.0%