{"id":36947198,"url":"https://github.com/jonathanhecl/bru-ship","last_synced_at":"2026-04-24T00:01:57.160Z","repository":{"id":327179130,"uuid":"1108134553","full_name":"jonathanhecl/bru-ship","owner":"jonathanhecl","description":"A lightweight, powerful CLI tool written in Go to convert Bruno API collections (.bru files) into Postman Collection v2.1 format.","archived":false,"fork":false,"pushed_at":"2025-12-03T05:11:33.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-05T01:03:12.272Z","etag":null,"topics":["api","bru","bruno","doc","export","json","postman"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathanhecl.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-02T04:19:04.000Z","updated_at":"2025-12-03T19:14:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jonathanhecl/bru-ship","commit_stats":null,"previous_names":["jonathanhecl/bru-ship"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jonathanhecl/bru-ship","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanhecl%2Fbru-ship","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanhecl%2Fbru-ship/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanhecl%2Fbru-ship/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanhecl%2Fbru-ship/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanhecl","download_url":"https://codeload.github.com/jonathanhecl/bru-ship/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanhecl%2Fbru-ship/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28384075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T10:34:27.190Z","status":"ssl_error","status_checked_at":"2026-01-13T10:34:26.289Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","bru","bruno","doc","export","json","postman"],"created_at":"2026-01-13T11:37:31.929Z","updated_at":"2026-04-24T00:01:57.152Z","avatar_url":"https://github.com/jonathanhecl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bru-ship\n\nA lightweight, powerful CLI tool written in Go to convert [Bruno](https://www.usebruno.com/) API collections (`.bru` files) into [Postman Collection v2.1](https://www.postman.com/collection/) format.\n\n## Features\n\n- **Recursive Conversion**: Automatically traverses your project directories to find all `.bru` files.\n- **Authentication Inheritance**: Fully supports Bruno's authentication hierarchy (Global -\u003e Folder -\u003e Request). Inherited authentication is correctly resolved for each endpoint in the Postman collection.\n- **Documentation \u0026 Examples**: Preserves your request documentation (Markdown) and saved response examples.\n- **Selective Export**: Filter which folders to include in the final collection.\n- **Variable Replacement**: Replace Bruno variables (e.g., `{{baseUrl}}`) with specific values or Postman variables during conversion.\n- **Sensitive Data Sanitization**: Remove specific headers or variables (like Admin Tokens) from the exported collection. Endpoints using removed variables in their URL or Body will be **automatically skipped**.\n- **Dynamic Output Naming**: Automatically generates output filenames with timestamps if not specified.\n\n## Installation\n\n### Via Go Install\n\nIf you have Go installed, you can install the tool directly:\n\n```bash\ngo install github.com/jonathanhecl/bru-ship@latest\n```\n\n### From Source\n\nEnsure you have [Go](https://go.dev/) installed (1.18+ recommended).\n\n```bash\ngit clone https://github.com/jonathanhecl/bru-ship.git\ncd bru-ship\ngo build -o bru-ship\n```\n\n\n## Automated Releases\n\nThis project uses **GitHub Actions** to automatically build and release binaries for multiple platforms (Windows, macOS, Linux) whenever a new tag is pushed.\n\nTo trigger a release:\n1. Create a new tag: `git tag v1.0.1`\n2. Push the tag: `git push origin v1.0.1`\n\nThe workflow will automatically:\n- Build the application for Windows (amd64), Linux (amd64), and macOS (amd64/arm64).\n- Create a GitHub Release with the artifacts.\n\n## Usage\n\nRun the tool from your terminal. If no arguments are provided, it will display the help message.\n\n```bash\n./bru-ship [flags]\n```\n\n### Flags\n\n| Flag | Description | Default |\n|------|-------------|---------|\n| `-input` | Root directory of your Bruno collection. | `.` (Current Dir) |\n| `-output` | Path for the generated Postman JSON file. If omitted, generates `[Folders]-[Timestamp].json`. | `collection.json` (or dynamic) |\n| `-title` | Title for the generated Postman Collection. | Collection Name from `bruno.json` or Directory Name |\n| `-folders` | Comma-separated list of specific folders to include (e.g., `Auth,Users`). | (All folders) |  \n| `-ignore` | Comma-separated list of keywords. Any endpoint whose name contains one of these keywords will be skipped (e.g., `[DEPRECATED],Old`). | - |\n| `-replace` | Replace a variable in URLs/Bodies. Format: `key=value`. Can be repeated. | - |\n| `-remove` | Remove a header or variable by key. Can be repeated. | - |\n| `-env` | Name of the environment file to load variables from (e.g., `Production`). Looks in `environments/\u003cname\u003e.bru`. | - |\n| `-keep-folders` | Keep the folder structure in the generated collection. | `false` |\n| `-verbose` | Enable verbose logging to see skipped endpoints and other details. | `false` |\n\n### Examples\n\n**1. Basic Conversion**\nConvert the current directory's Bruno collection to `collection.json`.\n```bash\n./bru-ship\n```\n\n**2. Selective Export with Replacements**\nExport only the `Core` and `Billing` folders, replace `{{baseUrl}}` with a staging URL, and remove the `AdminSecret` header.\n```bash\n./bru-ship -folders \"Core,Billing\" -replace \"baseUrl=https://staging.api.com\" -remove \"AdminSecret\" -env \"Production\"\n```\n\n**3. Custom Input and Output**\nConvert a collection located in `../my-api` and save it as `export.json`.\n```bash\n./bru-ship -input \"../my-api\" -output \"export.json\"\n```\n\n## How it Works\n\n1. **Scans** the input directory recursively.\n2. **Parses** `.bru` files using a custom parser (handling blocks like `meta`, `headers`, `body`, `vars`).\n3. **Filters** content based on your `-folders` flag.\n4. **Sanitizes** and **Replaces** variables in URLs and Bodies according to your configuration.\n5. **Generates** a Postman v2.1 compatible JSON file.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanhecl%2Fbru-ship","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanhecl%2Fbru-ship","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanhecl%2Fbru-ship/lists"}