Skip to content

About

Connecting Tier-2 and Tier-3 students with MSME opportunities through verified skills, gigs, networking, and TrustScore. ๐Ÿ’ก

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

62 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SkillBridge ๐Ÿš€

Merit-first student talent discovery for local businesses.

SkillBridge connects students from Tier-2 and Tier-3 colleges with MSMEs through reviewer-verified skills, practical assignments, auditable TrustScore, and real project delivery. Hiring decisions are based on demonstrated work rather than college brand or an inflated resume.

๐Ÿ”— Live Demo

https://skillbridge.debarghya.org ๐Ÿ‘ˆ

๐Ÿ’ก Problem and Approach

Capable students often lack access to credible work, while local businesses struggle to find affordable, evidence-backed talent. SkillBridge closes both gaps with one end-to-end workflow:

  1. Platform admins publish versioned skill standards, upgrade criteria, renewal periods, and practice tasks.
  2. Students add a catalog skill or keep a profile-only self-declared skill and request catalog support.
  3. Authorized review staff inside the Admin workspace assess submitted evidence against the standard captured at submission.
  4. Companies discover candidates through active verified skills, TrustScore, and practical interview tasks.
  5. Each selected student continues in an independent GIG Work item grouped under the source GIG in Project Workspace.
  6. Companies approve delivery and record the payment made outside SkillBridge.

๐Ÿ›ก๏ธ Core Guarantees

  • Unreviewed profile content does not award TrustScore.
  • Self-declared skills remain profile-only until an admin maps them to a published catalog standard.
  • Approval from the Admin review queue is required before a skill becomes verified or upgraded.
  • Only active verified skills count in talent discovery, GIG matching, and Network skill summaries; public profiles label non-archived unverified skills.
  • Duplicate assessment, payment, and TrustScore events are guarded at the database and service layers.
  • SkillBridge records externally completed payments; it does not hold funds, provide escrow, or offer withdrawals.

๐Ÿ—๏ธ Architecture

1. ๐Ÿงฑ 3-Tier Client-Server Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                         1. PRESENTATION TIER                             โ”‚
โ”‚                         React + Vite Client                              โ”‚
โ”‚                                                                          โ”‚
โ”‚  Public Experience        Student Workspace         Company Workspace    โ”‚
โ”‚  - Landing and login      - Profile and portfolio  - Business profile    โ”‚
โ”‚  - Public profiles        - GIG Center             - GIG Management      โ”‚
โ”‚                           - Skill Hub and tasks     - Talent Search      โ”‚
โ”‚                           - TrustScore             - Project Workspace   โ”‚
โ”‚                           - Network and Team-Up    - External Payments   โ”‚
โ”‚                           - Earnings                                     โ”‚
โ”‚                                                                          โ”‚
โ”‚  Admin Workspace: catalog, requests, blind reviews and review team       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                     โ”‚
                                     โ”‚ HTTPS / JSON API
                                     โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                          2. APPLICATION TIER                             โ”‚
โ”‚                       Node.js Native HTTP Server                         โ”‚
โ”‚                                                                          โ”‚
โ”‚  Request Pipeline                         Domain Services                โ”‚
โ”‚  - Routing and JSON parsing               - Student and Company          โ”‚
โ”‚  - Session authentication                 - GIG and Interview Tasks      โ”‚
โ”‚  - Student, Company and Admin workspaces  - Skill Catalog and Requests   โ”‚
โ”‚  - CORS and rate limiting                 - Blind Reviewer Queue         โ”‚
โ”‚  - Payload and ownership validation       - TrustScore Policy Engine     โ”‚
โ”‚  - Conflict and error handling            - Network and Team-Up          โ”‚
โ”‚                                           - Workspace and Payments       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                     โ”‚
                                     โ”‚ Mongoose ODM
                                     โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                             3. DATA TIER                                 โ”‚
โ”‚                            MongoDB Database                              โ”‚
โ”‚                                                                          โ”‚
โ”‚  Core Accounts            Evidence and Work        Community and Metrics โ”‚
โ”‚  - Students               - SkillAssessments       - NetworkConnections  โ”‚
โ”‚  - Companies              - TaskSubmissions        - TeamPosts           โ”‚
โ”‚  - Admin operations users - Review history         - SiteMetrics         โ”‚
โ”‚  - SkillCatalogs          - SkillRequests                                โ”‚
โ”‚  - Role sessions          - External payment data                        โ”‚
โ”‚                                                                          โ”‚
โ”‚  Embedded account state: profiles, Skill Hub activity, TrustScore ledger,โ”‚
โ”‚  GIG state, company task library and project workspace                   โ”‚
โ”‚  Earnings: approved/unpaid and completed/paid TaskSubmissions             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โšก Quick flow: React interface โ†’ secured Node.js API โ†’ Mongoose models โ†’ MongoDB persistence.

2. ๐Ÿ” Full End-to-End Platform Lifecycle State Machine (Production, Secure & Scalable)

To provide both an immediate executive overview and a deep architectural dive, the complete platform lifecycle is structured into two complementary models:

  1. Executive 5-Stage Macro Pipeline: A readable top-to-bottom milestone chain showing how an opportunity advances from onboarding to external settlement.
  2. Comprehensive Multi-Role State Machine: An enterprise state diagram mapping all interactions, revision loops, and atomic ledger commits across Students, Companies, and Platform Admins / Reviewers.

1. Executive 5-Stage Macro Pipeline
%%{init: {"flowchart": {"nodeSpacing": 35, "rankSpacing": 45}}}%%
flowchart LR
    subgraph Stage1["1. Cryptographic Identity"]
        direction TB
        C_ID["Company: GSTIN or Udyam"]
        S_ID["Student: Aadhaar or DigiLocker"]
        HASH["Salted HMAC-SHA256 Fingerprinting"]
        C_ID --> HASH
        S_ID --> HASH
    end

    subgraph Stage2["2. Blind Skill Verification"]
        direction TB
        SNAP["Criteria Snapshot Captured"]
        QUEUE["Blind Review Queue (PII Stripped)"]
        RUBRIC{"Rubric >= 70?"}
        VERIFIED["Verified Badge + TrustScore Credit"]
        SNAP --> QUEUE --> RUBRIC -->|Pass| VERIFIED
    end

    subgraph Stage3["3. Practical GIG Screening"]
        direction TB
        GIG["Company GIG Listing Published"]
        TASK["Practical Screening Task Assigned"]
        EVAL{"Company Task Review"}
        HIRED["Candidate Selected for GIG"]
        GIG --> TASK --> EVAL -->|Select| HIRED
    end

    subgraph Stage4["4. Workspace & Milestone Delivery"]
        direction TB
        WORK["Independent GIG Work Item"]
        BRIEF["Kickoff Brief & Milestone Tracking"]
        APP{"Deliverable Approved?"}
        WORK --> BRIEF --> APP
    end

    subgraph Stage5["5. Payment Settlement & Student Earnings"]
        direction TB
        PAY["Company Pays Outside Platform (UPI/NEFT)"]
        REF["Unique Payment Reference Logged"]
        ACID["Multi-Document ACID Transaction"]
        EARN["Student Earnings Credited (Paid & Completed)"]
        DONE["+150 TrustScore & Audit Ledger Recorded"]
        PAY --> REF --> ACID --> EARN --> DONE
    end

    Stage1 --> Stage2 --> Stage3 --> Stage4 --> Stage5
Loading

2. Comprehensive Multi-Role State Machine (Deep Dive)

This diagram groups the platform's related lifecycles by role. The groups run independently: publishing a skill standard does not automatically create a review, and a verified student does not have to enter a GIG or Team-Up workflow. Cross-domain arrows show the specific hand-offs between them.

States in the Skill Assessment and GIG Work groups correspond to persisted workflow statuses. A reviewer claim is deliberately shown as a temporary queue lease rather than an assessment status: the stored assessment remains pending until a reviewer decides it. The TrustScore group shows calculation from eligible recorded events; it is not a separate user journey or a cryptographically immutable ledger.

stateDiagram-v2
    direction TB

    state "Catalog Governance and Blind Review" as ReviewDomain {
        [*] --> CatalogDraft: Admin creates or edits a standard
        CatalogDraft --> CatalogPublished: Publish versioned standard
        CatalogPublished --> CatalogDraft: Update creates next version
        CatalogPublished --> CatalogArchived: Archive standard
        CatalogArchived --> CatalogPublished: Restore and publish

        [*] --> ReviewerAccount: Admin provisions reviewer account
        ReviewerAccount --> ReviewerActive: Activate reviewer
        ReviewerActive --> ReviewerInactive: Deactivate reviewer

        [*] --> AssessmentPending: Student submits evidence
        AssessmentPending --> ReviewClaimed: Reviewer claims temporary lease
        ReviewClaimed --> AssessmentPending: Lease expires or reviewer releases claim
        ReviewClaimed --> RubricScored: Five-part rubric and feedback
        RubricScored --> AssessmentRevision: Request revision
        RubricScored --> AssessmentApproved: Approve at required threshold
        RubricScored --> AssessmentRejected: Reject with feedback
        AssessmentRevision --> AssessmentPending: Student revises and resubmits
    }

    state "Student Skill State" as SkillDomain {
        [*] --> ProfileOnlySkill: Add self-declared skill
        ProfileOnlySkill --> SkillRequestPending: Request catalog support
        SkillRequestPending --> CatalogMapped: Admin approves or maps request
        SkillRequestPending --> ProfileOnlySkill: Request rejected
        CatalogMapped --> EligibleForAssessment
        EligibleForAssessment --> AssessmentPending: Verify, renew, upgrade, practice or challenge
        AssessmentApproved --> ActiveVerified: Verify/renew/upgrade approval
        AssessmentApproved --> PracticeRecorded: Approved retention or challenge
        PracticeRecorded --> ActiveVerified
        ActiveVerified --> AssessmentPending: Upgrade, renewal, practice or challenge submission
        ActiveVerified --> SkillArchived: Student archives skill
        SkillArchived --> ActiveVerified: Restore while verification remains valid
        ActiveVerified --> SkillExpired: Validity period ends
        SkillExpired --> AssessmentPending: Submit renewal evidence
    }

    state "GIG Interview and Work" as GigDomain {
        [*] --> OpportunityOpen: Company publishes GIG or sends direct invite
        OpportunityOpen --> InterviewSubmitted: Student accepts and submits task
        InterviewSubmitted --> InterviewReviewed: Company reviews interview
        InterviewReviewed --> InterviewRevision: Revision requested with feedback
        InterviewRevision --> InterviewSubmitted: Student resubmits interview task
        InterviewReviewed --> NotSelected: Reject applicant
        InterviewReviewed --> Selected: Select student
        Selected --> WorkStarted: Company sends required work brief
        WorkStarted --> DeliverySubmitted: Student submits final delivery
        DeliverySubmitted --> DeliveryRevision: Delivery revision requested with feedback
        DeliveryRevision --> DeliverySubmitted: Student resubmits delivery
        DeliverySubmitted --> WorkApproved: Company approves delivery
        WorkApproved --> ExternalPaymentReported: Company records already-made external payment
        ExternalPaymentReported --> WorkCompleted: Submission becomes completed
    }

    state "Network and Team-Up" as NetworkDomain {
        [*] --> ConnectionPending: Student sends connection request
        ConnectionPending --> ConnectionAccepted: Recipient accepts
        ConnectionPending --> ConnectionDeclined: Recipient declines
        ConnectionPending --> ConnectionWithdrawn: Sender cancels
        ConnectionAccepted --> ConnectionRemoved: Either student removes connection

        [*] --> TeamPostOpen: Owner creates open Team-Up
        TeamPostOpen --> TeamRequestPending: Student applies or owner invites
        TeamRequestPending --> TeamMembershipAccepted: Recipient or owner accepts
        TeamRequestPending --> TeamRequestDeclined: Recipient or owner declines
        TeamRequestPending --> TeamRequestWithdrawn: Applicant withdraws
        TeamMembershipAccepted --> TeamMembershipLeft: Member leaves; accepted history retained
        TeamPostOpen --> TeamPostClosed: Owner closes or capacity is reached
        TeamPostClosed --> TeamPostOpen: Owner reopens when capacity permits
    }

    state "TrustScore Event and Calculation" as TrustDomain {
        [*] --> EligibleEvent: Reviewed or persisted eligible event
        EligibleEvent --> DeduplicatedLedger: Record event with stable reference
        DeduplicatedLedger --> ScoreCalculated: Apply pool caps, weights, gates and active penalties
        ScoreCalculated --> CurrentScore: Store materialized score
    }

    CatalogPublished --> EligibleForAssessment: Standard available
    AssessmentApproved --> EligibleEvent: Authoritative review outcome
    AssessmentRejected --> EligibleEvent: Only when rubric total is below 40
    SkillExpired --> EligibleEvent: One expiry penalty per cycle
    WorkCompleted --> EligibleEvent: Completed GIG event after external payment report
    ConnectionAccepted --> EligibleEvent: Only at persisted connection milestone
    TeamMembershipAccepted --> EligibleEvent: Only at persisted Team-Up milestone
    WorkCompleted --> CurrentScore: Earnings and completed-work views refresh
