{"id":29707566,"url":"https://github.com/bonsai-rx/sgen","last_synced_at":"2025-10-28T23:38:01.253Z","repository":{"id":181860143,"uuid":"667293767","full_name":"bonsai-rx/sgen","owner":"bonsai-rx","description":"Tool for automatically generating serialization classes from schema files","archived":false,"fork":false,"pushed_at":"2025-07-08T23:54:24.000Z","size":163,"stargazers_count":3,"open_issues_count":14,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-22T07:57:03.441Z","etag":null,"topics":["bonsai-rx","code-generation","json","yaml"],"latest_commit_sha":null,"homepage":"http://bonsai-rx.org/sgen/","language":"C#","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/bonsai-rx.png","metadata":{"files":{"readme":"docs/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,"zenodo":null}},"created_at":"2023-07-17T07:21:59.000Z","updated_at":"2025-07-08T23:54:27.000Z","dependencies_parsed_at":"2023-12-27T18:31:19.281Z","dependency_job_id":"cc5ed476-edf7-4f1a-98e5-a4f364a33014","html_url":"https://github.com/bonsai-rx/sgen","commit_stats":null,"previous_names":["bonsai-rx/sgen"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bonsai-rx/sgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsai-rx%2Fsgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsai-rx%2Fsgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsai-rx%2Fsgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsai-rx%2Fsgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonsai-rx","download_url":"https://codeload.github.com/bonsai-rx/sgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsai-rx%2Fsgen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266717708,"owners_count":23973384,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bonsai-rx","code-generation","json","yaml"],"created_at":"2025-07-23T17:11:20.147Z","updated_at":"2025-10-28T23:38:01.248Z","avatar_url":"https://github.com/bonsai-rx.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serializer Generator Tool\n\n`Bonsai.Sgen` is a code generator tool for the [Bonsai](https://bonsai-rx.org/) programming language. It leverages [JSON Schema](https://json-schema.org/) as a standard to specify [record data types](https://en.wikipedia.org/wiki/Record_(computer_science)), and automatically generates operators to create and manipulate these objects. It builds on top of  [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) by providing further customization of the generated code as well as Bonsai-specific features.\n\n## Getting Started\n\n1. Install `Bonsai.Sgen` as a local tool:\n\n    ```cmd\n    dotnet new tool-manifest\n    ```\n\n    ```cmd\n    dotnet tool install --local Bonsai.Sgen\n    ```\n\n2. Generate YAML or JSON serialization classes from a schema file to your project `Extensions` folder:\n\n    ```cmd\n    dotnet bonsai.sgen schema.json -o Extensions --serializer yaml\n    ```\n\n    ```cmd\n    dotnet bonsai.sgen schema.json -o Extensions --serializer json\n    ```\n\n3. Add the necessary package references to your `Extensions.csproj` file:\n\n    ```xml\n    \u003cPackageReference Include=\"YamlDotNet\" Version=\"16.3.0\" /\u003e\n    ```\n\n    ```xml\n    \u003cPackageReference Include=\"Newtonsoft.Json\" Version=\"13.0.3\" /\u003e\n    ```\n\n## Additional Documentation\n\nFor additional documentation and examples, refer to the [Sgen documentation pages](https://bonsai-rx.org/sgen/articles/basic-usage.html).\n\n## Feedback \u0026 Contributing\n\n`Bonsai.Sgen` is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/bonsai-rx/sgen).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonsai-rx%2Fsgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonsai-rx%2Fsgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonsai-rx%2Fsgen/lists"}