{"id":17919797,"url":"https://github.com/elkowar/yolk","last_synced_at":"2025-04-12T18:49:32.402Z","repository":{"id":263661887,"uuid":"890268972","full_name":"elkowar/yolk","owner":"elkowar","description":"Templated dotfile management without template files!","archived":false,"fork":false,"pushed_at":"2025-02-13T11:06:13.000Z","size":1869,"stargazers_count":128,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-04T05:40:40.350Z","etag":null,"topics":["config","configuration","dotfiles","rhai","rust","rust-lang","unixporn"],"latest_commit_sha":null,"homepage":"https://elkowar.github.io/yolk","language":"Rust","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/elkowar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["elkowar"],"ko_fi":"elkowar"}},"created_at":"2024-11-18T09:33:48.000Z","updated_at":"2025-04-03T10:40:19.000Z","dependencies_parsed_at":"2024-11-19T19:31:38.464Z","dependency_job_id":"e8203239-3d19-4871-b4c9-bf2bdc327429","html_url":"https://github.com/elkowar/yolk","commit_stats":null,"previous_names":["elkowar/yolk"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elkowar%2Fyolk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elkowar%2Fyolk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elkowar%2Fyolk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elkowar%2Fyolk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elkowar","download_url":"https://codeload.github.com/elkowar/yolk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618218,"owners_count":21134199,"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","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":["config","configuration","dotfiles","rhai","rust","rust-lang","unixporn"],"created_at":"2024-10-28T20:19:11.898Z","updated_at":"2025-04-12T18:49:32.378Z","avatar_url":"https://github.com/elkowar.png","language":"Rust","funding_links":["https://github.com/sponsors/elkowar","https://ko-fi.com/elkowar"],"categories":[],"sub_categories":[],"readme":"\u003cdiv class=\"oranda-hide\"\u003e\n    \u003cimg src=\"./.github/images/yolk_banner_animated.svg\" height=\"200\" align=\"center\"/\u003e\n\n# Yolk – Painfree Templated Dotfile Management\n\n\u003ca href=\"https://repology.org/project/yolk/versions\"\u003e\n    \u003cimg src=\"https://repology.org/badge/vertical-allrepos/yolk.svg\" alt=\"Packaging status\" align=\"right\"\u003e\n\u003c/a\u003e\n\n\u003c/div\u003e\n\nYolk is a cross platform dotfile management tool with a unique spin on templating,\nsitting somewhere in between [GNU Stow](https://www.gnu.org/software/stow/) and [chezmoi](https://www.chezmoi.io/).\n\nHave a look at our [documentation](https://elkowar.github.io/yolk/book) for more information on how to get started!\n\n## The Concept\n\nYolk allows you to use simple templates in your configuration files without having to worry about keeping a separate template file and the generated config file in sync.\nThis is achieved through a design that allows all templates to be included inside comments in your actual configuration file.\n\nLet's demonstrate:\n\n```toml\n# Use a different font on one host\n# {% if SYSTEM.hostname == \"epic-desktop\" %}\nfont=\"Fira Code\"\n# {% else %}\n#\u003cyolk\u003e font=\"Iosevka\"\n# {% end %}\n\n[colors]\n# Load your colors from your yolk configuration\nbackground=\"#282828\" # {\u003c replace_color(data.colors.background) \u003e}\nforeground=\"#ebdbb2\" # {\u003c replace_color(data.colors.foreground) \u003e}\n```\n\nYolk will now be able to run the corresponding modifications on the file itself, allowing you to set\ntemplated values while keeping the template directly in the same file.\n\n### User Configuration\n\nYolk template expressions and configuration are written in the [Rhai](https://rhai.rs/) scripting language.\nYou can provide custom data to use in your templates via the `yolk.rhai` file in your yolk directory,\nwhich allows you to fetch data dynamically from your system, or reference different static data depending on your system.\n\n### Version Control\n\nHow does this work with git?\nGiven that the concrete files in use on your system may be different across machines,\nadding those to version control directly would result in a lot of merge conflicts frequently.\nYolk solves this by only commiting a \"canonical\" version of your templates, generated right before you commit.\nThis means that the version of your configuration seen in git will always be generated from a consistent, stable context.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felkowar%2Fyolk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felkowar%2Fyolk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felkowar%2Fyolk/lists"}