{"id":51083172,"url":"https://github.com/slothlabsorg/envlint","last_synced_at":"2026-06-23T20:01:49.129Z","repository":{"id":365584440,"uuid":"1269760814","full_name":"slothlabsorg/envlint","owner":"slothlabsorg","description":"Schema-driven validation for environment variables and .env files — one portable envlint.toml, native Rust / TypeScript / Kotlin implementations.","archived":false,"fork":false,"pushed_at":"2026-06-18T00:44:09.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-18T02:22:20.258Z","etag":null,"topics":["cli","configuration","devops","dotenv","environment-variables","kotlin","rust","typescript","validation"],"latest_commit_sha":null,"homepage":"https://github.com/slothlabsorg/envlint","language":"Kotlin","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/slothlabsorg.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":"2026-06-15T04:29:15.000Z","updated_at":"2026-06-18T00:44:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/slothlabsorg/envlint","commit_stats":null,"previous_names":["slothlabsorg/envlint"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/slothlabsorg/envlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothlabsorg%2Fenvlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothlabsorg%2Fenvlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothlabsorg%2Fenvlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothlabsorg%2Fenvlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slothlabsorg","download_url":"https://codeload.github.com/slothlabsorg/envlint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothlabsorg%2Fenvlint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34704748,"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-06-23T02:00:07.161Z","response_time":65,"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":["cli","configuration","devops","dotenv","environment-variables","kotlin","rust","typescript","validation"],"created_at":"2026-06-23T20:01:46.186Z","updated_at":"2026-06-23T20:01:49.123Z","avatar_url":"https://github.com/slothlabsorg.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envlint\n\n**Schema-driven validation for environment variables and `.env` files — one\nportable schema, three native implementations.**\n\nMost production incidents that trace back to \"config\" are not subtle: a required\nvariable was never set, a `PORT` held a hostname, a `LOG_LEVEL` of `verbose`\nsilently fell back to a default, a timeout was `30` (seconds? milliseconds?).\nThese are caught trivially *if* something declares what the service expects.\n\n`envlint` is that something. You describe your environment once in\n`envlint.toml`, then validate a `.env` file or the live process environment — in\nCI, in a container entrypoint, or at process boot via the library.\n\n```toml\n# envlint.toml — the SAME file works across all three implementations\n[vars.DATABASE_URL]\ntype = \"url\"\nrequired = true\n\n[vars.PORT]\ntype = \"port\"\ndefault = \"8080\"\n\n[vars.LOG_LEVEL]\ntype = \"enum\"\nvalues = [\"debug\", \"info\", \"warn\", \"error\"]\ndefault = \"info\"\n\n[vars.API_KEY]\ntype = \"string\"\nrequired = true\nsecret = true                       # masked in all output\npattern = \"^sk-[A-Za-z0-9]{16,}$\"\n```\n\n## Implementations\n\n| Language   | Path                   | Distribution                       | Notes                          |\n|------------|------------------------|------------------------------------|--------------------------------|\n| Rust       | [`rust/`](rust/)       | git dependency / `cargo install`   | Library + CLI binary           |\n| TypeScript | [`ts/`](ts/)           | `@slothlabs/envlint` (npm)         | Library + `envlint` bin, ESM   |\n| Kotlin/JVM | [`kotlin/`](kotlin/)   | JitPack (`com.github.slothlabsorg`)| Library + CLI `main`           |\n\nAll three parse the **same `envlint.toml`**, apply identical validation\nsemantics, mask secrets as `******`, and use the same CLI exit codes:\n`0` clean · `1` validation errors · `2` usage/IO error.\n\n## Install\n\n### Rust — straight from git (no registry needed)\n\nAdd the library to a Cargo project:\n\n```bash\ncargo add envlint --git https://github.com/slothlabsorg/envlint\n```\n\nOr install the CLI binary:\n\n```bash\ncargo install --git https://github.com/slothlabsorg/envlint envlint\n```\n\nThe repository root is a Cargo virtual workspace, so the git dependency\nresolves the `rust/` member crate automatically. (A crates.io release —\n`cargo add envlint` / `cargo install envlint` — is wired up behind a `rust-v*`\ntag.)\n\n### Kotlin/JVM — JitPack (no credentials needed)\n\n```kotlin\nrepositories {\n    mavenCentral()\n    maven(\"https://jitpack.io\")\n}\n\ndependencies {\n    implementation(\"com.github.slothlabsorg:envlint:v0.1.0\")\n}\n```\n\nJitPack builds the `kotlin/` module on first request for a tagged version.\n\n### TypeScript — npm\n\n```bash\nnpm i @slothlabs/envlint\n```\n\n(Published to the public npm registry by the `npm-v*` release workflow.)\n\nSee [`RELEASING.md`](RELEASING.md) for the tag-driven release workflows and the\none-time setup each registry needs.\n\n## Supported types\n\n`string` · `int` · `float` · `bool` (`true/false/1/0/yes/no/on/off`) · `url`\n(`scheme://authority`) · `port` (`1..=65535`) · `enum` (`values = [...]`) ·\n`duration` (`500ms`, `30s`, `5m`, `2h`, `1d`; bare number = seconds).\n\nPer-variable keys: `required`, `default`, `pattern` (regex on the raw text),\n`values`, `min` / `max` (numeric \u0026 duration), `secret`, `description`. A\ntop-level `strict = true` turns undeclared variables into errors.\n\nSee each subdirectory's README for language-specific API and CLI details.\n\n## License\n\nMIT © SlothLabs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslothlabsorg%2Fenvlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslothlabsorg%2Fenvlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslothlabsorg%2Fenvlint/lists"}