Skip to content

PittsGitHub/MockOff

Repository files navigation

🧌 Mock Off

A JSON mock data builder whether you’re prototyping, testing, or just mocking around Mock Off helps you generate and shape JSON structures with live preview, type inference, exporting to a .json file or direct to clipboard.


Features

  • 🔁 Quick tabbed input
  • 🧩 Unique Key validation
  • 🧠 Supports type inference for values and arrays
  • 💾 One-click export or copy of generated .json with total item count
  • 🧌 Mock object generation

✨ Up Coming Features ✨

  • 🧬 Nested objects
  • 📂 Drag and drop .json for mock generation

📦 Getting Started

git clone https://github.com/PittsGitHub/MockOff.git
cd MockOff
npm install
npm run dev

Example Input & Output

Quick input: input key => tab => input value => tab => enter key => input key 🔁

mockOff

{
  "totalItemCount": 500,
  "items": [
    {
      "id": 1,
      "name": "Howard Grady",
      "age": 67,
      "borks": true,
      "strArray": [
        "below amidst",
        "abseil because",
        "old within"
      ],
      "numArray": [
        980,
        262,
        262,
        397,
        710
      ]
    },
    {
      "id": 2,
      "name": "Marcos Kozey",
      "age": 79,
      "borks": false,
      "strArray": [
        "incidentally reproachfully",
        "trust now",
        "as geez"
      ],
      "numArray": [
        343,
        8,
        73,
        607,
        950
      ]
    }
    ...
  ]
}

About

A JSON mock data builder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published