{"id":50417839,"url":"https://github.com/arisrhiannon/envlint","last_synced_at":"2026-05-31T07:01:59.420Z","repository":{"id":361519841,"uuid":"1254652476","full_name":"ArisRhiannon/envlint","owner":"ArisRhiannon","description":"Zero-dependency CLI that validates .env files against .env.example — catches missing keys, duplicates, empty values and unsafe .gitignore. Built for CI.","archived":false,"fork":false,"pushed_at":"2026-05-31T01:54:17.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-31T03:18:10.470Z","etag":null,"topics":["bun","ci","cli","developer-tools","dotenv","environment-variables","linter","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/ArisRhiannon/envlint","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArisRhiannon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["ArisRhiannon"]}},"created_at":"2026-05-30T20:56:36.000Z","updated_at":"2026-05-31T01:54:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ArisRhiannon/envlint","commit_stats":null,"previous_names":["arisrhiannon/envlint"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ArisRhiannon/envlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fenvlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fenvlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fenvlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fenvlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArisRhiannon","download_url":"https://codeload.github.com/ArisRhiannon/envlint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fenvlint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33722156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["bun","ci","cli","developer-tools","dotenv","environment-variables","linter","typescript"],"created_at":"2026-05-31T07:01:57.871Z","updated_at":"2026-05-31T07:01:59.414Z","avatar_url":"https://github.com/ArisRhiannon.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ArisRhiannon"],"categories":[],"sub_categories":[],"readme":"# envlint\n\n\u003e Zero-dependency CLI that validates your `.env` against `.env.example` — catch missing keys, duplicates, empty values and an unsafe `.gitignore` **before** they break a deploy.\n\n[![CI](https://github.com/ArisRhiannon/envlint/actions/workflows/ci.yml/badge.svg)](https://github.com/ArisRhiannon/envlint/actions/workflows/ci.yml)\n[![License: AGPL-3.0 + Commercial](https://img.shields.io/badge/license-AGPL--3.0%20%2B%20Commercial-blue.svg)](LICENSE)\n\nMisconfigured environment variables are one of the most common causes of \"works on my machine\" bugs and broken production deploys. `envlint` is a tiny, fast checker that drops into local workflows and CI.\n\n- **No dependencies.** A single self-contained binary, or run directly with [Bun](https://bun.sh).\n- **CI-friendly.** Clear exit codes and `--json` output.\n- **Safe by default.** Warns when `.env` isn't ignored by Git.\n\n## Install\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/ArisRhiannon/envlint/main/install.sh | sh\n```\n\nOr build from source:\n\n```sh\ngit clone https://github.com/ArisRhiannon/envlint\ncd envlint\nbun run build        # produces ./envlint\n```\n\n## Usage\n\n```sh\nenvlint                       # check ./.env against ./.env.example\nenvlint .env.production       # check a specific file\nenvlint --example .env.sample\nenvlint --strict              # empty values become errors\nenvlint --json                # machine-readable output\n```\n\n### Example output\n\n```text\n$ envlint\n✖ missing-key: Missing key \"DATABASE_URL\" defined in example\n⚠ extra-key: Extra key \"DEBUG\" not in example (.env:7)\n⚠ empty-value: Empty value for \"API_URL\" (.env:4)\n\n1 error(s), 2 warning(s)\n```\n\n## Rules\n\n| Rule | Severity | Description |\n|------|----------|-------------|\n| `missing-key` | error | A key in the example file is absent from `.env` |\n| `duplicate-key` | error | The same key is defined more than once |\n| `gitignore-unsafe` | error | `.env` is not ignored by `.gitignore` |\n| `extra-key` | warning | A key in `.env` is not present in the example file |\n| `empty-value` | warning | A key has an empty value (becomes an error with `--strict`) |\n\n## Use in CI\n\n```yaml\n# .github/workflows/env.yml\nname: env\non: [pull_request]\njobs:\n  envlint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: oven-sh/setup-bun@v2\n      - run: curl -fsSL https://raw.githubusercontent.com/ArisRhiannon/envlint/main/install.sh | sh\n      - run: ~/.local/bin/envlint --strict\n```\n\n## Exit codes\n\n| Code | Meaning |\n|------|---------|\n| `0` | No errors |\n| `1` | Errors found |\n| `2` | Usage error |\n\n## Development\n\n```sh\nbun test         # run the test suite\nbun run build    # compile a single binary\n```\n\n## Contributing\n\nIssues and pull requests are welcome. Please run `bun test` before submitting.\n\n## Support\n\nNo pressure — a star or a helpful issue means a lot. If `envlint` happened to save you\nsome time, an optional tip is welcome at `0x4705fA2de020E2D7F7FE08f5dD4585710897f3E1`\n(ETH / any EVM chain).\n\n## License\n\nSource-available — **not** OSI open source. Free under the GNU **AGPL-3.0** for\nindividuals, non-profits, and organizations below **US$1M annual revenue and 50\nemployees**; larger organizations require a commercial license. See [LICENSE](LICENSE).\n\n© 2026 Aris Rhiannon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farisrhiannon%2Fenvlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farisrhiannon%2Fenvlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farisrhiannon%2Fenvlint/lists"}