finds.dev← search

// the find

mojotech/torch

★ 1,178 · Elixir · NOASSERTION · updated Apr 2026

A rapid admin generator for Elixir & Phoenix

Torch is a code generator that scaffolds admin interfaces for Phoenix apps — it wraps `phx.gen.html` with its own templates and CSS to produce CRUD pages with filtering, sorting, and pagination baked in. It's aimed at Phoenix developers who need an internal admin panel quickly without reaching for a third-party SaaS. The output is plain Phoenix code you own and can modify.

The approach of generating code rather than runtime magic means there's no black box at runtime — the admin pages are just regular Phoenix controllers and templates you can read and change. Filtrex integration gives you type-aware filtering (string contains, date ranges, boolean equals) without writing the query logic yourself. The `--no-schema --no-context` flags are genuinely useful for bolting an admin view onto an existing domain without duplicating your data layer. i18n support with pluggable message backends is a thoughtful touch most admin generators skip.

Association filters are explicitly unsupported and have been for years — the linked Filtrex issues are from 2017. That's a real gap; almost every admin interface eventually needs to filter by a related field. The generated CSS ships as a prebuilt bundle (Sass compiled to static files), so customizing the look means either overriding with your own stylesheet or rebuilding the asset pipeline yourself. The `Torch.Pagination` module hardcodes Scrivener as its pagination backend, so if your project doesn't use Scrivener you're hand-rolling a replacement. There's no role-based access control or authentication wiring at all — it drops pages into your app with no guard rails, so securing them is entirely your problem.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →