{"id":15356152,"url":"https://github.com/lttr/deno-dsc","last_synced_at":"2026-03-05T14:03:45.416Z","repository":{"id":96329275,"uuid":"278719558","full_name":"lttr/deno-dsc","owner":"lttr","description":"Simple desired state configuration library, inspired by Powershell DSC","archived":false,"fork":false,"pushed_at":"2025-12-12T10:16:13.000Z","size":83,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T20:29:36.276Z","etag":null,"topics":["deno","desired-state-configuration","dsc"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/lttr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2020-07-10T19:42:59.000Z","updated_at":"2025-12-12T10:16:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"07f8badb-62d8-42d9-9e7b-d07858aa6ce3","html_url":"https://github.com/lttr/deno-dsc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lttr/deno-dsc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lttr%2Fdeno-dsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lttr%2Fdeno-dsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lttr%2Fdeno-dsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lttr%2Fdeno-dsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lttr","download_url":"https://codeload.github.com/lttr/deno-dsc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lttr%2Fdeno-dsc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30130031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["deno","desired-state-configuration","dsc"],"created_at":"2024-10-01T12:27:21.943Z","updated_at":"2026-03-05T14:03:45.408Z","avatar_url":"https://github.com/lttr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-dsc\n\nSimple desired state configuration library for `deno`. Inspired by\n[Powershell DSC](https://docs.microsoft.com/en-us/powershell/scripting/dsc/overview/overview).\n\n## What\n\nWhen you need to get your system into desired state. Quickly, reliably,\nrepeatedly. You can use Ansible, Puppet, Powershell or something else. But this\nis simple and you can use JavaScript/TypeScript. `Deno` is the only runtime\ndependency.\n\n## Why\n\nI have built this to spin up my development machine using my\n[dotfiles](https://github.com/lttr/dotfiles).\n\n## How does it work\n\nBased on your configuration the library build a dependency graph and executes\neverything missing in right order. Every configuration is first tested and only\nexecuted, when the test does not pass. Therefore it is idempotent - you can\nstart it multiple times without worries.\n\n## Adding resource\n\nAdd configuration type and implement the resource\n\n```typescript\nexport interface LoginShellConfig extends Config {\n  shell: \"zsh\";\n}\n\nexport const LoginShell: SpecificResource\u003cLoginShellConfig\u003e = {\n  name: \"loginShell\",\n  get: (config) =\u003e {\n    //...\n  },\n  test: async (config, verbose) =\u003e {\n    //...\n  },\n  set: async (config, verbose) =\u003e {\n    //...\n  },\n};\n```\n\nAdd to list of types of resources\n\n```typescript\ntype MyResources = Resources | SpecificResource\u003cLoginShellConfig\u003e;\n```\n\nRegistr the new resource\n\n```typescript\nregisterResource(LoginShell);\n```\n\n## Test\n\n```\ndeno task test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flttr%2Fdeno-dsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flttr%2Fdeno-dsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flttr%2Fdeno-dsc/lists"}