{"id":13837022,"url":"https://github.com/Fanatics/toast","last_synced_at":"2025-07-10T16:31:48.674Z","repository":{"id":57487006,"uuid":"156584894","full_name":"Fanatics/toast","owner":"Fanatics","description":"Plugin-driven CLI utility for code generation using Go source as IDL","archived":false,"fork":false,"pushed_at":"2019-05-18T21:34:17.000Z","size":172,"stargazers_count":53,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-05T15:05:37.145Z","etag":null,"topics":["ast","cli","code-generation","golang","plugins","tooling"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fanatics.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}},"created_at":"2018-11-07T17:38:01.000Z","updated_at":"2024-07-02T04:55:00.000Z","dependencies_parsed_at":"2022-09-01T22:51:31.315Z","dependency_job_id":null,"html_url":"https://github.com/Fanatics/toast","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fanatics%2Ftoast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fanatics%2Ftoast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fanatics%2Ftoast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fanatics%2Ftoast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fanatics","download_url":"https://codeload.github.com/Fanatics/toast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225648110,"owners_count":17502173,"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":["ast","cli","code-generation","golang","plugins","tooling"],"created_at":"2024-08-04T15:00:59.497Z","updated_at":"2024-11-20T23:32:09.643Z","avatar_url":"https://github.com/Fanatics.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"![toast logo](.github/toast.logo.png)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/Fanatics/toast)\n\n`toast` is a plugin-driven code generation tool that parses regular [Go](https://golang.org) code, rather than an IDL like Protobufs or other common defintion code.\n\n## Why?\nFanatics loves Go, we have a lot of Go code, and after using plenty of other code generation tools, it struck us that Go code as an IDL could be a nice alternative. \n\n`toast` makes it much easier to generate code from your Go code, since it gives you pre-parsed AST-like data about your packages and files. Why the name \"toast\", you ask? `toast` is a tool to turn your Go code \"to AST\" in a helpful way. \n\n## Usage\n\n```sh\n$ toast --input . \\\n    --plugin amdm_gen_db:out=./internal/db \\   \n    --plugin \"amdm_gen_proto --option1 value1 -o v2:out=./api/proto\"\n```\n\n\u003e See a basic [**example plugin**](https://github.com/Fanatics/toast/blob/master/plugin-samples/toast-plugin/main.go) written in Go.\n\n## Installation\n\nIf you have Go installed, run:\n```sh\n$ go get github.com/Fanatics/toast/...\n```\n\nOnce the project is at a more stable point, pre-built binaries will be made \navailable for download across common platforms.\n\n## Status\n`toast` is still under heavy development. Tests are still being written, APIs \nwill change without notice. However, feel free to give it a spin, open issues and submit PRs. \n\nThe simplified AST that is sent to a plugin's stdin may (and probably should) change from version to version. It is incomplete, and once tests are ready, we will have a better idea of what else is left to parse and collect. \n\n**Please open issues if/when you encounter incompleteness or errors!**\n\n\n## Disclaimer\nThis is not an official Fanatics product (experimental or otherwise), it is just code that happens to be owned by Fanatics.\n\n\u003cp align=\"right\"\u003e\n    \u003cimg src=\".github/fanatics-eng.logo.png\"/\u003e\u003cbr/\u003e   \n    Want to work on projects like this?\n    \u003ca href=\"mailto:smanuel@fanatics.com\"\u003e\n        Get in touch.\n    \u003c/a\u003e\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFanatics%2Ftoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFanatics%2Ftoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFanatics%2Ftoast/lists"}