{"id":28174365,"url":"https://github.com/2bad/mire","last_synced_at":"2025-05-15T22:16:43.265Z","repository":{"id":253031989,"uuid":"842216371","full_name":"2BAD/mire","owner":"2BAD","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-12T06:58:32.000Z","size":639,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T07:43:27.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2BAD.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-13T23:00:42.000Z","updated_at":"2025-05-12T06:57:26.000Z","dependencies_parsed_at":"2024-08-14T03:28:40.882Z","dependency_job_id":"2f479bf7-78eb-48ff-8b6a-45755022e048","html_url":"https://github.com/2BAD/mire","commit_stats":null,"previous_names":["2bad/mire"],"tags_count":2,"template":false,"template_full_name":"2BAD/ts-lib-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2BAD%2Fmire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2BAD%2Fmire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2BAD%2Fmire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2BAD%2Fmire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2BAD","download_url":"https://codeload.github.com/2BAD/mire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254430309,"owners_count":22069909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-15T22:16:05.606Z","updated_at":"2025-05-15T22:16:43.261Z","avatar_url":"https://github.com/2BAD.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mire - Performance Testing API\n\nThis project provides a simple API for simulating various performance scenarios, including CPU load, memory usage, and I/O operations. It's designed to help developers and QA engineers test the performance and resilience of their systems under different conditions.\n\n## Table of Contents\n\n- [Mire - Performance Testing API](#mire---performance-testing-api)\n  - [Table of Contents](#table-of-contents)\n  - [Features](#features)\n  - [Installation](#installation)\n  - [Usage](#usage)\n  - [API Endpoints](#api-endpoints)\n  - [Configuration](#configuration)\n  - [Contributing](#contributing)\n  - [License](#license)\n\n## Features\n\n- Simulate CPU-intensive operations\n- Create controlled memory leaks\n- Simulate file I/O operations\n- Simulate network requests\n- Introduce controlled delays in responses\n\n## Installation\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/2bad/mire.git\n   cd mire\n   ```\n\n2. Install dependencies:\n   ```\n   npm install\n   ```\n\n3. Start the server:\n   ```\n   npm run start\n   ```\n\nThe server will start on `http://localhost:3000` by default.\n\n## Usage\n\nYou can interact with the API using any HTTP client. Here are some example requests using `curl`:\n\n1. Check if the server is running:\n   ```\n   curl http://localhost:3000/ping\n   ```\n\n2. Simulate a delayed response:\n   ```\n   curl http://localhost:3000/delay/2000\n   ```\n\n3. Perform a CPU-intensive operation:\n   ```\n   curl http://localhost:3000/cpu/compute/40\n   ```\n\n## API Endpoints\n\n- `/ping`: Check if server is running\n- `/delay/:ms`: Delayed response\n- `/cpu/compute/:n`: Compute nth Fibonacci number\n- `/cpu/load`: Simulate random CPU usage\n- `/memory`: Get current memory usage\n- `/memory/leak`: Create a memory leak\n- `/memory/allocate`: Allocate memory\n- `/io/read`: Simulate file read operation\n- `/io/write`: Simulate file write operation\n- `/io/network`: Simulate network request\n\nFor more detailed information about the API endpoints, refer to the OpenAPI specification file: `openapi.yml`.\n\n## Configuration\n\nThe following environment variables can be used to configure the server:\n\n- `PORT`: The port number on which the server will listen (default: 3000)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2bad%2Fmire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2bad%2Fmire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2bad%2Fmire/lists"}