Loading

Implementation notes: An approval, relevant review credit/penalty, and skill-state update are committed together through a MongoDB transaction when transaction support is available. Completed GIG credit is created after the company reports a unique external-payment reference; SkillBridge does not process or verify that payment. A ledger event's base points may differ from the visible score change after category caps, evidence gates, weighting, and active penalties are applied.

2.1 TrustScore Merit Ledger Criteria & Anti-Gaming Matrix ($\pm$ Points)

The TrustScore engine implements an auditable, event-driven ledger governed by strict mathematical bounds, category pool caps, and hard evidence gates. It guarantees that reputation cannot be gamed through unreviewed activity, rapid bot clicks, or inflated self-claims:

$$\text{TrustScore} = \max\left(0, \left\lfloor \min\left(\text{Ceiling}_{\text{gate}}, \text{WeightedPoints}(\text{BasePoints})\right) + \sum \text{Penalties}_{90\text{d}} \right\rfloor\right)$$

where diminishing marginal returns compress raw base points across 4 tiers: $$\text{WeightedPoints}(B) = \min(500, B) + \min(500, \max(0, B - 500)) \times 0.4 + \min(1000, \max(0, B - 1000)) \times 0.2 + \min(1000, \max(0, B - 2000)) \times 0.1$$

Event Key Domain Category Points ($\pm$) Pool Cap Invariant / Validation Rule Anti-Gaming & Concurrency Guarantee
gig_completed GIG Delivery +150 1,500 pts Deliverable approved by company + external payment reference logged. Compound unique index { companyId, externalPayment.reference } prevents duplicate settlement claims.
skill_level_upgraded Skill Merit +100 1,500 pts Human reviewer approves higher stage (Intermediate / Pro / Pro Mastery) with rubric $\ge 70%$. Frozen criteriaSnapshot prevents retroactive criteria alteration; claimed via 240m TTL lease.
daily_challenge_solved Daily Practice +80 500 pts Successfully solves daily technical challenge within active calendar day. Deduplicated by day key (YYYY-MM-DD); future or backdated submissions rejected.
skill_verified Skill Merit +60 1,500 pts Initial evidence verified by authorized reviewer ($\ge 70%$ overall, $\ge 3/5$ core dimensions). Blind queue strips all PII; student identity concealed from reviewer.
skill_reverified Skill Retention +50 1,500 pts Periodic renewal assessment passed before validity expiration window. Early renewal adds standard duration to remaining days without truncation.
assessment_quality Review Quality +25 500 pts Awarded when an approved rubric scores $\ge 90/100$ across all 5 dimensions. One-time bonus per assessment; awarded transactionally with verification pass.
practice_milestone Consistency +25 200 pts Awarded every 30 distinct approved retention practice days (capped at 240 days). Calculated from unique calendar days; single-day repetitions yield zero extra credit.
network_connections_* Community +25 / +75 / +150 250 pts Awarded at verified milestones: 100 (+25), 500 (+75), and 1,000 (+150) connections. Bidirectional pairKey ([idA, idB].sort().join(':')) prevents duplicate relationship credits.
team_up_* Collaboration +25 / +75 / +150 250 pts Awarded at completed Team-Up milestones: 10 (+25), 50 (+75), and 100 (+150) projects. Requires confirmed project conclusion; self-joins and abandoned projects award 0 points.
assessment_below_standard Review Penalty -10 None Deducted when human reviewer rejects evidence scoring $< 40%$ or flags plagiarism. Active for 90 days; deduplicated across skills per original submission date.
retention_answer_wrong Practice Penalty -10 None Deducted upon incorrect response submitted during daily skill retention quiz. Active for 90 days; encourages rigorous practice review over random guessing.
retention_task_missed Practice Penalty -30 None Deducted when an active verified skill retention challenge is missed within scheduled interval. Active for 90 days; protects market from stale, unmaintained talent credentials.
skill_expired Retention Penalty -80 None Deducted when verified skill validity window lapses without renewal. Removes skill from active talent discovery; recovers score immediately upon re-verification.
unreviewed_actions Guardrail 0 0 pts Profile creations, video uploads, self-declared skills, and individual connection requests. Client attempts to award self-credit rejected with HTTP 403; unreviewed state earns 0 points.
2.2 Hard Evidence Ceilings (Tier Gates)

Even with high base points, a student's displayed TrustScore cannot surpass strict evidence ceilings without demonstrating genuine, multi-dimensional competence:

  • Foundation Tier ($\le 500$ pts): Baseline progression (1 base point = 1 score point). Capped at 500 until student achieves at least 2 active verified skills.
  • Skilled Tier ($501 - 700$ pts): Diminishing returns apply (40% weight). Capped at 700 until student secures 1 active Pro / Pro Mastery skill, 2 completed GIGs, and 30 approved practice days.
  • Proven Tier ($701 - 899$ pts): Further compressed (20% weight). Capped at 899 until student achieves 2 active Pro Mastery skills, 5 completed GIGs, 90 approved practice days, and 10 high-quality reviews ($\ge 90%$).
  • Distinguished Tier ($900 - 1,000$ pts): Elite bracket (10% weight beyond 2,000 base points). Requires 3,000 eligible base points plus full satisfaction of all evidence gates. Max score is bounded at 1,000.
  • Penalty Decay & Floor: All active penalties are subtracted after applying the gate ceiling and strictly floored at 0. Dated penalties automatically expire after 90 days.
3. End-to-End Lifecycle Operations, Security & Scalability Matrix
Platform Role Primary Workspaces & Interfaces Core Lifecycle Responsibilities Security, Reliability & Scalability Architecture
๐ŸŽ“ Student โ€ข Student Workspace
โ€ข Profile & Portfolio
โ€ข Skill Hub
โ€ข GIG Center
โ€ข Active GIGs
โ€ข Network & Team-Up
โ€ข Earnings & TrustScore
โ€ข Registers with Aadhaar/DigiLocker reference.
โ€ข Submits skill evidence against catalog snapshots.
โ€ข Completes daily practice challenges to maintain streaks.
โ€ข Connects via unique pairKey and collaborates in Team-Up projects to earn community TrustScore milestones (100/500/1000 connections; 10/50/100 team posts).
โ€ข Applies to GIGs and completes practical interview tasks.
โ€ข Executes selected work inside Project Workspace.
โ€ข Submits deliverables, handles revision feedback, and tracks earnings across Approved (Unpaid) and Completed (Paid) ledger states.
Security & Privacy: Identity references salted and HMAC-SHA256 hashed (select: false). Blind review queues strictly strip PII.
Reliability: Optimistic concurrency (__v) prevents dirty writes during simultaneous profile/skill updates.
Scalability: Embedded profile and skill arrays load in a single read query without join overhead; compound filtered index { studentId: 1, status: 1, updatedAt: -1 } provides instantaneous Earnings dashboard rendering without scanning historical submissions.
๐Ÿข Company (MSME) โ€ข Company Workspace
โ€ข Business Profile
โ€ข GIG Management
โ€ข Talent Search
โ€ข Task Library
โ€ข Project Workspace
โ€ข External Payments
โ€ข Registers with GSTIN/Udyam reference.
โ€ข Publishes GIGs and manages hiring statuses.
โ€ข Discovers verified candidates on TrustScore leaderboard.
โ€ข Issues practical screening tasks and evaluates output.
โ€ข Onboards selected talent into Project Workspace.
โ€ข Authors kickoff briefs, tracks milestones, and approves work.
โ€ข Settles payments externally (UPI/NEFT) and records unique references to conclude work.
Security: GSTIN/Udyam references are cryptographically fingerprinted. Task review guides remain private.
Reliability: Compound unique partial index on { companyId, externalPayment.reference } guarantees idempotent payment logging.
Scalability: Co-located GIG states provide instantaneous dashboard rendering without cross-collection aggregation.
๐Ÿ›ก๏ธ Platform Admin & Reviewer โ€ข Admin Workspace
โ€ข Skill Catalog Governance
โ€ข Skill Request Decisions
โ€ข Reviewer Administration
โ€ข Blind Assessment Queue
โ€ข Admin: Publishes versioned skill standards, stage requirements, and daily tasks.
โ€ข Admin: Evaluates student requests for uncataloged skills.
โ€ข Admin: Provisions and manages reviewer staff credentials.
โ€ข Reviewer: Claims submissions from blind queue (240m TTL).
โ€ข Reviewer: Grades evidence on 5-part rubric and provides qualitative feedback.
Security: Strict role-scoped access control (admin vs reviewer) with session invalidation upon privilege revocation.
Reliability: Multi-document ACID transactions via replica sets commit approvals and TrustScore updates together; frozen criteriaSnapshot prevents version skew.
Scalability: Non-blocking queue leasing distributes assessment workloads evenly across staff.

โšก Quick flow: User or visitor โ†’ workspace or public page โ†’ public or role-protected API endpoint โ†’ MongoDB data layer โ†’ updated view.

3. ๐Ÿ“Š Data Flow Diagrams (DFD)

Level 0. System Context Diagram

This context view treats SkillBridge as one system and shows its external users and the main information they exchange with it. The following Level 1 and Level 2 views expand the system into its major processes and logical data stores.

flowchart LR
    Student[Student] -->|Profile, skill evidence, applications, work, network activity| System([SkillBridge platform])
    System -->|Profile, review feedback, opportunities, work status, TrustScore| Student
    Company[Company or MSME] -->|Business profile, GIGs, tasks, review decisions, external payment report| System
    System -->|Talent profiles, applications, delivery status, payment and project history| Company
    Admin[Platform admin] -->|Skill standards, catalog decisions, reviewer administration| System
    System -->|Catalog, requests, review operations and platform overview| Admin
    Reviewer[Authorized reviewer] -->|Claims, rubric scores and assessment decisions| System
    System -->|Blind assessment queue and review history| Reviewer
    Visitor[Public visitor] -->|Public page and profile requests| System
    System -->|Public landing page and sanitized public profiles| Visitor
Loading

Level 1. Project Processes and Data Stores

The project-wide Level 1 DFD is shown in four small views to keep labels readable and reduce crossing arrows. Rectangles are external entities (people or organizations), rounded nodes are processes (work performed by the system), cylinders are logical data stores, and labeled arrows are data flows. These stores are logical groupings, not individual MongoDB collections. D1 is the same account/profile store wherever it appears; D3 and process 7 (TrustScore) are shared across A2, B1, and B2. A2 shows TrustScore updating the current score in D1. Repeated Student or Company boxes represent the same actor at different stages. Arrows show information, never the movement of money.

