{"id":28329124,"url":"https://github.com/kosukesaigusa/code_generation_samples","last_synced_at":"2026-03-12T14:16:44.602Z","repository":{"id":203676434,"uuid":"709275283","full_name":"kosukesaigusa/code_generation_samples","owner":"kosukesaigusa","description":"💙 A collection of sample packages for code generation in Dart, featured in FlutterKaigi 2023","archived":false,"fork":false,"pushed_at":"2023-12-25T07:22:12.000Z","size":423,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T18:59:56.755Z","etag":null,"topics":["code-generator","dart","dart-build-system","dartlang","source-gen"],"latest_commit_sha":null,"homepage":"https://flutterkaigi.jp/2023/sessions/d9cc75af-a3a2-4d0e-af6c-f12aa143ba4c","language":"Dart","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/kosukesaigusa.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}},"created_at":"2023-10-24T11:45:55.000Z","updated_at":"2024-06-16T13:54:48.000Z","dependencies_parsed_at":"2023-11-12T14:28:46.807Z","dependency_job_id":null,"html_url":"https://github.com/kosukesaigusa/code_generation_samples","commit_stats":null,"previous_names":["kosukesaigusa/dart_from_json_generator","kosukesaigusa/code_generation_samples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kosukesaigusa/code_generation_samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosukesaigusa%2Fcode_generation_samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosukesaigusa%2Fcode_generation_samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosukesaigusa%2Fcode_generation_samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosukesaigusa%2Fcode_generation_samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kosukesaigusa","download_url":"https://codeload.github.com/kosukesaigusa/code_generation_samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosukesaigusa%2Fcode_generation_samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30428013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:00:25.264Z","status":"ssl_error","status_checked_at":"2026-03-12T13:59:52.690Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["code-generator","dart","dart-build-system","dartlang","source-gen"],"created_at":"2025-05-26T09:26:39.586Z","updated_at":"2026-03-12T14:16:44.594Z","avatar_url":"https://github.com/kosukesaigusa.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# code_generation_samples\n\nWelcome to `code_generation_samples`, a suite of packages that demonstrate various code generation techniques in Dart and Flutter. This repository is designed as an educational tool to help developers learn how to simplify and automate tasks through the use of code generation.\n\nAdditionally, this collection is featured as part of a presentation at FlutterKaigi, a renowned Flutter conference taking place in Japan on November 10th, 2023.\n\n## Packages Included\n\nThis repository includes the following packages, each tailored for a specific code generation scenario:\n\nThis repository includes the following packages, each tailored for a specific code generation scenario:\n\n- `copy_builder`: A basic builder package that generates duplicate files for all input files.\n- `copy_builder_annotation`: Provides the `@Copy` annotation, which is recognized by `copy_builder_for_annotation`.\n- `copy_builder_for_annotation`: An advanced version of `copy_builder` that targets files marked with `@Copy` annotations.\n- `from_json_generator`: A builder that generates a `fromJson` method for classes decorated with annotations.\n- `from_json_generator_annotation`: Supplies annotations that drive the behavior of `from_json_generator`.\n\n## Quick Start\n\nTo see code generation in action, run the following commands in the `copy_builder`, `copy_builder_for_annotation`, and `from_json_generator` package directories. The generated files can be found within the `test/helper` directories of each package.\n\n```sh\ndart pub get\ndart run build_runner build --delete-conflicting-outputs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosukesaigusa%2Fcode_generation_samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkosukesaigusa%2Fcode_generation_samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosukesaigusa%2Fcode_generation_samples/lists"}