tweak: mock and modify HTTP requests
tweak lets you mock and modify HTTP requests in the browser for testing, development, and demos.


Description
tweak is a browser extension that enables developers to mock and modify HTTP requests directly within the browser, without needing external tools or proxies. It is designed to streamline testing, development, and demonstration of web applications by giving you control over network traffic. With tweak, you can intercept API calls and requests to simulate various server responses, test edge cases, or debug issues efficiently.
Core Features
- Modify Responses and Status Codes: You can alter the response body, headers, and HTTP status codes of intercepted requests. This is useful for testing how your application handles different server responses, such as error codes (e.g., 404 or 500) or custom headers, without modifying the backend.
- Modify Request Payload and Headers (Premium): Premium users can also edit the request payload and headers before they are sent. This helps in testing form submissions, API parameters, or authentication tokens without affecting the actual client code.
- Delay Individual Requests: Add artificial delays to specific requests to simulate slow network conditions or test loading states and timeouts in your application.
- Export and Import Rules: Save your configured rules as a file and share them with team members or across different environments. This facilitates collaboration and ensures consistent testing setups.
- Background Request Search: The extension can automatically search for requests in the background, allowing you to import them into your rule set without manual entry. This speeds up the process of creating rules for existing API endpoints.
- Custom JavaScript for Response Modification (Premium): Premium users can write custom JavaScript to dynamically modify response data. This allows complex transformations, such as generating mock data based on request parameters or simulating server-side logic.
- Collections for Workspace Organization (Premium): Organize your rules into collections to manage different projects or scenarios. This keeps your workspace tidy and makes it easy to switch between configurations.
- Global Custom Variables (Premium): Define variables that can be reused across multiple rules, enabling bulk changes. For example, you can set a base URL variable and update it in one place to affect all rules.
- Random Data Generators (Premium): Create mock data using built-in random generators for fields like names, emails, or numbers. This is helpful for populating test responses with realistic but fake data.
- Breakpoints and Logpoints (Premium): Debug requests by setting breakpoints that pause execution, or logpoints that log request details to the console without stopping. This aids in inspecting request flow and data.
Note: tweak cannot replace documents such as HTML, CSS, or images. It is focused solely on HTTP request interception and modification for API and data requests. The extension is available for free with premium features that enhance customization and workflow management. For more information, refer to the getting started guide, FAQs, changelog, or contact support.