{"id":18084084,"url":"https://github.com/gridaco/postgrest-openapi","last_synced_at":"2026-05-08T10:36:08.187Z","repository":{"id":260309106,"uuid":"870437313","full_name":"gridaco/postgrest-openapi","owner":"gridaco","description":"JS postgREST OpenAPI Spec parser","archived":false,"fork":false,"pushed_at":"2024-10-10T03:44:51.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T10:17:26.047Z","etag":null,"topics":["openapi","parser","postgresql","postgrest","schema","swagger","visualization"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/gridaco.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},"funding":{"open_collective":"grida"}},"created_at":"2024-10-10T03:27:14.000Z","updated_at":"2024-10-10T03:51:03.000Z","dependencies_parsed_at":"2024-10-30T17:16:26.556Z","dependency_job_id":"0e2c4e3c-9a8f-4736-92f7-297a779c5e24","html_url":"https://github.com/gridaco/postgrest-openapi","commit_stats":null,"previous_names":["gridaco/postgrest-openapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gridaco/postgrest-openapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fpostgrest-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fpostgrest-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fpostgrest-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fpostgrest-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gridaco","download_url":"https://codeload.github.com/gridaco/postgrest-openapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fpostgrest-openapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259915689,"owners_count":22931456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["openapi","parser","postgresql","postgrest","schema","swagger","visualization"],"created_at":"2024-10-31T15:05:37.967Z","updated_at":"2026-05-08T10:36:03.140Z","avatar_url":"https://github.com/gridaco.png","language":"TypeScript","funding_links":["https://opencollective.com/grida"],"categories":[],"sub_categories":[],"readme":"# postgrest-openapi\n\nJS postgREST OpenAPI Spec parser.\n\nA Library for parsing the openapi spec and re-constructing the relational graph and the column infos.\n\n\u003e This is not a request library, for making requests to a postgREST server, use [postgrest-js](https://github.com/supabase/postgrest-js)\n\n### (WIP)\n\n\u003e This is a placeholder repo, we are working on exporting the related code as a package from [hrere](https://github.com/gridaco/grida/blob/main/apps/forms/lib/supabase-postgrest/parse.ts).\n\n## Usage\n\n```bash\nnpm install postgrest-openapi\nyard add postgrest-openapi\npnpm add postgrest-openapi\n```\n\nFetching the OpenAPI spec from a postgREST server:\n\n```ts\nimport { url } from \"postgrest-openapi\";\nconst json = await fetch(\n  url(\"https://xxxxxxxxxx.supabase.co/rest/v1\", {\n    apiKey: \"xxxxxxxxxx\", // your anon key (anon key can fetch the spec just fine)\n  })\n).then((res) =\u003e res.json());\n```\n\nParsing\n\n```ts\nimport Parser from \"postgrest-openapi\";\n\nconst parser = new Parser(json);\n\nconst definition = parser.define();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridaco%2Fpostgrest-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgridaco%2Fpostgrest-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridaco%2Fpostgrest-openapi/lists"}