{"id":35155055,"url":"https://github.com/autonomous-bits/nomos","last_synced_at":"2026-02-17T23:03:21.531Z","repository":{"id":322077252,"uuid":"1072488791","full_name":"autonomous-bits/nomos","owner":"autonomous-bits","description":"Configuration scripting language that compiles reusable, cascading configs into deterministic, versioned snapshots for IaC","archived":false,"fork":false,"pushed_at":"2026-02-14T15:20:27.000Z","size":1576,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-14T16:45:36.538Z","etag":null,"topics":["cli","compiler","configuration","configuration-management","devops","dsl","go","golang","infrastructure-as-code","monorepo","parser","reproducibility","scripting-language"],"latest_commit_sha":null,"homepage":"","language":"Go","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/autonomous-bits.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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-10-08T19:39:28.000Z","updated_at":"2026-02-14T15:20:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/autonomous-bits/nomos","commit_stats":null,"previous_names":["autonomous-bits/nomos"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/autonomous-bits/nomos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomous-bits%2Fnomos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomous-bits%2Fnomos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomous-bits%2Fnomos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomous-bits%2Fnomos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autonomous-bits","download_url":"https://codeload.github.com/autonomous-bits/nomos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autonomous-bits%2Fnomos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29561783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cli","compiler","configuration","configuration-management","devops","dsl","go","golang","infrastructure-as-code","monorepo","parser","reproducibility","scripting-language"],"created_at":"2025-12-28T16:48:51.893Z","updated_at":"2026-02-17T23:03:21.527Z","avatar_url":"https://github.com/autonomous-bits.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nomos\n\nNomos is a configuration scripting language that reduces configuration toil through composition, reuse, and cascading overrides. It lets you:\n\n- Compose configuration by importing layered sources with last-write-wins semantics\n- Group configuration into cohesive environments\n- Cross-reference values across configuration groups (environments)\n\nNomos scripts compile into a versioned snapshot that becomes input for your infrastructure-as-code tools.\n\n• CLI: `apps/command-line`  • Compiler library: `libs/compiler`  • Parser: `libs/parser`  • Provider contracts: `libs/provider-proto`\n\nJump to: [Language](#scripting-language) · [Providers](#source-provider-types) · [Examples](#example-config) · [Development](#development) · [Contributing](#contributing)\n\n---\n\n## Scripting Language\n\nThe scripting language supports the following keywords:\n\n| Keyword | Description |\n| :-| :- |\n| `source` | A configurable source provider, at a minimum you should be able to provide an alias and the type of provider. |\n| `@` | Using a source, load a specific value from the configuration. Syntax is `@alias:path` where the path uses dot notation only (no additional `:`). For file providers, the first segment is the filename without `.csl`. |\n\n**Comment Support**: Document your configurations with YAML-style `#` comments:\n```\napp:\n  name: 'my-app'\n  database:\n    host: localhost  # Production database server\n    port: 5432       # PostgreSQL default port\n```\nComments are single-line, context-aware, and preserved within quoted strings. See the [parser documentation](libs/parser/README.md#comment-support) for complete details.\n\n### Reference Syntax Details\n\nReferences allow you to access specific values from providers using dot-only paths:\n\n**For file providers:**\n```\n@alias:filename.path.to.value\n```\n\n**Example:**\n\nGiven a file `storage.csl` in a `configs` provider:\n```\nconfig:\n  storage:\n    type: 's3'\n  buckets:\n    primary: 'my-app-data'\n  encryption:\n    algorithm: 'AES256'\n```\n\nYou can reference specific values:\n```\nsource:\n  alias: 'configs'\n  type: 'autonomous-bits/nomos-provider-file'\n  version: '0.1.1'\n  directory: './shared-configs'\n\napp:\n  storage_type: @configs:storage.config.storage.type        # Resolves to 's3'\n  bucket: @configs:storage.config.buckets.primary           # Resolves to 'my-app-data'\n  encryption: @configs:storage.config.encryption.algorithm  # Resolves to 'AES256'\n```\n\n### Source Provider Types\n\n- **File Source Provider**: The built-in source provider that allows a user to import and reference files from a directory containing `.csl` files. Supports path navigation to access nested values within files.\n- **OpenTofu State Provider**: A provider that allows to reference output values from OpenTofu IaC. \n\n### Example Config\n\n```\nsource:\n  alias: 'configs'\n  type: 'autonomous-bits/nomos-provider-file'\n  version: '0.1.1'\n  directory: './shared-configs'\n\nconfig:\n  @configs:base\n\napp:\n  name: 'my-app'\n  database:\n    host: @configs:database.connection.host\n  storage:\n    type: @configs:storage.config.type\n  \nconfig-section-name:\n  key1: value1\n  key2: value2\n```\n\n## File Extension\n\nUse the `.csl` extension (Configuration Scripting Language).\n\n## Tooling\n\nThe Nomos CLI compiles scripts into a snapshot artifact.\n\n- Command: `build`\n- Flags:\n  - `--path, -p` Path to a `.csl` file or folder\n  - `--format, -f` Output format: `json`, `yaml`, or `tfvars`\n\nQuick start (local):\n\n```bash\nmake build-cli\n./bin/nomos --help\n```\n\n## Development\n\nThis repository is a Go workspace (monorepo) containing multiple independent modules. Run `make help` for available tasks.\n\nCommon tasks:\n\n```bash\n# Sync workspace and build the CLI\nmake work-sync\nmake build-cli\n\n# Build everything and run tests\nmake build\nmake test\n```\n\n- Module docs and architecture guidance: see [docs/architecture/go-monorepo-structure.md](docs/architecture/go-monorepo-structure.md)\n- CI helper: `./tools/scripts/verify-ci-modules.sh` validates workspace and runs tests\n  \nEach module maintains its own `go.mod`, `README.md`, and `CHANGELOG.md`.\n\n### Using Nomos Libraries in External Projects\n\nNomos libraries are published as independent Go modules and can be imported into external projects:\n\n```go\n// In your project's go.mod\nmodule github.com/example/my-project\n\ngo 1.26.0\n\nrequire (\n    github.com/autonomous-bits/nomos/libs/compiler v0.1.0\n    github.com/autonomous-bits/nomos/libs/parser v0.1.0\n    github.com/autonomous-bits/nomos/libs/provider-proto v0.1.0\n)\n```\n\nExample usage:\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"github.com/autonomous-bits/nomos/libs/compiler\"\n)\n\nfunc main() {\n    opts := compiler.Options{\n        Path: \"config.csl\",\n        // Configure other options...\n    }\n    \n    snapshot, err := compiler.Compile(context.Background(), opts)\n    if err != nil {\n        // Handle error\n    }\n    \n    // Use compiled snapshot\n}\n```\n\nFor a complete working example, see [examples/consumer/](examples/consumer/README.md).\n\n**Note for local development**: When working within this monorepo, the `go.work` file handles module resolution automatically—no `replace` directives are needed in individual `go.mod` files.\n\n## Contributing\n\nContributions are welcome! Please read the [CONTRIBUTING.md](CONTRIBUTING.md) for branching, commit message, testing, and PR guidelines.\n\n## License\n\nSee [LICENSE](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautonomous-bits%2Fnomos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautonomous-bits%2Fnomos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautonomous-bits%2Fnomos/lists"}