PunitDh/JsonDB ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple local JSON file database in JavaScript with an API for reading, writing, updating, and deleting data.
I want it to feel like a tiny lightweight backend I can run locally, where data is stored in a JSON file instead of a real database. Please make it easy to use from code and include whatever routes or endpoints are needed so I can create, fetch, edit, and remove records cleanly.
If it makes sense, add a small example setup, basic validation, and a simple way to configure the data file path. Keep it easy to understand and use, and if you need anything current from the docs or latest Node behavior, look it up online.