Author & Architect: Robina Mirbahar (Google Developer Expert in Cloud & AI · Google Cloud Champion Innovator · Co-Author of AI Engineering)
📚 Companion Publications: DEV.to Featured Article · Live Web App · Hacktoberfest Week 2 (Side Hustle)
Core Stack: Local Open-Weights Google Gemma, TabPFN Tabular Foundation Model, 1-Click PDF Change-Order Engine, and Privacy-First Edge Inference.
Freelancers and boutique consultancies lose thousands of dollars when casual client messages quietly expand deliverables beyond the signed Statement of Work (SOW). I built FreelanceShield AI to compare incoming client requests against baseline SOW clauses automatically.
I combined local open-weights Gemma (for semantic contract diffing and 1-click Change Order drafting) with TabPFN foundation-model tabular inference to predict invoice late-payment probability.
Client contracts and pricing terms never leave your machine, ensuring strict NDA compliance.
Official Submission for the DEV Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle
Live Interactive Web App: https://robinamirbahar.github.io/freelanceshield-open-ai-side-hustle/
Independent developers, designers, and boutique agencies lose 22% of their annual income to unbilled "quick favors" (scope creep) and late-paying invoices.
Yet freelancers cannot paste confidential client Statements of Work (SOWs), NDAs, or private Slack threads into proprietary cloud LLMs without violating strict client confidentiality clauses.
FreelanceShield AI is a local-first, open-source AI micro-SaaS side hustle that runs 100% on the freelancer's machine (or private self-hosted container):
- 🦙 Local Open-Weight Scope Creep Radar (
Gemma 4 4B/Llama 3.2via Ollama & In-Browser Clause Engine): Compares incoming client Slack/email requests against the signed SOW clause-by-clause—flagging out-of-scope deliverables with zero bytes of NDA leakage. - 📄 1-Click Polite Counter-Proposal & Change Order PDF Generator: Automatically calculates billable hours at the freelancer's hourly rate and drafts a warm, high-converting Change Order (#CO-2026-089) with a printable PDF addendum.
- 📊 Prior Labs
TabPFN-3.5Zero-Shot Tabular Invoice Risk Forecaster: Feeds the freelancer's small historical invoice table (5–50 rows—where traditional XGBoost overfits!) into Prior Labs'TabPFNClassifierto predict the exact probability of a>14-day payment delayand recommend whether to require a 50% or 100% upfront milestone deposit.
flowchart LR
subgraph ClientInputs["🔒 100% Local NDA-Safe Inputs"]
SOW["📜 Signed SOW Clauses\n(Markdown / PDF)"]
MSG["💬 Sneaky Client Email\n('Quick free mobile app?')"]
CSV["📋 Historical Invoice Ledger\n(Small Tabular CSV)"]
end
subgraph OpenSourceAI["🧠 Open-Weight & Foundation Models"]
LLM["🦙 Local Ollama (gemma4:4b)\n+ Browser Clause-Diff Engine"]
TAB["📊 Prior Labs TabPFN-3.5\nZero-Shot Tabular Risk Classifier"]
end
subgraph SideHustleOutputs["💰 Revenue Recovery Outputs"]
DIFF["🚨 Clause Violation Breakdown\n(+29 hrs / +$3,625 Caught)"]
CO["📄 1-Click Change Order PDF\n& Polite Counter-Proposal"]
RISK["📈 Late-Payment Risk Score\n& Q4 Cashflow Forecast"]
end
SOW --> LLM
MSG --> LLM
CSV --> TAB
LLM --> DIFF
DIFF --> CO
DIFF --> TAB
TAB --> RISK
Open https://robinamirbahar.github.io/freelanceshield-open-ai-side-hustle/ or open index.html directly in any modern browser. If you have Ollama running locally on http://localhost:11434, switch the top-bar dropdown to 🦙 Local Ollama API!
git clone https://github.com/RobinaMirbahar/freelanceshield-open-ai-side-hustle.git
cd freelanceshield-open-ai-side-hustle
# 1. Pull open-weight Gemma 4 4B via Ollama
ollama pull gemma4:4b
# 2. Install FastAPI + Prior Labs TabPFN
pip install -r requirements.txt
# 3. Start the local API server
uvicorn agent_backend:app --reload --port 8000