{"id":25505238,"url":"https://github.com/errilaz/grimo","last_synced_at":"2026-06-23T12:31:24.105Z","repository":{"id":65126679,"uuid":"582459094","full_name":"errilaz/grimo","owner":"errilaz","description":"Postgres-first data framework","archived":false,"fork":false,"pushed_at":"2023-03-19T22:38:08.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-06T22:11:25.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/errilaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-12-26T22:47:09.000Z","updated_at":"2022-12-26T22:47:43.000Z","dependencies_parsed_at":"2024-09-29T06:17:24.593Z","dependency_job_id":null,"html_url":"https://github.com/errilaz/grimo","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"74110d4af11b356601812fb8c96d0095bcbcb8ec"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/errilaz/grimo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errilaz%2Fgrimo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errilaz%2Fgrimo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errilaz%2Fgrimo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errilaz%2Fgrimo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/errilaz","download_url":"https://codeload.github.com/errilaz/grimo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errilaz%2Fgrimo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34688011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-02-19T05:59:37.231Z","updated_at":"2026-06-23T12:31:24.051Z","avatar_url":"https://github.com/errilaz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grimo\n\n\u003e Postgres-first data framework\n\n⚠️ Under heavy construction, pre-alpha state! ⚠️\n\n⚠️ Working directly on `master` branch - I will break it! ⚠️\n\n- Automatically build an API from your database schema and use it directly on the front-end.\n- Stop writing boilerplate HTTP endpoints. Your database has tables, views, and functions.\n- Stop using ORMs, micro-ORMs, \u0026 mappers. Your database has types.\n- Stop writing authentication \u0026 authorization middleware. Your database has row-level security.\n- A relational database is a **great** place for \"business logic\".\n\n## Similar Projects\n\nThese are much more mature, consider them instead!\n\n- [Kysely](https://github.com/koskimas/kysely)\n- [Orchid ORM](https://orchid-orm.netlify.app)\n- [Zapatos](https://jawj.github.io/zapatos/)\n- [pgtyped](https://github.com/adelsz/pgtyped)\n- [Drizzle ORM](https://github.com/drizzle-team/drizzle-orm)\n- [Supabase](https://postgrest.org/en/stable/)\n- [PostgREST](https://postgrest.org/en/stable/)\n- [Hasura](https://hasura.io)\n\nMost of these libraries are meant for server-side DB access. Grimo is focused on eliminating the server-side as much as possible (similar to Supabase).\n\n## Roadmap\n\n### Basic features\n\n- [x] Schema discovery\n- [x] Strongly typed API generator\n- [x] SELECT and function query builder\n- [ ] OpenAPI document generation\n- [ ] Example project\n- [ ] Tests\n\n### Basic SQL operations (`@grimo/db-transport`)\n\n- [x] Select queries\n- [ ] Inserts\n- [ ] Updates\n- [ ] Deletes\n- [ ] Function calls\n\n### Query Builder (`@grimo/api-client`)\n\n- [x] Selects\n- [x] Inserts\n- [x] Updates\n- [x] Deletes\n- [x] Function calls\n- [ ] Support native Date, BigInt in generated types \u0026 queries, convert in/out of transports\n- [ ] Joins\n- [ ] `DISTINCT`\n- [ ] `COUNT`\n- [ ] `GROUP BY`\n- [ ] Properly type views with `updatable`/`insertable`\n- [ ] Strongly typed `.where` values\n\n### Schema Discovery \u0026 Metadata\n\n- [x] Tables\n- [x] Views\n- [x] Functions\n- [x] Composite types\n- [x] Enums\n- [x] Domains\n- [ ] Primary keys\n- [ ] Foreign keys\n- [ ] [`pg_tagged_unions`](https://github.com/errilaz/pg_tagged_unions) support\n- [ ] Binary data types\n\n### Middleware\n\n- [x] `middleware-express`\n- [x] `middleware-koa`\n- [x] `middleware-hattip`\n- [ ] `middleware-fastify`\n- [ ] `middleware-bun`\n- [ ] `middleware-elysia`\n- [ ] `middleware-hono`\n\n### Transports\n\n- [x] `transport-web`\n- [ ] `transport-db` (partial)\n- [ ] `transport-supabase` (experimental)\n\n## Backlog\n\n- [ ] Investigate decoupling from `pg-promise` - unsure about deno support. `postgres` supports all three runtimes but does not provide necessary standalone escaping/formatting\n- [ ] `generate-rescript` package\n- [ ] Reusable authentication \u0026 authorization\n- [ ] Realtime streams\n- [ ] Tooling/guidance on schema diffing migrations\n- [ ] Investigate making a stand-alone server package\n- [ ] `build-schema` package for simple conventional concat/config of .sql files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferrilaz%2Fgrimo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferrilaz%2Fgrimo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferrilaz%2Fgrimo/lists"}