A web server that serves static responses from HTTP dump files, enabling API mocking, testing, and prototyping without a backend.
DeepfakeHTTP is a web server that serves responses from HTTP dump files, enabling developers to mock APIs, test client applications, and prototype backend interactions without writing server code. It matches incoming requests against pre-recorded HTTP exchanges in text files and returns the corresponding responses, supporting REST, GraphQL, and other API styles.
Developers and testers who need to mock APIs for frontend development, integration testing, or prototyping before backend implementation. It's also useful for those hacking and fine-tuning HTTP communications.
It offers a dependency-free, single-file executable with no installation or configuration, making API mocking extremely simple. Its support for templates, wildcards, external content, and dynamic handlers provides flexibility beyond basic static file serving.
DeepfakeHTTP is a web server that uses HTTP dumps as a source for responses.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
As a single-file executable with no dependencies, it can be run immediately with Java, eliminating setup overhead, as highlighted in the philosophy and features list.
Supports OpenAPI-style path templates and wildcards in headers/queries, enabling flexible request-response mapping without code, detailed in the features section.
Includes CGI, XGI, and JavaScript handlers for generating responses on the fly, plus external content fetching from URLs, files, or data URIs, as shown in the optional headers appendix.
Features a self-hosted OpenAPI client that automatically documents mock APIs, aiding in development and testing, with options like --openapi-path for customization.
Requires Java 15 or higher, which can be a barrier in environments without Java or with version conflicts, as noted in the prerequisites.
Configuring APIs via raw HTTP dump files is manual and prone to errors, especially for complex or numerous endpoints, lacking visual editing tools.
Being a niche tool, it has fewer community resources, plugins, and integrations compared to popular alternatives like Mockoon or json-server.