Store Logical contents Current implementation
D1 Accounts and profiles Student/company profiles, account state, and current score students and companies documents, including embedded profile and workspace state. Reviewer credentials are held separately in reviewers and are omitted from the simplified workflow stores.
D2 Skill standards and assessments Published skill standards, student requests, evidence submissions, and review history skillcatalogs, skillrequests, and skillassessments collections.
D3 TrustScore event history Eligible credit and penalty events used to calculate TrustScore students.trustScoreState.events, embedded in student documents; it is not a separate collection.
D4 GIG, interview, and work records Company GIG definitions, interview assignments, delivery, review, and payment reports GIG state embedded in companies; lifecycle records and external payment reports in tasksubmissions.
D5 Connections and teams Student connections, Team-Up posts, applications, invitations, and membership state networkconnections and teamposts; Team-Up requests are embedded subdocuments.

Roles: Platform admins govern the skill catalog, decide skill requests, and manage reviewer accounts. Authorized reviewers claim and assess submitted evidence using a rubric. The reviewer queue is blind to student identity details. Both roles use the Admin workspace but have different permissions.

Scope: These DFDs explain the main information moving through the platform. They intentionally simplify individual API routes, authentication/session checks, validation, indexes, and transaction boundaries; those are described in the architecture and operations documentation. The identity/business references shown in A1 are collected and fingerprinted by this prototype, not checked against government systems.

A1. Registration and profiles
%%{init: {"flowchart": {"nodeSpacing": 55, "rankSpacing": 80}}}%%
flowchart TB
    Student[Student] -->|Aadhaar or DigiLocker reference| Account([1. Register and build profile])
    Company[Company] -->|GSTIN or Udyam reference| Account
    Account -->|Account and optional profile content| D1[(D1. Accounts and profiles)]
Loading
A2. Skill review and TrustScore
%%{init: {"flowchart": {"nodeSpacing": 55, "rankSpacing": 80}}}%%
flowchart TB
    Admin[Platform admin] -->|Publish standard| D2[(D2. Skill standards and assessments)]
    Student[Student] -->|Skill evidence| Review([2. Human skill review])
    Reviewer[Authorized reviewer] -->|Rubric decision| Review
    Review <-->|Read standard / save assessment| D2
    Review -->|Verification status| D1[(D1. Accounts and profiles)]
    Review -->|Eligible credit or penalty| Score([7. TrustScore policy])
    Score -->|Score event| D3[(D3. TrustScore event history)]
    Score -->|Current score| D1
Loading
B1. GIG selection, work, and external payment
%%{init: {"flowchart": {"nodeSpacing": 55, "rankSpacing": 80}}}%%
flowchart TB
    CompanyGig[Company] -->|GIG and interview task| Select([3. Match and assess applicants])
    StudentApply[Student] -->|Application and interview answer| Select
    D1[(D1. Accounts and profiles)] -->|Verified skills and score| Select
    Select -->|Application and selection| D4[(D4. GIG, interview and work records)]
    Select -->|Selected student| Work([4. Brief, delivery and approval])

    CompanyWork[Company] -->|Brief and approval decision| Work
    StudentWork[Student] -->|Deliverable or revision| Work
    Work -->|Delivery and approval| D4
    Work -->|Approved work: awaiting payment| Pay([5. Record external payment])
    CompanyPay[Company] -->|Payment details and transaction ref| Pay
    Pay -->|Payment record and status=completed| D4
    D4 -->|Approved unpaid and completed paid earnings| StudentEarnings[Student: Earnings Dashboard]
    Pay -->|Completed GIG credit: +150 pts| Score([7. TrustScore policy])
    Score -->|Score event| D3[(D3. TrustScore event history)]
Loading
B2. Network and Team-Up
%%{init: {"flowchart": {"nodeSpacing": 55, "rankSpacing": 80}}}%%
flowchart TB
    Student[Student] -->|Connection or Team-Up request| Network([6. Network and Team-Up])
    D1[(D1. Accounts and profiles)] -->|Public profile and skills| Network
    Network <--> D5[(D5. Connections and teams)]
    Network -->|Accepted-activity milestone credit| Score([7. TrustScore policy])
    Score -->|Score event| D3[(D3. TrustScore event history)]
Loading

Level 1 Process Decomposition Dictionary

To provide formal academic rigor for evaluation, the table below maps each high-level process to its data inputs, outputs, underlying algorithmic transformation, and implementing codebase controller:

Process ID Process Name Primary Inflows (Source) Primary Outflows (Target) Core Transformation & Invariants Implementing Controller
1.0 Register & Build Profile Registration credentials, Aadhaar/DigiLocker, GSTIN/Udyam (Student / Company) Account record, hashed reference (D1) Validates payload, salts and hashes raw government references via HMAC-SHA256, initializes empty workspaces. studentController.js
companyController.js
2.0 Human Skill Review Catalog standards (D2), Student evidence, Reviewer rubric scores Verification state (D1), Assessment record (D2), Credit trigger (7.0) Strips student identity (blind queue), enforces 240-min claim lease, validates 5-part rubric ($\ge 70/100$ pass), snapshots standard. skillAssessmentController.js
skillCatalogController.js
3.0 Match & Assess Applicants GIG posting, interview task, student application (D1, Student, Company) Opportunity record, interview submission (D4) Computes profile-to-GIG match percentage, creates interview assignment snapshot, captures candidate response/links. gigController.js
taskBridgeController.js
4.0 Brief, Delivery & Approval Work brief, final project deliverables, revision requests (D4, Student, Company) Workspace milestone state, approved deliverable (D4) Advances GIG item from selected to work_started, tracks brief milestones, manages revision rework loops, marks work approved. taskBridgeController.js
5.0 Record Payment & Update Earnings Company payment confirmation, reference, date, amount (Company) Payment record (D4), Student Earnings (D4), Completed GIG credit trigger (7.0) Enforces idempotent payment references via partial unique index, verifies deliverable was approved, marks submission completed, transitions Student Earnings from awaiting payment to paid/completed, and records transaction timestamp. companyPaymentController.js
earningController.js
6.0 Network & Team-Up Peer connection requests, Team-Up collaboration posts (Student) Connection status (D5), Team membership (D5), Network milestone (7.0) Generates unique bidirectional pairKey, validates slot capacity for team posts, handles applicant acceptance. networkController.js
7.0 TrustScore Policy Engine Credit/penalty events from Processes 2.0, 5.0, and 6.0 Append-only event log (D3), Materialized total (D1) Enforces category caps, decay policies, evidence gates, and duplicate-safe idempotency; recalculates materialized TrustScore. trustScoreController.js
server/utils/transaction.js

Level 2 DFD: Deep Dive into Process 2.0 (Blind Human Skill Review & TrustScore)

Process 2.0 represents the primary novelty of the platformโ€”replacing automated keyword parsing with an auditable, bias-free human evaluation pipeline. Its internal Level 2 decomposition is shown below:

%%{init: {"flowchart": {"nodeSpacing": 45, "rankSpacing": 60}}}%%
flowchart TD
    Student[Student] -->|Evidence URL & writeup| P21([2.1 Submit Evidence & Freeze Criteria])
    D2[(D2. Skill Standards)] -->|Catalog version & instructions| P21
    P21 -->|Criteria snapshot & submission| D2_Sub[(SkillAssessment: status=pending)]
    
    D2_Sub -->|Queue retrieval| P22([2.2 Blind Queue Projection])
    P22 -->|Stripped record: no name, college, avatar or score| ReviewerQueue[Available Blind Queue]
    
    Reviewer[Authorized Reviewer] -->|Claim request| P23([2.3 Lease Claim & Lock Submission])
    ReviewerQueue --> P23
    P23 -->|Exclusive claim: 240m TTL| D2_Claimed[(SkillAssessment: status=claimed)]
    
    Reviewer -->|Scores 5 dimensions: Correctness, Evidence, Understanding, Testing, Comm| P24([2.4 Rubric Evaluation & Threshold Check])
    D2_Claimed --> P24
    
    P24 -->|Decision & feedback| P25{2.5 Decision Branch}
    P25 -->|Score below 70: Needs Work| RejRev([Needs Revision / Disqualified])
    RejRev -->|Qualitative revision feedback| Student
    RejRev -->|Update status: needs_revision or rejected| D2_Sub
    RejRev -->|Score below 40: Record penalty -10 pts| D3[(D3. TrustScore Event Ledger)]
    
    P25 -->|Score 70 or above: Pass| P26([2.6 Multi-Document ACID Transaction])
    P26 -->|Commit verified skill level & stage| D1[(D1. Student Document)]
    P26 -->|Commit assessment approved status| D2[(D2. Skill Assessment)]
    P26 -->|Append +60 verify or +100 upgrade credit| D3[(D3. TrustScore Event Ledger)]
Loading

Data Flow Dictionary (Information Packets)

Flow Name Source $\rightarrow$ Target Information Attributes Transferred
Registration Payload Student / Company $\rightarrow$ 1.0 Name, email, salted password hash, location, and raw Aadhaar/DigiLocker or GSTIN/Udyam token.
Blind Review Packet 2.2 $\rightarrow$ Reviewer Submission ID, target skill name, level, catalog criteria snapshot, evidence links, candidate response. (Student identity strictly excluded).
Review Rubric Packet Reviewer $\rightarrow$ 2.4 Correctness (0-5), Evidence (0-5), Understanding (0-5), Testing (0-5), Communication (0-5), qualitative feedback string.
Work Kickoff Brief Company $\rightarrow$ 4.0 GIG work item ID, task scope summary, detailed delivery instructions, milestone checklist.
Deliverable Packet Student $\rightarrow$ 4.0 Deliverable repository/preview link, execution notes, response text, completion timestamp.
External Payment Record Company $\rightarrow$ 5.0 GIG work submission ID, payment method (NEFT/UPI/Cash), currency, amount paid, unique payment reference, payment date.
Earnings Query Packet Student $\rightarrow$ 5.0 Student ID session token; returns approved unpaid earnings, verified paid history, transaction references, and totals.
Network & Team-Up Packet Student $\rightarrow$ 6.0 Target student ID, pairKey, Team-Up post ID, required skill tags, application message, collaboration slot state.

4. ๐Ÿ’ผ Full GIG Pipeline

