smallnest/gen
Converts a database into gorm structs and RESTful api observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3101
- days_rel: n/a
- days_push: 1227
- n_releases_24m: 0
Adoption not part of the score
1439 stars · 230 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go CLI code generator that connects to an existing database, analyzes its schema, and produces GORM-compatible struct definitions with gorm, JSON, db, and protobuf tags. It can also scaffold a complete CRUD RESTful API project template from the database.
Use cases
- generate gorm structs from an existing database schema
- scaffold a CRUD REST API from database tables
- convert mysql or sqlite tables into go structs with tags
- generate nullable column types for go structs
- bootstrap a go backend project from a legacy database
When to choose
- you have an existing database and want Go structs or a REST API generated from it
- you use GORM and want tags and model methods generated automatically
- you want a quick scaffold for CRUD endpoints over your tables
When to avoid
- you prefer writing models by hand or use a different ORM
- you need a runtime ORM library rather than a one-time code generator
- your schema changes frequently and you need live migrations
Facets
cli-tool · maturity maintenance
orm api-framework database databases backend developer-tools apis cli go cross-platform gorm rest-api database-to-code crud scaffolding codegen code-generation
1 source
- readme: https://github.com/smallnest/gen · fetched 2026-08-28 · 2f26613a1760
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| smallnest/gen | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem