{"id":21261890,"url":"https://github.com/nchern/red","last_synced_at":"2025-03-15T07:41:08.880Z","repository":{"id":149981463,"uuid":"88103622","full_name":"nchern/red","owner":"nchern","description":"Console User Interface(CUI) for HTTP API","archived":false,"fork":false,"pushed_at":"2020-05-03T12:02:56.000Z","size":750,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-02T13:28:46.881Z","etag":null,"topics":["api","command-line","cui","debug","http","testing","vim"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/nchern.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}},"created_at":"2017-04-12T22:56:00.000Z","updated_at":"2024-06-19T08:47:21.713Z","dependencies_parsed_at":null,"dependency_job_id":"6813193f-653f-4296-b8a9-a2912b799442","html_url":"https://github.com/nchern/red","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchern%2Fred","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchern%2Fred/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchern%2Fred/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchern%2Fred/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nchern","download_url":"https://codeload.github.com/nchern/red/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243701312,"owners_count":20333616,"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":["api","command-line","cui","debug","http","testing","vim"],"created_at":"2024-11-21T04:56:11.907Z","updated_at":"2025-03-15T07:41:08.852Z","avatar_url":"https://github.com/nchern.png","language":"Go","readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/nchern/red)](https://goreportcard.com/report/github.com/nchern/red)\n\nRED (Request EDitor)\n==\n\nRED is a Console User Interface(CUI) that helps to make HTTP requests to different APIs from your favourite console text editor. You can think of it like a notebook for API requests.\nAlpha version, tested with Vim only ;)\nIn the current version empty or JSON request body is supported. \n\nInstall\n===\n\n```go\ngo get github.com/nchern/red/...\n```\n\nUsage\n===\n\n```bash\nred # Opens editor for editing requests in a query file\n\nred run # runs the query from a query file\n\nred example # Outputs self-explainable query file body. You can get an idea about query file syntax from it \n```\n\nVim integration\n===\n\n[Install plugin](vim/README.md)\n\nYou have now a family of `:Red*` commands feel free to explore them.\nThe main one is `:RedQuery` - runs the current file or a selected query as on screenshots below\n\nScreenshots\n====\n![Overview](https://github.com/nchern/red/blob/master/screenshots/general.png)\n\n![Query selection example](https://github.com/nchern/red/blob/master/screenshots/selection.png)\n\n\nOther editors support\n===\nExists in theory, not tested. However, there are a couple of env variables to control an editor invocation: \n * `EDITOR` - an editor command name, defaults to `vim`\n * `EDITOR_FLAGS` - flags to pass to the editor\n\nThe utility calls then an editor with the following command line:\n```bash\n\u003cEDITOR\u003e \u003cEDITOR_FLAGS\u003e \u003cquery-filename\u003e \n```\n\n\nInspired by\n===\n * [Sense](https://chrome.google.com/webstore/detail/sense-beta/lhjgkmllcaadmopgmanpapmpjgmfcfig?hl=en)\n * [Postman](https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnchern%2Fred","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnchern%2Fred","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnchern%2Fred/lists"}