flowchart TD
    subgraph CompanySetup[Company GIG Management]
        Create[Create GIG with title, skills, budget, location, work mode and type]
        Publish[Save with selected status, Hiring by default]
        CompanyState[(Company gigManagementState)]
        Create --> Publish --> CompanyState
    end

    subgraph StudentDiscovery[Student GIG Center]
        Browse[Load browsable company GIGs]
        Match[Show informational profile-skill match percentage]
        Save[Save or unsave GIG]
        Apply[Apply to GIG]
        StudentGigState[(Student gigState)]

        Browse --> Match
        Browse --> Save --> StudentGigState
        Browse --> Apply --> StudentGigState
    end

    CompanyState -->|Hiring, Reviewing or In Progress listings| Browse
    Apply -->|Add applicant and update company metrics| CompanyState

    subgraph CandidateSelection[Applicant and Invitation Flow]
        Applicants[Company reviews current applicant profiles]
        Talent[Company discovers talent directly]
        Assignment[Create or select a validated interview assignment]
        Send[Send interview task]
        Opportunity[(Student opportunity snapshot)]
        Choice{Student decision}
        Declined[Declined opportunity]
        Accepted[Accepted opportunity]

        Applicants --> Assignment
        Talent -->|Direct invite| Assignment
        Assignment --> Send --> Opportunity --> Choice
        Choice -->|Decline| Declined
        Choice -->|Accept| Accepted
    end

    CompanyState --> Applicants

    subgraph Interview[Interview Assessment]
        OpenTask[Open accepted assignment]
        TaskType{Assignment type}
        TaskEvidence[Task-specific evidence: response and/or public link]
        SubmitInterview[Submit interview evidence]
        Submission[(TaskSubmission document)]
        ReviewInterview{Company review}
        InterviewRevision[Needs revision with feedback]
        InterviewRejected[Rejected]
        Reviewed[Reviewed with optional score]
        Selected[Student selected]

        OpenTask --> TaskType
        TaskType --> TaskEvidence --> SubmitInterview
        SubmitInterview -->|Status: submitted| Submission --> ReviewInterview
        ReviewInterview -->|Needs revision| InterviewRevision --> SubmitInterview
        ReviewInterview -->|Reject| InterviewRejected
        ReviewInterview -->|Review| Reviewed
        Reviewed -->|Select or ready to hire| Selected
    end

    Accepted --> OpenTask

    subgraph Delivery[Project Workspace, Active Work and Delivery]
        WorkspaceGroup[GIG group in Project Workspace]
        Workspace[Existing submission becomes an independent GIG Work item per student]
        SelectedActive[Student Active GIG: selected; final delivery locked]
        Kickoff[Company submits the work brief and starts the GIG]
        WorkStarted[Status: work started; brief-sent checkpoint shown]
        Updates[Company shares project updates]
        Milestones[Company creates, completes or reopens milestones]
        StudentWork[Student opens Active GIG, reads the brief and completes real work]
        Deliver[Student submits final delivery]
        DeliveryReview{Company reviews delivery}
        DeliveryRevision[Needs revision with delivery-stage return state]
        Approved[Status: approved; payment pending]

        Selected -->|Group by source GIG| WorkspaceGroup
        WorkspaceGroup -->|One item per selected submission| Workspace
        Workspace --> SelectedActive
        Workspace --> Kickoff
        Kickoff -->|One company action| WorkStarted
        Workspace --> Updates
        Workspace --> Milestones
        WorkStarted --> StudentWork --> Deliver
        Deliver -->|Status: delivered| DeliveryReview
        DeliveryReview -->|Needs revision| DeliveryRevision --> StudentWork
        DeliveryReview -->|Approve| Approved
    end

    subgraph ExternalPayment[External Payment Recording]
        Pending[Approved work appears as awaiting payment]
        PayOutside[Company pays student outside SkillBridge]
        Confirm[Company confirms payment was already made]
        ValidatePayment[Validate ownership, amount, payment date, method and unique reference]
        PaymentTransaction[Payment recording and TrustScore update]
        Completed[Status: completed]
        PaymentRecord[(TaskSubmission externalPayment record)]

        Approved --> Pending --> PayOutside --> Confirm --> ValidatePayment --> PaymentTransaction
        PaymentTransaction --> Completed
        PaymentTransaction --> PaymentRecord
    end

    subgraph Results[Shared Results]
        StudentCompleted[Student Completed GIGs]
        CompanyHistory[Company payment history and project history]
        StudentEarnings[Student read-only earnings history]
        TrustEvent[(TrustScore event: gig completed with +150 base credit)]
        TrustScore[Recalculate TrustScore under policy caps and evidence gates]
        Profile[Completed GIG count and refreshed student and company talent views]

        Completed --> StudentCompleted
        Completed --> CompanyHistory
        PaymentRecord --> StudentEarnings
        PaymentTransaction --> TrustEvent --> TrustScore --> Profile
    end

    Submission -.->|Same TaskSubmission with stable IDs| Workspace
    Completed -.->|Removed from Active GIGs| StudentCompleted
Loading

โšก Quick flow: Company creates a browsable GIG โ†’ student applies or receives a direct opportunity โ†’ student completes the interview task โ†’ company reviews and selects one or more students โ†’ each selected student's submission becomes an independent GIG Work item โ†’ company sends the paid brief and starts work โ†’ student delivers and may revise โ†’ company approves โ†’ external payment is recorded โ†’ that student's GIG Work completes, earnings update, and TrustScore is recalculated.

5. ๐ŸŽ“ Full Skill Hub Pipeline

flowchart TD
    subgraph Governance[Platform Admin Governance]
        Draft[Create draft skill standard]
        Define[Define aliases, stages, verification rules, upgrade rules, renewal period and daily tasks]
        Publish[Publish versioned catalog skill]
        Catalog[(SkillCatalog)]
        ReviewerOps[Provision, suspend or reactivate reviewer accounts]
        Draft --> Define --> Publish --> Catalog
    end

    subgraph StudentInventory[Student Skill Inventory]
        Add{Add skill}
        Browse[Choose a published catalog skill]
        Custom[Add a self-declared skill]
        ProfileOnly[Profile-only: no verification, matching or TrustScore]
        Request[Request platform support or mapping]
        RequestRecord[(SkillRequest)]
        RequestDecision{Admin decision}
        Owned[Catalog-backed skill on student profile]
        Archive[Archive skill: hide from matching and block new assessments]
        Restore[Restore skill]
        Add --> Browse --> Owned
        Add --> Custom --> ProfileOnly
        ProfileOnly --> Request --> RequestRecord --> RequestDecision
        RequestDecision -->|Approve or merge| Owned
        RequestDecision -->|Reject with reason| ProfileOnly
        Owned --> Archive --> Restore --> Owned
        Catalog --> Browse
        Catalog --> RequestDecision
    end

    subgraph StudentActions[Governed Skill Actions]
        Select{Choose action}
        Verify[Initial verification]
        Reverify[Renew due or expired verification]
        Upgrade[Upgrade to the next published stage]
        Retain[Submit daily practice]
        Challenge[Complete a published daily task]
        Evidence[Submit original response and optional evidence link]
        Owned --> Select
        Select --> Verify --> Evidence
        Select --> Reverify --> Evidence
        Select --> Upgrade --> Evidence
        Select --> Retain --> Evidence
        Select --> Challenge --> Evidence
    end

    subgraph SubmissionAPI[Assessment Validation and Snapshot]
        Validate[Validate ownership, catalog availability, mode, stage, task, response and URL]
        Snapshot[Capture catalog ID, version and exact criteria]
        Duplicate{Open or same-day attempt exists?}
        Assessment[(SkillAssessment)]
        Pending[Pending blind review]
        Evidence --> Validate --> Snapshot --> Duplicate
        Duplicate -->|Yes| Conflict[Return conflict; no TrustScore change]
        Duplicate -->|No| Assessment --> Pending
    end

    subgraph ReviewerPipeline[Admin Workspace Blind Review]
        AdminQueue[Admin > Review Queue]
        Queue[Available queue]
        Blind[Identity, college, photo, location and TrustScore hidden]
        Claim[Claim with expiring lease]
        Standard[Review captured versioned criteria]
        Rubric[Weighted evidence rubric]
        Decision{Decision}
        Pending --> AdminQueue --> Queue --> Blind --> Claim --> Standard --> Rubric --> Decision
    end

    Decision -->|Needs revision| Revision[Student revises evidence against the original criteria snapshot]
    Revision -->|Same assessment returns to pending review| Pending
    Decision -->|Reject| Rejected[Record feedback; no skill reward; low-score penalty may apply]
    Decision -->|Reviewer approves: at least 70 overall and 3 of 5 in key criteria| Transaction[MongoDB transaction]

    subgraph ReviewEffects[Transactional Review Effects]
        Mode{Assessment mode}
        Verified[Activate verification using catalog renewal period]
        Renewed[Renew verification and preserve remaining valid days]
        Upgraded[Move to next catalog stage]
        Practiced[Record approved practice day and streak]
        Challenged[Record approved daily task]
        SkillLog[(Skill activity log)]
        Ledger[(Idempotent TrustScore event ledger)]
        Transaction --> Mode
        Mode -->|Verify| Verified --> SkillLog
        Mode -->|Renew| Renewed --> SkillLog
        Mode -->|Upgrade| Upgraded --> SkillLog
        Mode -->|Practice| Practiced --> SkillLog
        Mode -->|Challenge| Challenged --> SkillLog
        Mode --> Ledger
    end

    Rejected -->|Assigned reviewer scored below 40: policy penalty| Ledger

    subgraph Results[Derived Platform Results]
        Score[Recalculate TrustScore under policy caps and evidence gates]
        Hub[Skill Hub status, history and progress]
        Matching[Company talent discovery and GIG matching]
        Network[Network discovery]
        PublicProfile[Public profile with verification status]
        LiveGigs[Live company GIG skill requirements]
        Gap[Skill Gap Report]
        Ledger --> Score --> Hub
        SkillLog --> Hub
        Hub -->|Active verified skills only| Matching
        Hub -->|Active verified skills only| Network
        Hub -->|Non-archived skills, including labeled unverified skills| PublicProfile
        Hub --> Gap
        LiveGigs --> Gap
    end

    ReviewerOps --> AdminQueue
Loading

โšก Quick flow: Admin publishes a versioned skill standard โ†’ student adds the catalog skill and submits evidence โ†’ the exact standard is captured โ†’ authorized review staff use the Admin review queue and decide with a blind rubric โ†’ reviewer approval updates the skill, activity log, and TrustScore ledger in one transaction โ†’ only active verified skills enter matching and network discovery. Public profiles can also show non-archived, unverified skills with their verification status; a self-declared skill must become catalog-backed before it can be verified.

Skill Hub Operating Rules

Reviewers must provide feedback and a rubric. Approval requires 70/100 overall and at least 3/5 each in correctness, evidence, and understanding. Base credits do not equal the final TrustScore increase; caps and evidence gates apply. For the complete points breakdown, diminishing returns formula, and anti-gaming matrix, see Section 2.1 โ€” TrustScore Merit Ledger Criteria. Demo examples remain read-only. See assessment operations and the TrustScore policy for bonuses, penalties, renewal, seeding, and release checks.

6. ๐Ÿค Full Network and Team-Up Pipeline

