WebDev-Dataset / README.md
Adarshddata's picture ameeq-ul-haq's picture
Duplicate from ameeq-ul-haq/WebDev-Dataset
4f3c97e
|
Raw History Blame Contribute Delete
11 kB
metadata
license: mit
task_categories:
  - text-generation
language:
  - en
tags:
  - code
  - web-development
  - full-stack
  - python
  - flask
  - fastapi
  - sqlite
  - html
  - css
  - javascript
  - instruction-tuning
  - llm-finetuning
pretty_name: Full-Stack WebDev Multi-File Dataset (100 Apps)
size_categories:
  - n<1K

WebDev-Dataset: 100 Full-Stack Web Apps for LLM Fine-Tuning

A fine-tuning dataset of 100 complete, working, multi-file full-stack web applications.

Each sample contains a full project — backend routes, database schema, HTML frontend, CSS styling, and JavaScript — all in a single training example. This teaches a model to generate a whole working project, not just isolated snippets.


Dataset Overview

  • Total Samples: 100 unique full-stack web applications
  • File: dataset.json (~462 KB)
  • Format: Alpaca JSON (instruction / input / output)
  • Code: Every sample is fully runnable with no placeholders or skipped logic

Format

[
  {
    "instruction": "Build a full-stack ... web app using Flask and SQLite ...",
    "input": "",
    "output": "<!-- FILE: database.py -->\n...\n<!-- FILE: app.py -->\n...\n<!-- FILE: templates/index.html -->\n...\n<!-- FILE: static/style.css -->\n...\n<!-- FILE: static/script.js -->\n..."
  }
]

Fields

Field Type Description
instruction string The prompt describing what app to build, the tech stack, and file structure
input string Always empty ""
output string The complete multi-file source code

File Delimiter

Files inside the output are separated by:

<!-- FILE: path/to/file.ext -->
[source code]

<!-- FILE: path/to/another_file.ext -->
[source code]

Tech Stack

Each app has 4-5 files:

├── database.py         # SQLite connection and table setup
├── app.py / main.py    # Flask or FastAPI routes
├── templates/
│   └── index.html      # HTML frontend
└── static/
    ├── style.css        # CSS styling
    └── script.js        # JavaScript (Fetch API)
  • Backend: Python - Flask or FastAPI
  • Database: SQLite3
  • Frontend: HTML5, Vanilla CSS, Vanilla JavaScript (ES6+ async/await)

App Catalog (100 Apps)

Batch 1: Productivity, Project Management & Habits (Apps 01-10)
  1. Inventory & Order Management (Flask + SQLite)
  2. Kanban Task Board (FastAPI + SQLite)
  3. Markdown Note Taker with Tags (Flask + SQLite)
  4. Personal Budget & Expense Tracker (Flask + SQLite)
  5. Recipe Box & Weekly Meal Planner (FastAPI + SQLite)
  6. Habit Tracker & Daily Streaks (Flask + SQLite)
  7. Mini CRM & Sales Pipeline (FastAPI + SQLite)
  8. Appointment & Booking Scheduler (Flask + SQLite)
  9. Help Desk & IT Support Tickets (Flask + SQLite)
  10. Community Polling & Voting (FastAPI + SQLite)
Batch 2: Education, Fitness & E-Commerce (Apps 11-20)
  1. Flashcard Study System (Flask + SQLite)
  2. Job Application Tracker (Flask + SQLite)
  3. URL Shortener & Click Analytics (FastAPI + SQLite)
  4. Fitness Workout Log & PR Tracker (Flask + SQLite)
  5. E-Commerce Product Catalog & Cart (Flask + SQLite)
  6. Community Discussion Forum (Flask + SQLite)
  7. Live Event Q&A Dashboard (FastAPI + SQLite)
  8. Digital Bookmark & Link Archiver (Flask + SQLite)
  9. Student Gradebook & GPA Calculator (Flask + SQLite)
  10. Project Time Tracking & Timesheets (FastAPI + SQLite)
Batch 3: Real Estate, Media & Dev Tools (Apps 21-30)
  1. Real Estate Property Listings (Flask + SQLite)
  2. Library Book Checkout System (Flask + SQLite)
  3. Simple Blog with Comments (Flask + SQLite)
  4. Weather & Air Quality Station (Flask + SQLite)
  5. User Authentication & Session Portal (Flask + SQLite)
  6. Password Vault & Secret Stash (FastAPI + SQLite)
  7. Movie & Series Watchlist (Flask + SQLite)
  8. Employee Directory & Teams (Flask + SQLite)
  9. Cloud Asset & File Metadata Catalog (FastAPI + SQLite)
  10. Code Snippet Pastebin (Flask + SQLite)
Batch 4: Freelance, Dining & Community (Apps 31-40)
  1. Freelance Project Milestone & Invoice Tracker (Flask + SQLite)
  2. Restaurant Table Reservation & Menu (FastAPI + SQLite)
  3. Podcast Episode Tracker (Flask + SQLite)
  4. Vehicle Maintenance & Fuel Mileage Log (Flask + SQLite)
  5. Daily Journal & Mood Tracker (Flask + SQLite)
  6. SaaS Feature Request & Upvote Board (FastAPI + SQLite)
  7. Classroom Quiz Maker & Tester (Flask + SQLite)
  8. Hotel Room Reservation Engine (Flask + SQLite)
  9. Donation & Fundraising Campaign Tracker (FastAPI + SQLite)
  10. Pet Adoption & Shelter Registry (Flask + SQLite)
Batch 5: Health, Commerce & Utilities (Apps 41-50)
  1. Vinyl & Music Collection Curator (Flask + SQLite)
  2. Pharmacy Prescription Reminder (FastAPI + SQLite)
  3. Conference Agenda & Speaker Schedule (Flask + SQLite)
  4. Newsletter Subscription & Audience Manager (Flask + SQLite)
  5. Warehouse Shipment & Logistics Tracking (FastAPI + SQLite)
  6. Smart Home Appliance Controller (Flask + SQLite)
  7. Travel Itinerary Planner & Packing Checklist (Flask + SQLite)
  8. Customer Feedback & NPS Survey (FastAPI + SQLite)
  9. Digital Contact & Business Card Rolodex (Flask + SQLite)
  10. Online Timed Auction & Bidding System (FastAPI + SQLite)
Batch 6: Memberships, Events & Dev Platforms (Apps 51-60)
  1. Gym Membership & Member Check-in Tracker (Flask + SQLite)
  2. Event Ticketing & RSVP Guest Manager (FastAPI + SQLite)
  3. Bug Bounty & Vulnerability Disclosure Log (Flask + SQLite)
  4. API Key & Webhook Developer Token Manager (FastAPI + SQLite)
  5. Freelance Gig & Services Marketplace Catalog (Flask + SQLite)
  6. Online Book Club & Reading Goal Shelf (Flask + SQLite)
  7. Community Equipment Rental & Tool Library (FastAPI + SQLite)
  8. Medical Clinic Patient Triage & Intake Portal (Flask + SQLite)
  9. Crypto Asset Portfolio & Watchlist Tracker (FastAPI + SQLite)
  10. Artisanal Coffee Shop Barista Order Queue (Flask + SQLite)
Batch 7: Operations, Culture & Environment (Apps 61-70)
  1. SaaS Software License & Renewal Spend Tracker (FastAPI + SQLite)
  2. Art Gallery Exhibition & Contemporary Showcase (Flask + SQLite)
  3. Employee Shift & Weekly Roster Scheduler (FastAPI + SQLite)
  4. E-Commerce RMA Product Returns Desk (Flask + SQLite)
  5. Podcast Sponsorship & Audio Ad Campaign Pipeline (Flask + SQLite)
  6. Language Learning Vocabulary Builder & Flash Quiz (FastAPI + SQLite)
  7. Indoor Plant & Garden Care Watering Log (Flask + SQLite)
  8. Infrastructure Ping & Health Monitor (FastAPI + SQLite)
  9. Car Rental Fleet & Reservation Engine (Flask + SQLite)
  10. Crowdfunding Backer & Tiered Campaign Tracker (Flask + SQLite)
Batch 8: Community, Property & Hobbies (Apps 71-80)
  1. Alumni Network Directory & Mentorship Hub (Flask + SQLite)
  2. Home Renovation & Contractor Expense Log (FastAPI + SQLite)
  3. Community Food Pantry & Donation Inventory (Flask + SQLite)
  4. Scientific Paper Reference & Citation Library (Flask + SQLite)
  5. Conference Booth Badge Scanner & Lead Capture (FastAPI + SQLite)
  6. Apartment Tenant Repair Maintenance Request Portal (Flask + SQLite)
  7. Video Game Backlog & Achievement QuestLog (Flask + SQLite)
  8. Dog Daycare & Pet Boarding Reservation (FastAPI + SQLite)
  9. Recipe Macro & Nutritional Calorie Calculator (Flask + SQLite)
  10. Micro-SaaS Product Launch Waitlist & Referral Leaderboard (FastAPI + SQLite)
Batch 9: Logistics, Entertainment & Workflows (Apps 81-90)
  1. Music Festival Stage Lineup & Timetable Scheduler (Flask + SQLite)
  2. Warehouse Handheld SKU & Bin Location Locator (FastAPI + SQLite)
  3. Academic Course Syllabus & Homework Submission Portal (Flask + SQLite)
  4. Monthly Gourmet Subscription Box Preference Picker (Flask + SQLite)
  5. Veterinary Clinic Vaccine Record & Booster Log (FastAPI + SQLite)
  6. Coworking Space Hot-Desk Floorplan Booking (Flask + SQLite)
  7. Professional Photography Session Inquiry & Portfolio (Flask + SQLite)
  8. Print-On-Demand Order Fulfillment Status Queue (FastAPI + SQLite)
  9. Local Neighborhood Lost & Found Bulletin Board (Flask + SQLite)
  10. Corporate Employee Expense Reimbursement Approval (FastAPI + SQLite)
Batch 10: Specialities, Tools & Status (Apps 91-100)
  1. Antique & Art Appraisal Valuation Request Desk (Flask + SQLite)
  2. Sports League Tournament Bracket & Match Scores (FastAPI + SQLite)
  3. Enterprise IT Asset Laptop & Peripheral Checkout (Flask + SQLite)
  4. Reserve Wine Cellar Inventory & Tasting Notes (Flask + SQLite)
  5. Public SaaS System Status Page & Incident Broadcast (FastAPI + SQLite)
  6. Banquet Catering Menu & Headcount Planner (Flask + SQLite)
  7. Bicycle Repair Shop Work Order Workbench (FastAPI + SQLite)
  8. Residential Solar Panel Generation & Savings Monitor (Flask + SQLite)
  9. DesignProof Client Mockup Review & Annotation (FastAPI + SQLite)
  10. Self-Hosted Read-Later Queue & Bookmarklet Saver (Flask + SQLite)

Loading the Dataset

from datasets import load_dataset

dataset = load_dataset("json", data_files="dataset.json")
print(dataset["train"][0])

Fine-Tuning (Alpaca Format)

def format_prompt(example):
    instructions = example["instruction"]
    outputs = example["output"]
    texts = []
    for inst, out in zip(instructions, outputs):
        text = f"### Instruction:\n{inst}\n\n### Response:\n{out}"
        texts.append(text)
    return {"text": texts}

formatted = dataset.map(format_prompt, batched=True)

Works directly with Unsloth, LLaMA-Factory, and any Alpaca-compatible trainer.


Extracting Generated Code to Files

import os, re, json

def extract_files(output_string, target_dir="./generated_app"):
    pattern = r"<!-- FILE: (.*?) -->\n(.*?)(?=(?:<!-- FILE:|\Z))"
    matches = re.findall(pattern, output_string, re.DOTALL)
    for path, content in matches:
        full_path = os.path.join(target_dir, path.strip())
        os.makedirs(os.path.dirname(full_path), exist_ok=True)
        with open(full_path, "w", encoding="utf-8") as f:
            f.write(content.strip() + "\n")
        print(f"Created: {full_path}")

with open("dataset.json", "r", encoding="utf-8") as f:
    sample = json.load(f)[0]

extract_files(sample["output"], target_dir="./my_app")

License

MIT License - free to use, modify, and fine-tune on for any purpose.