{"id":24321058,"url":"https://github.com/tamdaz/crygen","last_synced_at":"2026-04-02T18:43:26.472Z","repository":{"id":272839136,"uuid":"917916953","full_name":"tamdaz/crygen","owner":"tamdaz","description":"A library that allows to generate the Crystal code","archived":false,"fork":false,"pushed_at":"2025-12-30T18:05:53.000Z","size":946,"stargazers_count":12,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-02T04:56:39.042Z","etag":null,"topics":["code-generator","crystal","nette"],"latest_commit_sha":null,"homepage":"https://tamdaz.github.io/crygen/","language":"Crystal","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/tamdaz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-16T22:11:46.000Z","updated_at":"2025-12-30T18:05:31.000Z","dependencies_parsed_at":"2025-02-01T20:22:52.389Z","dependency_job_id":"ff8fa643-d1e7-41f8-b7d0-af7a3a5e4607","html_url":"https://github.com/tamdaz/crygen","commit_stats":null,"previous_names":["tamdaz/crygen"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/tamdaz/crygen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdaz%2Fcrygen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdaz%2Fcrygen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdaz%2Fcrygen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdaz%2Fcrygen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamdaz","download_url":"https://codeload.github.com/tamdaz/crygen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdaz%2Fcrygen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","crystal","nette"],"created_at":"2025-01-17T16:31:00.385Z","updated_at":"2026-04-02T18:43:26.467Z","avatar_url":"https://github.com/tamdaz.png","language":"Crystal","funding_links":[],"categories":["Project Generators"],"sub_categories":[],"readme":"# crygen\n\n![license](https://img.shields.io/github/license/tamdaz/crygen)\n![GitHub Release](https://img.shields.io/github/v/release/tamdaz/crygen)\n![ci](https://github.com/tamdaz/crygen/actions/workflows/ci.yml/badge.svg?branch=main)\n![commit activity](https://img.shields.io/github/commit-activity/m/tamdaz/crygen)\n![issues](https://img.shields.io/github/issues/tamdaz/crygen)\n![prs](https://img.shields.io/github/issues-pr/tamdaz/crygen)\n\n**crygen** is a library that allows to generate a Crystal file. It is inspired by the PHP\nlibrary : [nette/php-generator](https://github.com/nette/php-generator).\n\n- Crygen documentation: https://tamdaz.github.io/crygen/\n- API documentation: https://crystaldoc.info/github/tamdaz/crygen/main/index.html\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n```yaml\ndependencies:\n  crygen:\n    github: tamdaz/crygen\n    version: ~\u003e 1.3.0\n```\n\n2. Run `shards install`\n\n3. Finally, import `crygen` from the entrypoint file:\n\n```cr\nrequire \"crygen\"\n\nmodule App\n  VERSION = \"1.0.0\"\n\n  class_type = CGT::Class.new(\"MyClass\")\n  method_type = CGT::Method.new(\"my_method\", \"String\")\n\n  class_type.add_method(method_type)\n\n  puts class_type.generate\n  # or\n  puts class_type\n\n  # Output:\n  # class MyClass\n  #   def my_method : String\n  #   end\n  # end\n\n  # You can save the generated code into the .cr file.\n  File.write(\"src/classes/my_class.cr\", class_type)\nend\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/tamdaz/crygen/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n\u003ca href=\"https://github.com/tamdaz/crygen/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=tamdaz/crygen\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamdaz%2Fcrygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamdaz%2Fcrygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamdaz%2Fcrygen/lists"}