{"id":18562487,"url":"https://github.com/replit/toml-editor","last_synced_at":"2025-04-10T03:31:57.070Z","repository":{"id":38883778,"uuid":"503880927","full_name":"replit/toml-editor","owner":"replit","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-08T02:01:58.000Z","size":161,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":28,"default_branch":"main","last_synced_at":"2025-03-24T15:52:18.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-06-15T18:31:59.000Z","updated_at":"2025-01-11T17:58:46.000Z","dependencies_parsed_at":"2023-11-27T17:26:03.932Z","dependency_job_id":"5bc7d0c9-4175-4329-b08b-9a8dc2a4aa54","html_url":"https://github.com/replit/toml-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Ftoml-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Ftoml-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Ftoml-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Ftoml-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replit","download_url":"https://codeload.github.com/replit/toml-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248151091,"owners_count":21056021,"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":[],"created_at":"2024-11-06T22:09:53.006Z","updated_at":"2025-04-10T03:31:52.058Z","avatar_url":"https://github.com/replit.png","language":"Rust","readme":"# Toml Editor\n\nThis is the toml editor which is used by the dotreplit service to update the .replit file while preserving formatting (e.g. line spacing and comments).  \n\nTo run a dev build, just run `cargo run`. For a production build, run `cargo build --release`.  \n\nMore info about this [here](https://replit.com/@util/Design-docs#goval/dotreplit_editor.md)  \n\nOnce this is running, it reads json input from stdin and returns output through stdout.  \n\nThe json it reads in is in the format of https://datatracker.ietf.org/doc/html/rfc6902 with one slight difference. The value field is a stringified json instead of the actual json value.  \n\nBelow is an example set of operations:  \n(note - these examples will have spacing and formatting to make it easier to read but when testing, this should all be removed).  \n\n```\n[\n  { \"op\": \"add\", \"path\": \"foo\", \"value\": 123 },\n  { \"op\": \"add\", \"path\": \"bar/1\", \"value\": \"{\\\"test\\\": 234}\"}\n]\n```\n\nYou can include the file path of the .replit file like so `./toml-editor -p \u003cpath\u003e`. If you do not, it will default to looking in the current directory for the `.replit` file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Ftoml-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplit%2Ftoml-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Ftoml-editor/lists"}