{"id":31720928,"url":"https://github.com/nezteb/gen_ex","last_synced_at":"2026-02-17T15:02:30.732Z","repository":{"id":201099843,"uuid":"706959479","full_name":"Nezteb/gen_ex","owner":"Nezteb","description":"An Elixir generator.","archived":false,"fork":false,"pushed_at":"2023-10-25T17:48:46.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T03:22:12.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nezteb.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-19T00:08:45.000Z","updated_at":"2023-10-19T00:08:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"17729b28-cfc7-4650-addf-b6b994e4732c","html_url":"https://github.com/Nezteb/gen_ex","commit_stats":null,"previous_names":["nezteb/gen_ex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nezteb/gen_ex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgen_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgen_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgen_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgen_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nezteb","download_url":"https://codeload.github.com/Nezteb/gen_ex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgen_ex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29548201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"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":[],"created_at":"2025-10-09T03:19:44.361Z","updated_at":"2026-02-17T15:02:30.710Z","avatar_url":"https://github.com/Nezteb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# gen_ex\n\nA generic Elixir generator that doesn't require Phoenix.\n\nI essentially want to create an Elixir tool similar to:\n- https://www.cookiecutter.io/\n- https://www.hygen.io/\n- https://yeoman.io/\n\n## Concepts / Goals\n\n- EEx Templates\n  - Put custom templates in `priv/templates`.\n  - Run `mix gen \u003ctemplate_slug\u003e \u003cargs\u003e` to generate files.\n  - Each file in `priv/templates` represents a template that will generate a single file.\n    - `priv/templates/new_thing.ex` can be used by running `mix gen new_thing \u003cargs\u003e`.\n  - Each subdirectory in `priv/templates` represents a set of templates that will generate multiple files\n    - `priv/templates/new_things/` can be used by running `mix gen new_things \u003cargs\u003e`.\n    - If a directory shares the name of a single-file template, the single-file template will be used. If there are subdirectories, the generated code will match the same directory structure.\n\n- Tag metadata\n  - The generator will tag generated files/modules with some sort of trackable metadata and version (similar to a Mix project).\n  - It should allow manual editing of everything except the metadata tags.\n  - You can get a list of all template usages and versions with `mix gen.list \u003ctemplate_slug\u003e`\n  - The generator will attempt to update old versions of templates via something like `mix gen.update \u003ctemplate_slug\u003e \u003cnew_version\u003e`.\n    - If it can't, it will display code that needs to be manually added.\n\n## Links\n\nGeneric Elixir generators:\n\n- https://hexdocs.pm/mix/Mix.Generator.html\n- https://github.com/phoenixframework/phoenix/blob/main/lib/mix/phoenix.ex\n- https://github.com/phoenixframework/phoenix/blob/main/installer/lib/phx_new/generator.ex\n- https://github.com/phoenixframework/phoenix/blob/main/installer/lib/mix/tasks/phx.new.ex\n- https://github.com/elixir-ecto/ecto/blob/master/lib/mix/tasks/ecto.gen.repo.ex\n- https://github.com/pragdave/mix_generator\n- https://github.com/zestcreative/elixirstream/blob/main/lib/utility/gen_diff/generator.ex\n\nPhoenix generators:\n\n- https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.html\n- https://victorbjorklund.com/guide-to-custom-phoenix-phx-new-generator-mix-task\n- https://fly.io/phoenix-files/customizing-phoenix-generators/\n\nCode modification:\n\n- https://github.com/doorgan/sourceror\n  - Examples:\n    - https://github.com/surface-ui/surface/blob/main/lib/mix/tasks/surface/surface.init.ex\n    - https://github.com/liveshowy/webauthn_components/blob/main/lib/wac_gen/router.ex\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnezteb%2Fgen_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnezteb%2Fgen_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnezteb%2Fgen_ex/lists"}