A Node.js server for creating dynamic, fake JSON APIs with configurable endpoints and realistic mock data.
Dyson is a Node.js server that creates dynamic, fake JSON APIs for frontend development and testing. It solves the problem of relying on static JSON files or unavailable backend services by allowing developers to define configurable endpoints that generate realistic mock data based on request parameters.
Frontend developers, full-stack engineers, and QA teams who need a lightweight, programmable mock server for prototyping, testing, or developing client-side applications without a live backend.
Developers choose Dyson for its simplicity, flexibility, and powerful templating system that supports dynamic data generation, making it faster to set up than static mocks and more controllable than real backend dependencies during development.
Node server for dynamic, fake JSON.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Endpoints generate JSON based on path parameters, query strings, and request bodies, allowing highly adaptable mock data without static files.
Easily integrates with libraries like Faker.js and Chance.js for realistic data generation, as shown in template examples using functions.
Defining endpoints with simple JavaScript objects lets developers spin up a mock server in minutes, aligning with its rapid prototyping philosophy.
Supports features like delayed responses, proxy fallbacks, CORS, and custom status codes, providing tools for varied testing scenarios.
Responses are generated statelessly per request; simulating databases or multi-step workflows requires custom middleware, which isn't well-documented.
Running over SSL requires manual provision of certificates, as noted in the README, adding overhead for secure local development.
Native GraphQL mocking isn't included; it relies on the external dyson-graphql package, complicating setup for GraphQL-first projects.