%%{init: {"flowchart": {"rankSpacing": 110, "nodeSpacing": 20}}}%%
flowchart TD
    subgraph Entry[Authenticated Student Network]
        Open[Open Network workspace]
        Session[Validate active student session]
        Load[Load Network state]
        Discover[Discover students]
        MyNetwork[My Network]
        TeamUp[Team Up]

        Open --> Session --> Load
        Load --> Discover
        Load --> MyNetwork
        Load --> TeamUp
    end

    subgraph ReadModel[Network Read Model]
        Relationships[(NetworkConnection records involving the student)]
        RelatedPosts[(Owned TeamPosts and posts containing the student)]
        BrowsePosts[(Newest open TeamPosts owned by other students)]
        Candidates[(Bounded student discovery results)]
        RelationshipMap[Build connected, incoming, outgoing and available relationship states]
        NetworkResponse[Return suggestions, connections, requests, team posts, invitations, memberships and achievement progress]

        Relationships --> RelationshipMap
        Candidates --> RelationshipMap
        RelatedPosts --> NetworkResponse
        BrowsePosts --> NetworkResponse
        RelationshipMap --> NetworkResponse
    end

    Session --> Relationships
    Session --> RelatedPosts
    Session --> BrowsePosts
    Session --> Candidates
    NetworkResponse --> Discover
    NetworkResponse --> MyNetwork
    NetworkResponse --> TeamUp

    subgraph ProfilePrivacy[Student Profile and Privacy]
        Card[Compact discovery card: name, location, verified skills, streak and TrustScore]
        ViewProfile[Open full public student profile]
        ConnectionCheck{Viewer owns profile or has an accepted connection?}
        PublicEvidence[Return public portfolio, non-archived skills with verification status, activity, work style and collaboration evidence]
        TeamCard[Team-Up participant cards: public fields only]
        Contact[Include saved contact details]
        Private[Keep contact details hidden]

        Discover --> Card --> ViewProfile --> PublicEvidence
        ViewProfile --> ConnectionCheck
        ConnectionCheck -->|Yes| Contact
        ConnectionCheck -->|No| Private
        TeamUp --> TeamCard --> Private
    end

    subgraph ConnectionLifecycle[Connection Lifecycle]
        SendRequest[Send connection request]
        ValidatePair[Validate target, prevent self-request and build normalized pair key]
        Existing{Relationship already exists?}
        Pending[(One pending NetworkConnection per student pair)]
        Recipient[Recipient sees incoming request]
        Decision{Recipient decision}
        Accepted[Status: accepted]
        Declined[Status: declined]
        Cancel[Sender cancels pending request]
        Remove[Either connected student removes connection]
        Revoke[Contact visibility is revoked]

        Discover --> SendRequest --> ValidatePair --> Existing
        Existing -->|Pending or accepted| Conflict[Return conflict]
        Existing -->|None or previously declined| Pending --> Recipient --> Decision
        Decision -->|Accept| Accepted
        Decision -->|Decline| Declined
        Pending -->|Sender action| Cancel
        Accepted -->|Either participant| Remove --> Revoke
    end

    subgraph TeamPostLifecycle[Team-Up Post Lifecycle]
        CreatePost[Create Team-Up]
        ValidatePost[Validate title, description, type, required skills and team size]
        TeamPost[(TeamPost owned by the creator)]
        Publish[Publish as open]
        Edit[Owner edits details or status]
        Capacity[Prevent team size below accepted membership]
        DeleteRule{Any accepted membership history?}
        DeletePost[Owner deletes post]
        ClosePost[Owner closes post and preserves collaboration history]

        TeamUp --> CreatePost --> ValidatePost --> TeamPost --> Publish
        TeamPost --> Edit --> Capacity --> TeamPost
        TeamPost --> DeleteRule
        DeleteRule -->|No| DeletePost
        DeleteRule -->|Yes| ClosePost
    end

    subgraph ApplicationFlow[Student Application Flow]
        Explore[Explore and filter open Team-Ups]
        JoinMessage[Submit contribution message]
        JoinChecks[Check post is open, not owned by applicant, not full and has no active request]
        Application[(Embedded application with pending status)]
        OwnerReview[Owner reviews applicant profile and message]
        ApplicationDecision{Owner decision}
        ApplicationAccepted[Application accepted]
        ApplicationDeclined[Application declined]
        Withdraw[Applicant withdraws pending request]

        Publish --> Explore --> JoinMessage --> JoinChecks --> Application --> OwnerReview --> ApplicationDecision
        ApplicationDecision -->|Accept| ApplicationAccepted
        ApplicationDecision -->|Decline| ApplicationDeclined
        Application -->|Applicant action| Withdraw
    end

    subgraph InvitationFlow[Direct Invitation Flow]
        SelectPost[Owner selects an open Team-Up]
        SelectStudent[Select student and write invitation message]
        InviteChecks[Validate owner, student, capacity and existing request state]
        Invitation[(Embedded invitation with pending status)]
        InviteeDecision{Invited student decision}
        InvitationAccepted[Invitation accepted]
        InvitationDeclined[Invitation declined]

        TeamPost --> SelectPost --> SelectStudent --> InviteChecks --> Invitation --> InviteeDecision
        InviteeDecision -->|Accept| InvitationAccepted
        InviteeDecision -->|Decline| InvitationDeclined
    end

    subgraph Membership[Membership and Capacity]
        MembershipRecord[Accepted request becomes active membership]
        AcceptedAt[Store acceptedAt for auditable collaboration history]
        Full{Accepted members reached available slots?}
        AutoClose[Automatically close full Team-Up]
        JoinedView[Show owner and other accepted members]
        Leave[Member leaves Team-Up]
        PreserveHistory[Mark membership withdrawn and retain acceptedAt]
        Reopen[Owner may reopen when capacity becomes available]

        ApplicationAccepted --> MembershipRecord
        InvitationAccepted --> MembershipRecord
        MembershipRecord --> AcceptedAt --> Full
        Full -->|Yes| AutoClose
        Full -->|No| JoinedView
        AutoClose --> JoinedView
        JoinedView --> Leave --> PreserveHistory --> Reopen
    end

    subgraph TrustScore[Network TrustScore Integration]
        CountConnections[Count persisted accepted NetworkConnections]
        CountTeamUps[Count persisted current or historical accepted Team-Up participation]
        ConnectionMilestones{100, 500 or 1,000 connections reached?}
        TeamMilestones{10, 50 or 100 Team-Ups reached?}
        TrustLedger[(Idempotent TrustScore event ledger)]
        Recalculate[Recalculate TrustScore under category caps]

        Accepted -->|Persist, then best-effort sync| CountConnections --> ConnectionMilestones
        AcceptedAt -->|Persist, then best-effort sync| CountTeamUps --> TeamMilestones
        Load -->|Reconcile on read| CountConnections
        Load -->|Reconcile on read| CountTeamUps
        ConnectionMilestones -->|Threshold reached| TrustLedger
        TeamMilestones -->|Threshold reached| TrustLedger
        TrustLedger --> Recalculate
    end

    subgraph Persistence[MongoDB Persistence and Safety]
        ConnectionUnique[Unique normalized pairKey prevents duplicate relationships]
        ConnectionIndexes[Requester and recipient status indexes support network reads]
        TeamIndexes[Owner, status, participant and acceptance indexes support Team-Up reads]
        OptimisticLock[Optimistic concurrency rejects conflicting TeamPost updates]
        Authorization[Every write checks session, ownership, participant role and current status]
        Cleanup[Account deletion removes connections, owned posts and participation references]

        Pending --> ConnectionUnique --> ConnectionIndexes
        TeamPost --> TeamIndexes
        Application --> OptimisticLock
        Invitation --> OptimisticLock
        Session --> Authorization
        Authorization --> Cleanup
    end
Loading

โšก Quick flow: Student opens Network โ†’ backend builds relationship and Team-Up state from MongoDB โ†’ students connect or collaborate through validated requests and invitations โ†’ saved contact details appear only on the full profile for its owner or an accepted connection โ†’ milestone credits are attempted after acceptance and reconciled from persisted counts on later Network reads if needed.

๐Ÿ“ Folder Structure

skillbridge/
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/ci.yml            # Lint, build and server test pipeline
โ”œโ”€โ”€ client/                         # React 19 + Vite frontend
โ”‚   โ”œโ”€โ”€ public/                     # Static browser assets
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ assets/                 # Runtime videos and screenshot source assets
โ”‚   โ”‚   โ”œโ”€โ”€ auth/                   # Shared login portal
โ”‚   โ”‚   โ”œโ”€โ”€ admin/                  # Auth, governance, review queue and operations APIs
โ”‚   โ”‚   โ”œโ”€โ”€ company/                # Company dashboard and workflows
โ”‚   โ”‚   โ”œโ”€โ”€ config/                 # Frontend runtime configuration
โ”‚   โ”‚   โ”œโ”€โ”€ landing/                # Public landing experience
โ”‚   โ”‚   โ”œโ”€โ”€ lib/                    # API, URL and formatting helpers
โ”‚   โ”‚   โ”œโ”€โ”€ student/                # Student dashboard and workflows
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ earning/            # Earnings read model
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ gig/                # GIG discovery and applications
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ network/            # Connections and Team-Up
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ profile/            # Profile activity heatmap
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ skillhub/           # Skills, practice, streak and gap report
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ task/               # Interview and assessment submissions
โ”‚   โ”‚   โ”œโ”€โ”€ ui/                     # Shared profile, loading and toast UI
โ”‚   โ”‚   โ”œโ”€โ”€ App.jsx                 # Routes and protected workspaces
โ”‚   โ”‚   โ””โ”€โ”€ main.jsx                # Browser entry point
โ”‚   โ”œโ”€โ”€ package.json                # Frontend dependencies and commands
โ”‚   โ”œโ”€โ”€ vercel.json                 # SPA deployment rewrite
โ”‚   โ””โ”€โ”€ vite.config.js              # Vite configuration
โ”œโ”€โ”€ server/                         # Node.js API and MongoDB persistence
โ”‚   โ”œโ”€โ”€ config/                     # Environment, policies and default state
โ”‚   โ”œโ”€โ”€ controllers/                # Domain and request handlers
โ”‚   โ”œโ”€โ”€ models/                     # Ten Mongoose collection schemas
โ”‚   โ”œโ”€โ”€ routes/                     # Student Network and Skill Hub route groups
โ”‚   โ”œโ”€โ”€ scripts/                    # Reviewer, seed and reconciliation tools
โ”‚   โ”œโ”€โ”€ tests/                      # Backend unit and workflow tests
โ”‚   โ”œโ”€โ”€ utils/                      # Auth, validation, policy and logging helpers
โ”‚   โ”œโ”€โ”€ package.json                # Backend dependencies and commands
โ”‚   โ””โ”€โ”€ server.js                   # Native HTTP router and server entry
โ”œโ”€โ”€ docs/                           # Documentation
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”‚   โ””โ”€โ”€ screenshots/            # README product screenshots
โ”‚   โ”œโ”€โ”€ assessment-operations.md    # Reviewer workflow notes
โ”‚   โ”œโ”€โ”€ gig-pipeline-verification.md
โ”‚   โ”œโ”€โ”€ landing-page.md
โ”‚   โ””โ”€โ”€ trustscore-v2.md
โ”œโ”€โ”€ render.yaml                     # Render backend deployment
โ””โ”€โ”€ README.md

๐Ÿ—„๏ธ Database Design

1. ๐Ÿงฉ Persistence Model

SkillBridge uses MongoDB through Mongoose. Account-owned state is embedded in the relevant student or company document, while records that have an independent lifecycle, concurrent actors, or audit requirements use dedicated collections.

How to read this design: MongoDB stores data as documents rather than as rows joined by foreign keys. The tables below identify the main collections and their references; the ERD is a simplified logical view of those relationships. Some fields shown as array or object are embedded subdocuments, not separate collections. The collection table and the embedded-state table together describe the implementation more accurately than the ERD alone.

Terms used here: A reviewer is authorized platform staff who assess student evidence; reviewer accounts can have either admin or queue-only permissions. A GIG is a project opportunity posted by a company. TrustScore is the platform's calculated signal from eligible, reviewed events. A Team-Up is a student collaboration post with applications and invitations.

Student and company accounts store their own profile and workspace state together so each account's dashboard can be loaded and updated as a unit. Skill assessments, work submissions, network connections, Team-Up posts, skill catalog entries, requests, and site metrics have separate documents because they need independent identities, histories, querying, or concurrency controls. References between collections use MongoDB ObjectIds; selected task and profile details are also copied into submissions as snapshots so past work retains the context captured when it was created.

Architectural Choice: Why NoSQL (MongoDB) over RDBMS?

Architectural Dimension Traditional Relational Database (e.g., PostgreSQL / MySQL) MongoDB Document Model (SkillBridge Implementation) System Benefit in SkillBridge
Workspace Query Performance Requires 4โ€“6 table JOIN operations (Students, Skills, Projects, Sessions, Ledger) per dashboard load. Single-read document access. The entire student profile, portfolio, verified skills, and active workspace load in one indexed query. Minimizes server latency and eliminates complex join overhead for real-time dashboards.
Skill Evidence & Rubrics Rigid table columns. Difficult to accommodate polymorphic evidence (GitHub URLs, design links, live deployments, text). Polymorphic schema. Embedded flexible structures for assessment criteria snapshots and task evidence. Supports distinct verification requirements across engineering, design, and writing without schema migrations.
TrustScore Event Ledger Requires separate ledger tables and joins for every score query. Embedded event ledger. Immutable events are co-located in students.trustScoreState.events. Keeps the audit log and current score locally coherent with zero cross-table join overhead.
Historical Version Stability Modifying standards requires archiving tables or historical triggers. Snapshot embedding. Frozen criteriaSnapshot stored directly inside SkillAssessment. Preserves historical grading criteria permanently even if an admin updates or archives the skill standard later.

Current Collections

Collection Owner / References Purpose
students Student account Identity, profile, portfolio, Skill Hub state, verified skills, TrustScore event ledger, GIG state, sessions, and usage data.
companies Company account Business profile, GIG management, task library, private review guides, project workspace, sessions, and usage data.
reviewers Admin operations account Admin or queue-only reviewer role, active status, authentication sessions, and last sign-in time.
skillcatalogs Platform-owned; references creating/updating Reviewer admin Versioned skill names and aliases, verification rules, stage requirements, renewal periods, and reviewer-checked daily tasks.
skillrequests References Student, optional matched SkillCatalog, and deciding admin Student requests for a self-declared skill to be approved or mapped into the governed catalog.
skillassessments References Student; optionally Reviewer Verification, re-verification, upgrade, retention, and challenge submissions with evidence, rubric scores, feedback, claim ownership, and review history.
tasksubmissions References Student and Company Stable record shared by the interview, selection, workspace, delivery, approval, external-payment, completion, and TrustScore pipeline.
networkconnections References requester and recipient Student One normalized relationship per student pair with pending, accepted, or declined status.
teamposts References owner and participating Student records Collaboration posts, required skills, available slots, applications/invitations, and membership decisions.
sitemetrics Platform-owned Atomic counters such as site views, keyed by metric name.

