{"id":23807110,"url":"https://github.com/brettbuddin/curlenv","last_synced_at":"2026-05-20T07:03:53.037Z","repository":{"id":222691517,"uuid":"751892672","full_name":"brettbuddin/curlenv","owner":"brettbuddin","description":"Template for managing prepared curl requests.","archived":false,"fork":false,"pushed_at":"2024-12-22T21:56:19.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-21T17:50:07.947Z","etag":null,"topics":["curl","direnv"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/brettbuddin.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":"2024-02-02T14:59:55.000Z","updated_at":"2024-12-22T21:56:23.000Z","dependencies_parsed_at":"2024-02-15T18:03:58.018Z","dependency_job_id":"88919db2-18ea-4f11-a1aa-4b5e8ff9fb98","html_url":"https://github.com/brettbuddin/curlenv","commit_stats":null,"previous_names":["brettbuddin/curlenv"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/brettbuddin/curlenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbuddin%2Fcurlenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbuddin%2Fcurlenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbuddin%2Fcurlenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbuddin%2Fcurlenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brettbuddin","download_url":"https://codeload.github.com/brettbuddin/curlenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbuddin%2Fcurlenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271166788,"owners_count":24710568,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["curl","direnv"],"created_at":"2025-01-01T23:27:44.855Z","updated_at":"2026-05-20T07:03:48.003Z","avatar_url":"https://github.com/brettbuddin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# curlenv\n\n**curlenv** set of conventions for managing prepared HTTP requests via [curl](https://curl.se).\nEnvironments are just collections of shell environment variables that are managed by [direnv](https://direnv.net).\n\nIt aims to be a simple command-line alternative to [Postman](https://www.postman.com) that directly leverages well known tools.\n\n\u003e [!IMPORTANT]\n\u003e **It's recommended you use curl v8.7.0 or greater.** curl v8.7.0 fixed a bug ([curl/curl@0f0edc2](https://github.com/curl/curl/commit/0f0edc283c340e8ddddc763b48d2f835b2270ab4)) where curl would not fail when it encountered a missing environment variable.\n\n## Template\n\nThis a template repository and meant to be cloned as a starting point for your own project. In GitHub you can click the\n`Use this template` button at the top of this page to get started.\n\nFiles within [env](env), [data](data), [request](request), and [workflow](workflow) directories are only examples and\ncan be deleted to be replaced by our own. They exist as a starting point for your own work.\n\n---\n\n## Directories and Files\n\n| Name              | Description                                                                           |\n| ----------------       | -----------------------------------                                                   |\n| [env/](env)             | `*.env` and `*.envrc` files for [direnv](https://direnv.net).                                     |\n| [data/](data)           | Static and templated data files.                                                      |\n| [request/](request)     | Requests defined by [curl configuration files](https://curl.se/docs/manpage.html#-K). |\n| [workflow/](workflow) | Compositions using `data` and `request` files.                                        |\n| [.envrc](.envrc) | Entrypoint file for [direnv](https://direnv.net). |\n| [required-variables.txt](required-variables.txt) | List of environment variables that are considered required for the project. All environments must set these variables. |\n| .envrc.local | Uncommitted, local run commands sourced by [.envrc](.envrc) |\n| .envrc.curlenv.* | Files generated by [`bin/curlenv-switch`](bin/curlenv-switch) using `*.env` and `*.envrc` files in [env/](env). These files are loaded by [.envrc](.envrc) by direnv. |\n\n## Environments\n\nEnvironments are managed by direnv and loaded with the `bin/curlenv-switch` command.\n\nBoth `*.env` and `*.envrc` environment files are supported. If all you need is a static environment variables then choose\nthe `*.env` variant, because `*.envrc` files sourced by `.envrc` aren't guarded by `direnv`'s security framework.\n\nRefer to the [direnv documentation](https://direnv.net/man/direnv.1.html) for `.env` and `.envrc` syntax and [stdlib\nfunctions](https://direnv.net/man/direnv-stdlib.1.html).\n\nYou can load environments via the [`bin/curlenv-switch`](bin/curlenv-switch) script. The command accepts a single argument for the environment name. References to both the primary environment files (`\u003cname\u003e.env` and `\u003cname\u003e.envrc`) and optional secrets files (`\u003cname\u003e.secret.env` and `\u003cname\u003e.secret.envrc`) are symlinked in the project root.\n\n```\n; curlenv-switch example\ncurlenv-switch: wrote /Users/brett/Code/curlenv/.env.curlenv\ncurlenv-switch: wrote /Users/brett/Code/curlenv/.env.curlenv.target\ndirenv: loading ~/Code/curlenv/.envrc                                                                                                                        \ndirenv: loading ~/Code/curlenv/.envrc.curlenv.target\ndirenv: export +CURLENV_CURRENT +EXAMPLE_HEADER +EXAMPLE_HOSTPORT +EXAMPLE_SCHEME +EXAMPLE_USER -PS2 ~PATH\n```\n\nWhen a target environment is loaded, environment variable names (one per line) from `required-variables.txt` are applied to a\n[`env_vars_required`](https://direnv.net/man/direnv-stdlib.1.html#codeenvvarsrequired-ltvarnamegt-ltvarnamegt-code) directive.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrettbuddin%2Fcurlenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrettbuddin%2Fcurlenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrettbuddin%2Fcurlenv/lists"}