RustyJSONServer
RustyJSONServer is a fast, flexible mock API server powered by JSON configuration and a lightweight scripting language (rjscript).
It lets you build static or dynamic APIs without writing backend code โ perfect for prototyping, testing, and front-end development workflows.
๐ What it does
- Create endpoints using a simple JSON config
- Return static JSON or dynamic data via inline or external
.rjscriptfiles - Split large mock APIs into multiple files using nested configs
- Reload automatically when config or script files change
- Maintain state using a global in-memory cache
- Maintain persistent data using the integrated database
Designed to simulate realistic API behavior with minimal setup.
๐ฆ Quick Example
``โฆ
RustyJSONServer
RustyJSONServer is a fast, flexible mock API server powered by JSON configuration and a lightweight scripting language (rjscript).
It lets you build static or dynamic APIs without writing backend code โ perfect for prototyping, testing, and front-end development workflows.
๐ What it does
- Create endpoints using a simple JSON config
- Return static JSON or dynamic data via inline or external
.rjscriptfiles - Split large mock APIs into multiple files using nested configs
- Reload automatically when config or script files change
- Maintain state using a global in-memory cache
- Maintain persistent data using the integrated database
Designed to simulate realistic API behavior with minimal setup.
๐ฆ Quick Example
{
"port": 8080,
"resources": [
{
"path": "hello",
"methods": [
{
"method": "GET",
"response": {
"status": 200,
"body": {
"message": "Hello, World!"
}
}
}
]
}
]
}
๐จ CLI
Start a server:
rjserver serve --config config.json
๐ป VSCode Extension Included
The repository includes a VSCode extension providing syntax highlighting and error messages for .rjscript files
๐ Documentation
Full documentation and examples can be found in the
๐ /docs folder. ๐ /examples folder.
๐ค Contributing
Contributions and pull requests are welcome!
๐ License
MIT