The tasksubmissions collection is also the source for payment and earnings views. A company records a payment it has already made outside SkillBridge; the stored record is a company report, not a payment processed or independently verified by the platform. There is no wallet, escrow balance, or withdrawal record.

2. ๐Ÿ—บ๏ธ Entity Relationship Diagram (ERD)

erDiagram
    STUDENT ||--o{ SKILL_ASSESSMENT : submits
    STUDENT ||--o{ SKILL_REQUEST : requests
    SKILL_CATALOG o|--o{ SKILL_REQUEST : resolves
    SKILL_CATALOG o|--o{ SKILL_ASSESSMENT : governs
    REVIEWER o|--o{ SKILL_ASSESSMENT : reviews
    REVIEWER o|--o{ SKILL_REQUEST : decides
    REVIEWER ||--o{ SKILL_CATALOG : creates
    REVIEWER ||--o{ SKILL_CATALOG : updates
    STUDENT ||--o{ TASK_SUBMISSION : submits
    COMPANY o|--o{ TASK_SUBMISSION : owns
    STUDENT ||--o{ NETWORK_CONNECTION : requests
    STUDENT ||--o{ NETWORK_CONNECTION : receives
    STUDENT ||--o{ TEAM_POST : creates
    STUDENT }o--o{ TEAM_POST : participates

    STUDENT {
        ObjectId _id
        string name
        string email
        string passwordHash
        string location
        number trustScore
        array skills
        array projects
        string videoUrl
        array skillHubSkills
        object skillHubState
        object trustScoreState
        object gigState
        array sessions
        date createdAt
        date updatedAt
    }

    COMPANY {
        ObjectId _id
        string businessName
        string email
        string passwordHash
        string location
        object businessProfile
        object dashboardState
        object gigManagementState
        object taskLibraryState
        object taskReviewGuides
        object projectWorkspaceState
        array sessions
        date createdAt
        date updatedAt
    }

    REVIEWER {
        ObjectId _id
        string name
        string email
        string passwordHash
        string role
        boolean active
        array sessions
        date lastSignedInAt
    }

    SKILL_CATALOG {
        ObjectId _id
        string name
        array aliases
        string category
        string status
        number version
        number renewalDays
        array stages
        string verificationInstructions
        array upgradeRequirements
        array dailyTasks
    }

    SKILL_REQUEST {
        ObjectId _id
        ObjectId studentId
        ObjectId matchedSkillId
        string requestedName
        string category
        string status
        string adminFeedback
        ObjectId decidedBy
    }

    SKILL_ASSESSMENT {
        ObjectId _id
        ObjectId studentId
        ObjectId assignedReviewerId
        ObjectId catalogSkillId
        number catalogVersion
        string skillName
        string mode
        string targetStage
        string attemptKey
        string evidenceLink
        string response
        string status
        boolean open
        object rubric
        object criteriaSnapshot
        string feedback
        array reviewHistory
        date reviewedAt
    }

    TASK_SUBMISSION {
        ObjectId _id
        ObjectId studentId
        ObjectId companyId
        number companyGigId
        string companyGigPublicId
        number opportunityId
        string gigTitle
        string taskTitle
        object taskDetails
        string workBrief
        object interviewSubmission
        array matchedSkills
        string submissionLink
        string submissionContent
        string status
        number score
        string feedback
        object externalPayment
        date completedAt
        date submittedAt
        date reviewedAt
    }

    NETWORK_CONNECTION {
        ObjectId _id
        string pairKey
        ObjectId requester
        ObjectId recipient
        string status
        date respondedAt
    }

    TEAM_POST {
        ObjectId _id
        ObjectId owner
        string title
        string description
        string type
        array requiredSkills
        number slots
        string status
        array requests
    }

    SITE_METRIC {
        ObjectId _id
        string key
        number count
        date updatedAt
    }
Loading

Reading the relationships

In Mermaid ERD notation, || means exactly one, o| means zero or one, and o{ means zero or many. For example, each assessment belongs to one student, while a student may submit many assessments. A task submission must reference a student and may reference a company, which accommodates legacy or unowned records. A skill request may be linked to a catalog entry when one is matched and may be decided by a reviewer. Each skill catalog entry records both its creating reviewer and its most recent updating reviewer; those can be the same account.

Network connections point to two student accounts: the requester and recipient. Team-Up participation is shown as a many-to-many relationship for conceptual clarity, but the implementation embeds applications, invitations, and membership decisions as request subdocuments inside each teamposts document; each subdocument references the participating student. The diagram intentionally omits many embedded fields and snapshot values to stay readable. Fields such as a student's name and skills inside a task submission are historical snapshots, not additional relationships to student records.

๐Ÿ“‹ Core Data Dictionary

To provide formal academic clarity on storage types, structural constraints, and default invariants, the schema definitions for the primary workflow collections are specified below:

A. students Collection (Account Root & Reputation Ledger)
Field Name Type Constraints & Defaults Description
_id ObjectId Primary Key, Auto-generated Unique identifier for the student.
name string Required, Trimmed Student full legal name.
email string Required, Unique, Lowercase Unique authentication credential.
passwordHash string Required, { select: false } Bcrypt salted password hash.
identityVerificationHash string Max length: 100, { select: false } HMAC-SHA256 hash of Aadhaar or DigiLocker token.
trustScore number Default: 0, Indexed (-1) Materialized score summary for talent discovery.
skills array of strings Default: [] Profile-declared skills (unverified baseline).
skillHubSkills array of objects Subdocument schema, Default: [] Verified skills with levels, renewal dates, and catalog references.
trustScoreState.events array of objects Append-only ledger Authoritative, immutable event log powering TrustScore calculations.
sessions array of objects { select: false }, Max 5 sessions Active session tokens, client IPs, and expiry timestamps.
B. companies Collection (Organization Root, GIGs & Workspace)
Field Name Type Constraints & Defaults Description
_id ObjectId Primary Key, Auto-generated Unique identifier for the business enterprise.
businessName string Required, Trimmed Registered enterprise legal trade name.
email string Unique, Sparse, Lowercase Primary business login and notification address.
phone string Unique, Sparse Optional contact and mobile login credential.
passwordHash string Required, { select: false } Bcrypt salted enterprise password hash.
verificationMethod string (Enum) gstin, udyam, Default: gstin Business verification standard selected during registration.
verificationReferenceHash string Max length: 100, { select: false } Salted HMAC-SHA256 fingerprint of GSTIN or Udyam token.
businessProfile object Embedded subdocument Enterprise profile metadata: industry, logo, intro video, team size, website, contact.
gigManagementState object Embedded state Real-time GIG postings, hiring statuses, and candidate applicant pipelines.
taskLibraryState object Embedded state Reusable screening task assignments, guidelines, point weights, and formats.
taskReviewGuides object Private state Confidential candidate evaluation guides and answer keys hidden from applicants.
projectWorkspaceState object Embedded state Active GIG Work projects, kickoff briefs, milestone updates, and delivery evaluations.
paymentState object Embedded state Audit log of external payment confirmations and unique transaction reference records.
sessions array of objects { select: false }, Max 5 sessions Active company session tokens, client IPs, and expiry timestamps.
C. tasksubmissions Collection (Unified GIG & Work Lifecycle)
Field Name Type Constraints & Defaults Description
_id ObjectId Primary Key, Auto-generated Unique identifier for the work submission.
studentId ObjectId Reference: Student, Required Candidate assigned to the opportunity.
companyId ObjectId Reference: Company, Required Organization that published the parent GIG.
companyGigId number Required Numeric identifier of the parent GIG inside the company workspace.
opportunityId number Required Stable opportunity index tying interview to delivery.
status string (Enum) submitted, reviewed, selected, rejected, work_started, delivered, approved, completed, ready_to_hire, needs_revision Unified lifecycle status across interview and GIG delivery.
taskDetails object Snapshot Frozen copy of interview instructions, duration, and format.
workBrief string Trimmed, Optional Kickoff brief instructions provided by the company in Project Workspace.
submissionLink string Trimmed, URL External deliverable link (GitHub repository, live preview, document).
externalPayment object Embedded subdocument Company-reported payment metadata (amount, currency, method, reference, date).
D. skillassessments Collection (Blind Evidence Review)
Field Name Type Constraints & Defaults Description
_id ObjectId Primary Key, Auto-generated Unique assessment submission identifier.
studentId ObjectId Reference: Student, Required Candidate submitting evidence.
catalogSkillId ObjectId Reference: SkillCatalog Governed skill standard referenced at submission.
criteriaSnapshot object Immutable snapshot Preserves catalog instructions, version, and rubrics at submission time.
assignedReviewerId ObjectId Reference: Reviewer, Optional Reviewer currently holding the exclusive review lease.
claimExpiresAt date Optional, TTL lease Expiry timestamp (default 240 mins) releasing idle claims back to the pool.
rubric object 5 criteria (0โ€“5 scale) Human review rubric: Correctness, Evidence, Understanding, Testing, Communication.
status string (Enum) pending, claimed, reviewed, rejected, needs_revision Assessment evaluation lifecycle status.

๐Ÿ”„ Lifecycle State Machines

The GIG Work lifecycle (TaskSubmission document: submitted โ†’ reviewed โ†’ selected โ†’ work_started โ†’ delivered โ†’ approved โ†’ completed) and the Skill Hub lifecycle (SkillAssessment + embedded skillHubSkills: self_declared โ†’ pending_submission โ†’ claimed โ†’ verified_active with renewal, upgrade, and practice loops) are formally modeled in the Comprehensive Multi-Role State Machine (Deep Dive) under the Architecture section.

3. ๐Ÿ›ก๏ธ Integrity and Concurrency Controls

โšก Index Architecture & Performance Matrix

To eliminate collection scans, optimize real-time sorting, and enforce uniqueness invariants at the database level, SkillBridge uses targeted compound, partial, and multikey indexes:

Collection Index Specification Index Type Query / Invariant Optimized
students { trustScore: -1, createdAt: -1 } Compound Descending High-speed retrieval for Talent Search leaderboard ordered by merit.
students { location: 1 }, { skills: 1 } Single-field / Multikey Geolocation matching and self-declared skill lookups.
students { "skillHubSkills.name": 1 } Multikey Index Candidate matching against active company GIG skill requirements.
tasksubmissions { studentId: 1, companyId: 1, companyGigId: 1, opportunityId: 1 } Compound Unique (Partial) Invariance: Guarantees a student cannot submit duplicate records for the same GIG opportunity.
tasksubmissions { companyId: 1, "externalPayment.reference": 1 } Compound Unique (Partial) Idempotency: Prevents a company from recording the same external payment reference multiple times.
tasksubmissions { studentId: 1, status: 1, updatedAt: -1 } Compound Filtered Accelerates the student Earnings view without scanning unapproved or historical work.
networkconnections { pairKey: 1 } Unique Index Guarantees mutual connection uniqueness ([idA, idB].sort().join(':')) preventing duplicate requests.
skillassessments { status: 1, assignedReviewerId: 1, submittedAt: 1 } Compound Queue Index Powers the blind reviewer claim queue, serving oldest unassigned submissions first.
skillcatalogs { canonicalName: 1 }, { aliases: 1 } Unique / Multikey Prevents naming collisions and duplicate canonical standards across the platform catalog.

Concurrency & Transaction Guarantees

  • Optimistic Concurrency Control (OCC): High-contention entities (Student, TaskSubmission, SkillAssessment) use Mongoose optimisticConcurrency tracking the __v document version. If two reviewers claim a submission simultaneously or an applicant updates while a company reviews, the second write aborts with a VersionError, which the API maps to an explicit HTTP 409 Conflict rather than allowing silent data overwrite.
  • Multi-Document ACID Transactions: Handled through saveDocumentsAtomically() in server/utils/transaction.js. In production MongoDB replica set deployments, approving a skill assessment or logging a GIG payment updates the target record and the student's TrustScore event ledger inside a shared session. Both writes commit atomically, guaranteeing zero phantom approvals or orphaned score points.
  • Cryptographic Reference Protection: Sensitive identity identifiers (Aadhaar, DigiLocker, GSTIN, Udyam) are never stored in raw text. They are hashed using HMAC-SHA256 with a 32+ character server secret (identityVerificationHash) and hidden by default with { select: false } to prevent data exfiltration.

๐Ÿงฉ Comprehensive Features & Sub-Features Architecture

To provide an exhaustive, well-spaced architectural overview of the platform's multi-role capabilities, the structural hierarchies below break down all functional domains, workspaces, modules, and sub-features implemented across SkillBridge with full breathing room.


1. ๐ŸŽ“ Student Workspace Features Hierarchy

Student Workspace
โ”œโ”€โ”€ ๐Ÿ’ผ GIG Center
โ”‚   โ”œโ”€โ”€ ๐Ÿ” Browse GIGs (Filter by title, skill, location, budget, stipend, remote/hybrid/onsite)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“Š Informational Skill-Match Score (% profile skill match against active GIG requirements)
โ”‚   โ”œโ”€โ”€ ๐Ÿ”– Saved GIGs (Bookmark opportunities for later application)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Applied GIGs (Live application tracking across review, interview, and selection stages)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฉ Direct Invitations & Opportunities (Accept or decline direct company interview invites)
โ”‚   โ”œโ”€โ”€ ๐Ÿš€ Active GIGs (Access Project Workspace, kickoff brief, milestones, deliverable submission)
โ”‚   โ””โ”€โ”€ ๐Ÿ Completed GIGs (Archived deliverable records, settlement details, completion history)
โ”‚
โ”œโ”€โ”€ โšก TrustScore Engine
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ˆ Materialized Score & Tier Badge (0โ€“1000 scale: Foundation, Skilled, Proven, Distinguished)
โ”‚   โ”œโ”€โ”€ ๐Ÿ›ก๏ธ Hard Evidence Ceilings (Tier gate progress tracking for verified skills, GIGs, practice days)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“Š Category Pool Breakdown (Itemized credits: practice, skills, GIGs, quality, network, team-up)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“œ Immutable Audit Ledger (Normalized event history with credit/penalty breakdown)
โ”‚   โ”œโ”€โ”€ โณ Penalty Decay Engine (90-day automatic expiration for deduction events)
โ”‚   โ””โ”€โ”€ ๐Ÿ”ฅ Activity Streaks (Continuous practice streak counter with IST midnight rollover)
โ”‚
โ”œโ”€โ”€ ๐ŸŽฏ Skill Hub
โ”‚   โ”œโ”€โ”€ ๐Ÿ“š Governed Skill Catalog (Browse admin-published versioned standards)
โ”‚   โ”œโ”€โ”€ ๐Ÿงช Verification Submission (Submit proof URL and technical writeup against frozen criteria)
โ”‚   โ”œโ”€โ”€ ๐Ÿ”ผ Stage Upgrades (Apply for Intermediate, Pro, and Pro Mastery credential stages)
โ”‚   โ”œโ”€โ”€ โณ Renewal & Expiry Management (Countdown timer, early renewal re-verification)
โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ Daily Challenges (Technical tasks for streak continuity and practice points)
โ”‚   โ”œโ”€โ”€ ๐Ÿง  Retention Quizzes (Active verified skill recall prompts with anti-forgetting intervals)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‰ Dynamic Skill-Gap Report (Real-time comparison between student skills and market GIG demand)
โ”‚   โ””โ”€โ”€ ๐Ÿ™‹ Skill Mapping Requests (Request uncataloged self-declared skills to be added to catalog)
โ”‚
โ”œโ”€โ”€ ๐Ÿค Network & Team-Up
โ”‚   โ”œโ”€โ”€ ๐Ÿ‘ฅ Student Discovery (Search peers by verified credentials, badges, and TrustScore)
โ”‚   โ”œโ”€โ”€ ๐Ÿ”— Peer Connections (Bidirectional mutual relationships via unique pairKey)
โ”‚   โ”œโ”€โ”€ ๐Ÿ‘ฅ Team-Up Collaboration (Create multi-member project posts, set required skills, recruit teammates)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฌ Collaboration Invites (Send and receive Team-Up join requests and invites)
โ”‚   โ””โ”€โ”€ ๐Ÿ”’ Privacy-Protected Profiles (Contact details restricted to confirmed connections)
โ”‚
โ”œโ”€โ”€ ๐Ÿ’ฐ Earnings & Payout Ledger
โ”‚   โ”œโ”€โ”€ โณ Approved Earnings (Work approved by company, awaiting external payment)
โ”‚   โ”œโ”€โ”€ ๐Ÿ’ณ Completed Earnings History (Verified payment records with transaction timestamps)
โ”‚   โ”œโ”€โ”€ ๐Ÿงพ Payment Reference Auditing (Unique transaction token, method [UPI/NEFT/IMPS], amount)
โ”‚   โ””โ”€โ”€ ๐Ÿ›ก๏ธ Zero-Custody Ledger (Immutable audit log without platform wallet or escrow risk)
โ”‚
โ”œโ”€โ”€ ๐Ÿ‘ค Profile & Portfolio Editor
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Professional Bio & Metadata (Work style, collaboration focus, portfolio links)
โ”‚   โ”œโ”€โ”€ ๐Ÿ› ๏ธ Skills Management (Manage self-declared skills and display verified badges)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ Project Showcase (Rich project cards with live demo and GitHub repository links)
โ”‚   โ”œโ”€โ”€ ๐ŸŽฅ Introduction Video (Hosted intro video embed for company discovery)
โ”‚   โ””โ”€โ”€ ๐Ÿ‘๏ธ Public Profile Preview (Live preview of how companies view candidate credentials)
โ”‚
โ””โ”€โ”€ ๐Ÿ“‹ Practical Task Center
    โ”œโ”€โ”€ ๐Ÿ’ป Screening Task Interface (Complete practical interview assignments with draft auto-save)
    โ””โ”€โ”€ ๐Ÿ“ฆ Deliverable Submission Portal (Submit code repositories, documentation, and handle revision rework)

2. ๐Ÿข Company (MSME) Workspace Features Hierarchy

Company Workspace
โ”œโ”€โ”€ ๐Ÿ“Š My Business (Command Center)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ˆ Operational Dashboard (Live metrics: active GIGs, applicants, pending task reviews, active projects)
โ”‚   โ””โ”€โ”€ โšก Quick Navigation (One-click shortcuts to post GIGs, evaluate talent, and log payments)
โ”‚
โ”œโ”€โ”€ ๐Ÿ’ผ GIG Management
โ”‚   โ”œโ”€โ”€ โž• GIG Creation Wizard (Title, description, skills, budget, location, work mode [Remote/Hybrid/Onsite])
โ”‚   โ”œโ”€โ”€ ๐Ÿ”„ Status Lifecycle Controls (Draft, Hiring, Reviewing, In Progress, Completed, Closed)
โ”‚   โ””โ”€โ”€ ๐Ÿ“‹ Applicant Review Pipeline (Inspect applicant dossiers, review TrustScores, dispatch screening tasks)
โ”‚
โ”œโ”€โ”€ ๐ŸŽฏ Task Center & Assignment Library
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Reusable Assignment Templates (Author technical screening tasks with private review guides)
โ”‚   โ”œโ”€โ”€ ๐Ÿ” Candidate Task Reviewer (Grade practical submissions, issue structured rework feedback)
โ”‚   โ””โ”€โ”€ ๐Ÿ“จ Direct Opportunity Dispatcher (Directly invite talent from search to complete an assignment)
โ”‚
โ”œโ”€โ”€ ๐Ÿ”Ž Talent Search & Leaderboard
โ”‚   โ”œโ”€โ”€ ๐Ÿ† Verified Merit Leaderboard (Candidates ranked strictly by active verified skills and TrustScore)
โ”‚   โ”œโ”€โ”€ ๐Ÿ” Multi-Parameter Filtering (Filter by specific skill stage, minimum TrustScore, geolocation)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Verified Candidate Dossier (Inspect portfolio, rubric scores, verified credentials, intro video)
โ”‚   โ””โ”€โ”€ โœ‰๏ธ Direct Opportunity Offers (Send customized interview invitations to selected candidates)
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ Project Workspace
โ”‚   โ”œโ”€โ”€ ๐Ÿ—‚๏ธ Independent GIG Work Items (Discrete workspaces for each selected student)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“œ Kickoff Brief Authoring (Define project scope, deliverables, deadlines, and milestones)
โ”‚   โ”œโ”€โ”€ ๐Ÿšฉ Milestone Checkpoints (Publish milestone updates, track progress, mark checkpoints complete)
โ”‚   โ””โ”€โ”€ ๐Ÿ“ฆ Final Deliverable Review (Evaluate final code deliverables, request revision rework, approve work)
โ”‚
โ”œโ”€โ”€ ๐Ÿ’ณ External Payments & Settlement
โ”‚   โ”œโ”€โ”€ โณ Unpaid Deliverables Queue (Approved student work awaiting off-platform settlement)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Payment Logging Modal (Record UPI/NEFT reference, transaction date, and paid amount)
โ”‚   โ”œโ”€โ”€ ๐Ÿ›ก๏ธ Idempotent Reference Guard (Compound unique index preventing duplicate payment recording)
โ”‚   โ””โ”€โ”€ ๐Ÿ“œ Historical Settlement Ledger (Immutable audit trail of all completed payments)
โ”‚
โ””โ”€โ”€ ๐Ÿข Business Profile & Credibility
    โ”œโ”€โ”€ โœ๏ธ Profile Editor (Business name, GSTIN/Udyam reference, industry, description, website, contact)
    โ””โ”€โ”€ ๐Ÿ‘๏ธ Public Company Preview (Transparent credibility card visible to student applicants)

3. ๐Ÿ›ก๏ธ Platform Admin & Reviewer Workspace Features Hierarchy

Platform Admin & Reviewer Workspace
โ”œโ”€โ”€ ๐Ÿ“Š Platform Governance & Telemetry
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ˆ Platform Overview (Global counts: registered students, companies, published GIGs, review queue depth)
โ”‚   โ””โ”€โ”€ โฑ๏ธ Review Throughput Metrics (Track average turnaround times, claim expirations, approval ratios)
โ”‚
โ”œโ”€โ”€ ๐Ÿ“š Skill Catalog Governance
โ”‚   โ”œโ”€โ”€ โœ๏ธ Versioned Standard Authoring (Canonical skill names, categories, aliases, stage requirements)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“… Daily Practice Configuration (Author daily challenge prompts, retention questions, renewal duration)
โ”‚   โ””โ”€โ”€ ๐Ÿ”’ Snapshot Immutability (Strict versioning preventing retro-breaking existing assessment criteria)
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ฅ Skill Requests Management
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‹ Student Request Queue (Inspect uncataloged skill requests submitted by students)
โ”‚   โ””โ”€โ”€ โš–๏ธ Decision Engine (Approve as new catalog standard, map to existing alias, or reject with reason)
โ”‚
โ”œโ”€โ”€ ๐Ÿ•ถ๏ธ Blind Assessment Queue
โ”‚   โ”œโ”€โ”€ ๐Ÿ™ˆ PII-Stripped Evaluation Pool (Conceals student identity, college, email, and demographics)
โ”‚   โ”œโ”€โ”€ โฑ๏ธ Concurrency Claim Lease (Exclusive 240-minute TTL lease with automatic non-blocking timeout release)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ 5-Part Rubric Scoring (Correctness, Evidence, Understanding, Testing, Communication; 0โ€“100 scale)
โ”‚   โ”œโ”€โ”€ โš–๏ธ Multi-Path Decision Dispatcher:
โ”‚   โ”‚   โ”œโ”€โ”€ โœ… Approved (โ‰ฅ 70%): Verified badge awarded + TrustScore credit (+60/+100 pts)
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ” Needs Revision (< 70%): Actionable qualitative feedback returned for resubmission
โ”‚   โ”‚   โ””โ”€โ”€ โŒ Rejected (< 40% / Plagiarism): Closes submission and logs active reputation penalty (-10 pts)
โ”‚   โ””โ”€โ”€ ๐Ÿ“œ Complete Evaluation Audit Trail (Review history, timestamps, grading breakdown, reviewer logs)
โ”‚
โ””โ”€โ”€ ๐Ÿ‘ฅ Reviewer Staff Administration
    โ”œโ”€โ”€ ๐Ÿ‘ค Staff Account Provisioning (Create reviewer credentials with scoped permissions)
    โ”œโ”€โ”€ ๐Ÿ”‘ Role-Based Access Control (Granular privilege separation: Super Admin vs Queue-Only Reviewer)
    โ””โ”€โ”€ ๐Ÿ“Š Reviewer Performance Audit (Reviewer activity logs, grading distribution, lease discipline)

4. ๐ŸŒ Shared Platform Systems & Cross-Cutting Architecture

Shared Platform Systems & Cross-Cutting Architecture
โ”œโ”€โ”€ ๐ŸŒฟ Public Experience & Landing
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ข Merit-First Marketplace Showcase (Value proposition, ecosystem mechanics, demo portal)
โ”‚   โ”œโ”€โ”€ ๐Ÿ” Public Talent Directory (Search active verified talent with protected contact details)
โ”‚   โ””โ”€โ”€ ๐Ÿ›๏ธ Role-Based Authentication Portal (Isolated entry points for Students, Companies, and Admins)
โ”‚
โ”œโ”€โ”€ ๐Ÿ›ก๏ธ Security, Cryptography & Privacy Layer
โ”‚   โ”œโ”€โ”€ ๐Ÿ” Cryptographic Identity Fingerprinting (Salted HMAC-SHA256 for Aadhaar/DigiLocker and GSTIN/Udyam)
โ”‚   โ”œโ”€โ”€ ๐Ÿ›‘ Blind Queue PII Stripping (Protects candidate evaluation against gender, caste, college, and regional bias)
โ”‚   โ””โ”€โ”€ ๐Ÿšฆ Rate Limiting & Input Sanitization (Express route-scoped rate limiters, payload validation, XSS escaping)
โ”‚
โ”œโ”€โ”€ โšก Ledger Integrity & Concurrency Architecture
โ”‚   โ”œโ”€โ”€ ๐Ÿ”„ Optimistic Concurrency Control (Mongoose OCC with __v versioning preventing dirty writes)
โ”‚   โ”œโ”€โ”€ โš›๏ธ Multi-Document ACID Transactions (Atomic multi-collection commits across replica sets)
โ”‚   โ””โ”€โ”€ ๐Ÿ“œ Event-Driven TrustScore Ledger (Idempotent normalized event store with 90-day penalty decay)
โ”‚
โ””โ”€โ”€ ๐Ÿ”— Zero-Custody Settlement Philosophy
    โ”œโ”€โ”€ ๐Ÿšซ Non-Custodial Architecture (Platform holds zero funds, maintains no wallets, and charges zero escrow fees)
    โ””โ”€โ”€ ๐Ÿ“ Verified External Ledger (Companies pay students directly via UPI/NEFT and log immutable audit tokens)

๐Ÿ–ผ๏ธ Product Screens

๐ŸŒฟ Landing page

SkillBridge landing page full-length screenshot

The authenticated workspace captures below use the current interface at a consistent, readable desktop viewport. Illustrative read-only data is used where a screen needs example activity; no private account data is shown.

๐ŸŽ“ Student workspace

GIG Center

SkillBridge student GIG Center

TrustScore

SkillBridge student TrustScore

Skill Hub

SkillBridge student Skill Hub

Network

SkillBridge student network

Earning

SkillBridge student earning

My Profile

Editable profile Public profile preview
SkillBridge student profile editor SkillBridge public student profile preview

Task page

SkillBridge student task page

๐Ÿข Company workspace

My Business

SkillBridge company command center

GIG Management

SkillBridge company GIG management

Task Center

SkillBridge company Task Center

Talent Search

SkillBridge company Talent Search

Project Workspace

SkillBridge company Project Workspace

Payment

SkillBridge company payment

Business Profile

Editable business profile Public business profile preview
SkillBridge company business profile editor SkillBridge public business profile preview

๐Ÿ›ก๏ธ Platform Admin workspace

Overview

SkillBridge Platform Admin overview with live queues and recently published skills

Screenshot uses representative counts; live totals change with platform activity.

Skill Catalog

SkillBridge Platform Admin Skill Catalog

Skill Requests

SkillBridge Platform Admin Skill Requests

Review Queue

SkillBridge Platform Admin blind review queue

Review Team

SkillBridge Platform Admin Review Team

๐Ÿงฐ Tech Stack

Area Technology
Client React 19, React Router 7, Vite 8, CSS, Lucide icons
API Node.js 22, native HTTP server, REST-style JSON
Data MongoDB, Mongoose 9
Authentication Role-scoped bearer sessions and password hashing with Node.js crypto
Reliability Schema validation, optimistic concurrency, transactions, unique indexes, rate limits
Testing Node.js test runner, integration scripts, ESLint, Vite production build
Delivery Vercel frontend, Render backend, GitHub Actions CI

โš™๏ธ Local Setup

๐Ÿ“‹ Prerequisites

  • Node.js 22 or newer
  • npm
  • A local or hosted MongoDB deployment

1. ๐Ÿ“ฆ Clone and install

git clone https://github.com/debarghya131/SkillBridge.git
cd SkillBridge
cd server && npm ci
cd ../client && npm ci

2. ๐Ÿ”ง Configure the API

cd server
cp .env.example .env

Set a valid MONGO_URL in server/.env. The provided defaults are suitable for a local frontend on http://localhost:5173.

3. โ–ถ๏ธ Start both applications

Terminal 1:

cd server
npm run dev

Terminal 2:

cd client
npm run dev
Service Local URL
Web app http://localhost:5173
API http://localhost:5000
API readiness http://localhost:5000/ready

๐Ÿ” Configuration

๐Ÿ–ฅ๏ธ Server: server/.env

Variable Default Purpose
NODE_ENV development Runtime mode
MONGO_URL required MongoDB connection string
MONGO_DB_NAME required in production when the URI has no database path Explicit application database name; use skillbridge for a new deployment
MONGO_URL (production) replica set or mongos required Production startup checks transaction support for reviewed assessments, account deletion, and payment/TrustScore updates
DB_MAX_POOL_SIZE 20 Maximum MongoDB connections per API instance
DB_MIN_POOL_SIZE 0 Warm MongoDB connections retained per API instance
DB_MAX_IDLE_TIME_MS 30000 Idle MongoDB connection lifetime
DB_SERVER_SELECTION_TIMEOUT_MS 10000 MongoDB server-selection timeout
VERIFICATION_HASH_SECRET required in production 32+ character secret used to HMAC identity/business verification references
PORT 5000 API port
CORS_ORIGIN http://localhost:5173 Allowed client origin
SESSION_TTL_DAYS 30 Session lifetime
MAX_SESSIONS_PER_ACCOUNT 5 Concurrent session limit
REVIEW_CLAIM_TTL_MINUTES 240 Reviewer claim lease duration
MAX_REQUEST_BODY_BYTES 8000000 Maximum JSON request size
RATE_LIMIT_WINDOW_MS 60000 General rate-limit window
RATE_LIMIT_MAX_REQUESTS 120 General requests per window
AUTH_RATE_LIMIT_MAX_REQUESTS 12 Authentication requests per window
DAILY_USER_RATE_LIMIT_MAX_REQUESTS 2000 Authenticated requests per user per day
DAILY_SECTION_OPERATION_LIMIT 2 Limited writes per section per day
RATE_LIMITING_ENABLED true Set to false only for controlled local testing
LOG_LEVEL info Server log threshold

Always select the database explicitly. A MongoDB URI with no path and no MONGO_DB_NAME falls back to the database named test; production startup now rejects that ambiguous configuration. Adding MONGO_DB_NAME does not migrate existing collections, so back up and migrate any existing test data before changing a deployed service.

Create the first platform administrator from the server directory, then apply production indexes:

npm run reviewers:create -- --name "Platform Admin" --email admin@example.com --password "use-a-long-temporary-password" --role admin
npm run db:indexes -- --apply

๐ŸŒ Client: client/.env

VITE_API_URL=http://localhost:5000

VITE_API_URL must point to the deployed Render API in production. The API's CORS_ORIGIN must contain the corresponding Vercel/custom frontend origin.

MongoDB Operations

Production disables Mongoose automatic index creation. Run all commands from server/ against staging first, then production after a backup:

Command Purpose
npm run db:audit Read-only: inspect document sizes, inline media, and index storage.
npm run db:indexes Read-only: report existing and redundant indexes.
npm run db:indexes -- --apply Create declared indexes without removing custom indexes.
npm run db:indexes -- --apply --drop-redundant Also remove known redundant standalone indexes.
npm run db:migrate-verification Dry-run: find legacy raw verification references.
npm run db:migrate-verification -- --apply Replace raw references with HMAC fingerprints.
npm run demo:cleanup -- --confirm One-time: remove legacy database-backed showcase seed.

Showcase records are generated at runtime from server/config/showcaseFixtures.js and are never inserted into MongoDB. They carry reserved demo-* identifiers with demoData: true; writes to them are rejected with HTTP 403.

๐Ÿงช Quality Checks

cd server
npm run check
npm test

cd ../client
npm run lint
npm run build

For a browser smoke test of real student, company, and admin flows, run npx playwright install chromium --only-shell once from client, then npm run test:browser:demo. The test uses the configured MongoDB server but creates and removes its own sbqa_* database; it does not write to the test or skillbridge application databases.

GitHub Actions runs backend syntax checks and tests plus the production client build on every push and pull request.

๐Ÿšง Challenges Faced

  • Keeping student, company, and reviewer actions consistent across one work lifecycle.
  • Turning evidence and practical work into a fair, non-duplicated TrustScore signal.
  • Keeping a skill review tied to the requirements the student actually saw, even if an admin later edits the standard.
  • Managing responsive dashboards with dense operational workflows.

โœ… Solutions Implemented

  • Centralized the GIG, task, review, payment, and completion lifecycle in persistent backend records.
  • Used reviewer rubrics, transactions, unique indexes, and an event ledger to protect skill and TrustScore updates.
  • Captured each skill standard's version and criteria with the submission so blind reviewers assess the original requirements.
  • Built role-specific, responsive workspaces with shared API helpers and validation.

๐Ÿ”ฎ Future Improvements

  • Add notifications for invitations, review outcomes, milestones, and recorded payments.
  • Expand browser-level end-to-end coverage and admin observability.
  • Add managed media uploads and payment-proof/dispute records.
  • Integrate independent identity and business-reference checks and confirmation of company-reported payments.

๐Ÿ“š Learnings

  • Designing a two-sided marketplace requires explicit ownership and status transitions.
  • A reputation system needs auditable events, not client-side counters.
  • Account registration, reviewer-verified skills, and company-reported payments provide different levels of evidence and should not be presented as the same kind of verification.
  • Focused domain modules make a large React and Node.js application easier to evolve.

๐Ÿ‘ค Author Details

Debarghya Bandyopadhyay

Debarghya Bandyopadhyay

๐Ÿค Be My Friend

I always like to make new friends. Follow me on:

Portfolio LinkedIn LeetCode X Email GitHub

Email: debarghyabandyopadhyay191@gmail.com

About

Connecting Tier-2 and Tier-3 students with MSME opportunities through verified skills, gigs, networking, and TrustScore. ๐Ÿ’ก

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages