devfill

# ⚡ DevFill ### Smart Dummy Form Filler for Web Developers & QA Engineers [![Edge Add-ons](https://img.shields.io/badge/Edge_Add--ons-Install_DevFill-0078D7?style=for-the-badge&logo=microsoftedge&logoColor=white)](https://microsoftedge.microsoft.com/addons/detail/nbemampnklgjngbilbpihongbbejhalp) [![Manifest V3](https://img.shields.io/badge/Chrome_Extension-Manifest_V3-4285F4?style=for-the-badge&logo=googlechrome&logoColor=white)](https://developer.chrome.com/docs/extensions/mv3/intro/) [![TypeScript](https://img.shields.io/badge/TypeScript-5.4-3178C6?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/) [![Vite](https://img.shields.io/badge/Vite-5.0-646CFF?style=for-the-badge&logo=vite&logoColor=white)](https://vitejs.dev/) [![pnpm](https://img.shields.io/badge/pnpm-12.x-F69220?style=for-the-badge&logo=pnpm&logoColor=white)](https://pnpm.io/) [![License: MIT](https://img.shields.io/badge/License-MIT-emerald?style=for-the-badge)](LICENSE) **Stop typing the same dummy data into form fields 50 times a day.** Fill any complex web form in **18ms** with realistic, framework-reactive data. [Features](#-key-features) • [Installation](#-installation--loading-in-browser) • [Hotkeys](#-keyboard-shortcuts) • [Framework Support](#-how-devfill-solves-the-reactvue-problem) • [Presets](#-data-presets)

💡 Why DevFill?

Most form-filling extensions break modern web applications built with React, Vue, Inertia.js, or Angular because setting input.value = "..." does not notify internal framework state trackers (useState).

DevFill solves this fundamentally:


✨ Key Features


⌨️ Keyboard Shortcuts

Shortcut Action Scope
Alt + Shift + F Fill Active Form Fills all visible fields on current page
Alt + Shift + C Clear Active Form Resets all form fields and dropdowns
Right Click Single Field Inject Context menu on targeted input

🚀 Installation & Loading in Browser

Option 1: Official Store Install (Easiest)

Install directly from the official store for Microsoft Edge, Brave, Chrome, and any Chromium browser: 👉 Get DevFill on Microsoft Edge Add-ons

Option 2: Load Unpacked from Source (Developer Mode)

You can build and run locally in 30 seconds:

  1. Clone or download this repository:
    git clone https://github.com/sajusun/devfill.git
    cd devfill
    
  2. Install dependencies and build:
    pnpm install
    pnpm run build
    
  3. Load into Chrome:
    • Open Chrome and navigate to chrome://extensions/
    • Enable Developer mode (toggle in the top-right corner)
    • Click Load unpacked
    • Select the devfill/dist folder

🎉 DevFill is now installed and active! Pin it to your toolbar or press Alt + Shift + F on any form.


🛠️ How DevFill Solves the React/Vue Problem

In React 16+, inputs use an internal value tracker. Simply writing:

// ❌ FAILS IN REACT/VUE
input.value = "John Doe";
input.dispatchEvent(new Event('input'));

does not trigger onChange because React’s prototype value tracker sees no change.

DevFill invokes the native browser setter directly on the prototype:

// ✅ DEVFILL SOLUTION
const valueSetter = Object.getOwnPropertyDescriptor(
  window.HTMLInputElement.prototype,
  'value'
)?.set;

if (valueSetter) {
  valueSetter.call(element, dummyValue);
} else {
  element.value = dummyValue;
}

element.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
element.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
element.dispatchEvent(new Event('blur', { bubbles: true, composed: true }));

📂 Project Architecture

devfill/
├── manifest.json              # Chrome Manifest V3 schema
├── package.json               # pnpm build pipeline & scripts
├── tsconfig.json              # TypeScript strict configuration
├── vite.config.ts             # Vite multi-entry builder
├── scripts/
│   ├── build.js               # Multi-target bundler (IIFE content script, ES background)
│   └── generate-icons.js      # Zero-dependency PNG icon generator
├── public/icons/              # High-res 16, 32, 48, 128px PNG icons
├── src/
│   ├── types/index.ts         # TypeScript interfaces & message contracts
│   ├── generator/             # Zero-dependency, ultra-fast dummy data engine
│   │   ├── names.ts           # Global + BD first/last names
│   │   ├── contacts.ts        # Emails, +880 & US phones, addresses
│   │   ├── words.ts           # Companies, jobs, UUIDs, dates, passwords
│   │   └── index.ts           # Unified generator facade
│   ├── content/               # Webpage Content Script
│   │   ├── detector.ts        # Heuristic field classifier
│   │   ├── filler.ts          # Reactive DOM engine (React/Vue compatible)
│   │   └── index.ts           # Tab coordinator & floating toast
│   ├── background/            # Manifest V3 Service Worker
│   │   └── index.ts           # Shortcut listener & context menus
│   ├── popup/                 # Sleek dark popup UI
│   │   ├── popup.html
│   │   ├── popup.css
│   │   └── popup.ts
│   └── options/               # Full preferences & settings page
│       ├── options.html
│       ├── options.css
│       └── options.ts
└── dist/                      # Ready-to-load unpacked Chrome Extension

💻 Local Development

Run development watcher:

pnpm run dev

Run TypeScript verification:

pnpm exec tsc --noEmit

Build for production:

pnpm run build

👨‍💻 Developer & Credits

DevFill is crafted with ❤️ by Sakhawat Hossain.


📄 License

This project is open-source and available under the MIT License. Built with ❤️ by Sakhawat Hossain.