An open API service indexing awesome lists of open source software.

https://github.com/puter-apps/api-tester

A simple web-based API testing tool that allows you to test HTTP APIs, similar to Postman or Insomnia.
https://github.com/puter-apps/api-tester

api bruno insomnia postman puter puter-app puter-networking

Last synced: 10 months ago
JSON representation

A simple web-based API testing tool that allows you to test HTTP APIs, similar to Postman or Insomnia.

Awesome Lists containing this project

README

          


API Tester

A simple web-based API testing tool that allows you to test HTTP APIs, similar to Postman or Insomnia.


Screenshot


## Features

- **Multiple HTTP Methods**: Support for GET, POST, PUT, DELETE, PATCH, HEAD, and OPTIONS requests
- **Custom Headers**: Add and manage custom HTTP headers for your requests
- **Request Body Support**: Send JSON, text, or other data in request bodies
- **Response Visualization**: View formatted JSON responses with syntax highlighting
- **Response Metrics**: See response status codes, status text, and response times
- **Modern UI**: Clean, responsive interface that works on all devices
- **No Installation Required**: Runs directly in your browser


## Getting Started

Clone the repository:

```bash
git clone https://github.com/puter-apps/api-tester.git
```

and open the `/src/index.html` file in your browser.


## How It Works

API Tester leverages [**Puter.js**](https://developer.puter.com/) to overcome the fundamental challenge of cross-origin requests in web browsers. Traditional web applications are restricted by CORS (Cross-Origin Resource Sharing) policies, which prevent direct API calls to external domains from browser-based JavaScript.

Specifically, the application uses [`puter.net.fetch()`](https://docs.puter.com/Networking/fetch/) to make cross-origin HTTP requests and bypass CORS restrictions. This allows the app to test any public API endpoint without server-side configuration.


## License

MIT