{"id":19133170,"url":"https://github.com/tversteeg/const-tweaker","last_synced_at":"2025-05-07T15:24:07.566Z","repository":{"id":48080651,"uuid":"247463643","full_name":"tversteeg/const-tweaker","owner":"tversteeg","description":"🤪 Tweak constant variables live when running a program","archived":false,"fork":false,"pushed_at":"2023-12-15T05:49:38.000Z","size":1046,"stargazers_count":75,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T08:54:51.370Z","etag":null,"topics":["gamedev","runtime-config","rust","web-gui"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tversteeg.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}},"created_at":"2020-03-15T12:39:02.000Z","updated_at":"2025-04-14T19:06:28.000Z","dependencies_parsed_at":"2024-11-09T06:35:45.031Z","dependency_job_id":null,"html_url":"https://github.com/tversteeg/const-tweaker","commit_stats":{"total_commits":64,"total_committers":3,"mean_commits":"21.333333333333332","dds":0.046875,"last_synced_commit":"6dc3cd80a3e95bc5962014e0ed8cd5f851e8fe2c"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":"tversteeg/library-github-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tversteeg%2Fconst-tweaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tversteeg%2Fconst-tweaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tversteeg%2Fconst-tweaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tversteeg%2Fconst-tweaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tversteeg","download_url":"https://codeload.github.com/tversteeg/const-tweaker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252903595,"owners_count":21822472,"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":["gamedev","runtime-config","rust","web-gui"],"created_at":"2024-11-09T06:21:17.013Z","updated_at":"2025-05-07T15:24:07.540Z","avatar_url":"https://github.com/tversteeg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003econst-tweaker\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n\tTweak const variables live from a web GUI.\n\u003c/p\u003e\n\t\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/tversteeg/const-tweaker/actions\"\u003e\u003cimg src=\"https://github.com/tversteeg/const-tweaker/workflows/CI/badge.svg\" alt=\"CI\"/\u003e\u003c/a\u003e\n\t\u003ca href=\"https://crates.io/crates/const-tweaker\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/const-tweaker.svg\" alt=\"Version\"/\u003e\u003c/a\u003e\n\t\u003ca href=\"https://docs.rs/const-tweaker\"\u003e\u003cimg src=\"https://img.shields.io/badge/api-rustdoc-blue.svg\" alt=\"Rust Documentation\"/\u003e\u003c/a\u003e\n\t\u003cimg src=\"https://img.shields.io/crates/l/const-tweaker.svg\" alt=\"License\"/\u003e\n\t\u003cbr/\u003e\u003cbr/\u003e\n\t\u003cimg src=\"img/example.gif\"\u003e\n\t\u003cbr/\u003e\n\u003c/p\u003e\n\nThis library opens a web interface when the application is run, allowing you to change the values of constants in real time.\nIt's especially useful for gamedev where you want to tweak some variables without introducing a hot-reloading scripting language for it.\n\nAfter running your application the web GUI to change constants is opened at [`127.0.0.1:9938`](http://127.0.0.1:9938).\n\n## Example\n\n```rust\n// Create a slider to tweak 'VALUE' in the web GUI\n#[const_tweaker::tweak]\nconst VALUE: f64 = 0.0;\n\nfn main() {\n\t// Enter a GUI/Game loop\n\tloop {\n\t\t// Print the constant value that can be changed from the website\n\t\tprintln!(\"VALUE: {}\", VALUE);\n\n\t\t// ...\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftversteeg%2Fconst-tweaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftversteeg%2Fconst-tweaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftversteeg%2Fconst-tweaker/lists"}