[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10203":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":41,"discoverSource":42},10203,"postgrest","PostgREST\u002Fpostgrest","PostgREST","REST API for any Postgres database","https:\u002F\u002Fpostgrest.org",null,"Haskell",27215,1201,324,328,0,2,16,122,8,44.24,"MIT License",false,"main",[26,27,28,29,30,31,32,33,34,5,35,36,37],"api","automatic-api","database","haskell","http","pg","pgsql","postgres","postgresql","rest","server","sql","2026-06-12 02:02:18","![Logo](static\u002Fpostgrest.png \"Logo\")\n\n[![Donate](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDonate-Patreon-orange.svg?colorB=F96854)](https:\u002F\u002Fwww.patreon.com\u002Fpostgrest)\n[![Docs](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdocs-latest-brightgreen.svg?style=flat)](http:\u002F\u002Fpostgrest.org)\n[![Docker Stars](https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Fpostgrest\u002Fpostgrest.svg)](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fpostgrest\u002Fpostgrest\u002F)\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fpostgrest\u002Fpostgrest\u002Factions\u002Fworkflows\u002Fci.yaml\u002Fbadge.svg?branch=main)](https:\u002F\u002Fgithub.com\u002FPostgREST\u002Fpostgrest\u002Factions?query=branch%3Amain)\n[![Coverage Status](https:\u002F\u002Fimg.shields.io\u002Fcodecov\u002Fc\u002Fgithub\u002Fpostgrest\u002Fpostgrest\u002Fmain)](https:\u002F\u002Fapp.codecov.io\u002Fgh\u002FPostgREST\u002Fpostgrest)\n[![Hackage docs](https:\u002F\u002Fimg.shields.io\u002Fhackage\u002Fv\u002Fpostgrest.svg?label=hackage)](http:\u002F\u002Fhackage.haskell.org\u002Fpackage\u002Fpostgrest)\n\nPostgREST serves a fully RESTful API from any existing PostgreSQL\ndatabase. It provides a cleaner, more standards-compliant, faster\nAPI than you are likely to write from scratch.\n\n## Sponsors\n\n\u003Ctable align=\"center\">\n  \u003Ctbody>\n    \u003Ctr>\n      \u003Ctd align=\"center\" valign=\"middle\">\n        \u003Ca href=\"https:\u002F\u002Fwww.cybertec-postgresql.com\u002Fen\u002F?utm_source=postgrest.org&utm_medium=referral&utm_campaign=postgrest\" target=\"_blank\">\n          \u003Cimg width=\"296px\" src=\"static\u002Fcybertec.svg\">\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n      \u003Ctd align=\"center\" valign=\"middle\">\n        \u003Ca href=\"https:\u002F\u002Fsupabase.io?utm_source=postgrest%20backers&utm_medium=open%20source%20partner&utm_campaign=postgrest%20backers%20github&utm_term=homepage\" target=\"_blank\">\n          \u003Cimg width=\"296px\" src=\"static\u002Fsupabase.svg\">\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n      \u003Ctd align=\"center\" valign=\"middle\">\n        \u003Ca href=\"https:\u002F\u002Fwww.euronodes.com\u002Fpostgrest\" target=\"_blank\">\n          \u003Cimg width=\"296px\" src=\"static\u002Feuronodes.svg\">\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n    \u003C\u002Ftr>\n    \u003Ctr>\u003C\u002Ftr>\n    \u003Ctr>\n      \u003Ctd align=\"center\" valign=\"middle\">\n        \u003Ca href=\"https:\u002F\u002Fneon.tech\u002F?utm_source=sponsor&utm_campaign=postgrest\" target=\"_blank\">\n          \u003Cimg width=\"296px\" src=\"static\u002Fneon.jpg\">\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n      \u003Ctd align=\"center\" valign=\"middle\">\n        \u003Ca href=\"https:\u002F\u002Fwww.bytebase.com\u002F?utm_source=sponsor&utm_campaign=postgrest\" target=\"_blank\">\n          \u003Cimg width=\"296px\" src=\"static\u002Fbytebase.svg\">\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n    \u003C\u002Ftr>\n  \u003C\u002Ftbody>\n\u003C\u002Ftable>\n\nBig thanks to our sponsors! You can join them by supporting PostgREST on [Patreon](https:\u002F\u002Fwww.patreon.com\u002Fpostgrest).\n\n## Usage\n\n1. See the docs for [how to install PostgREST on your platform](https:\u002F\u002Fdocs.postgrest.org\u002Fen\u002Fstable\u002Fexplanations\u002Finstall.html). You can also [use Docker](https:\u002F\u002Fdocs.postgrest.org\u002Fen\u002Fstable\u002Fexplanations\u002Finstall.html#docker).\n\n2. Invoke for help:\n\n    ```bash\n    postgrest --help\n    ```\n## [Documentation](http:\u002F\u002Fpostgrest.org)\n\nLatest documentation is at [postgrest.org](http:\u002F\u002Fpostgrest.org). You can contribute to the docs in [PostgREST\u002Fpostgrest\u002Fdocs](https:\u002F\u002Fgithub.com\u002FPostgREST\u002Fpostgrest\u002Ftree\u002Fmain\u002Fdocs).\n\n## Performance\n\nTLDR; subsecond response times for up to 2000 requests\u002Fsec on Heroku\nfree tier. If you're used to servers written in interpreted languages,\nprepare to be pleasantly surprised by PostgREST performance.\n\nThree factors contribute to the speed. First the server is written\nin [Haskell](https:\u002F\u002Fwww.haskell.org\u002F) using the\n[Warp](http:\u002F\u002Fwww.yesodweb.com\u002Fblog\u002F2011\u002F03\u002Fpreliminary-warp-cross-language-benchmarks)\nHTTP server (aka a compiled language with lightweight threads).\nNext it delegates as much calculation as possible to the database\nincluding\n\n* Serializing JSON responses directly in SQL\n* Data validation\n* Authorization\n* Combined row counting and retrieval\n* Data post in single command (`returning *`)\n\nFinally it uses the database efficiently with the\n[Hasql](https:\u002F\u002Fnikita-volkov.github.io\u002Fhasql-benchmarks\u002F) library\nby\n\n* Keeping a pool of db connections\n* Using the PostgreSQL binary protocol\n* Being stateless to allow horizontal scaling\n\n## Security\n\nPostgREST [handles\nauthentication](http:\u002F\u002Fpostgrest.org\u002Fen\u002Fstable\u002Fauth.html) (via JSON Web\nTokens) and delegates authorization to the role information defined in\nthe database. This ensures there is a single declarative source of truth\nfor security.  When dealing with the database the server assumes the\nidentity of the currently authenticated user, and for the duration of\nthe connection cannot do anything the user themselves couldn't. Other\nforms of authentication can be built on top of the JWT primitive. See\nthe docs for more information.\n\n## Versioning\n\nA robust long-lived API needs the freedom to exist in multiple\nversions. PostgREST does versioning through database schemas. This\nallows you to expose tables and views without making the app brittle.\nUnderlying tables can be superseded and hidden behind public facing\nviews.\n\n## Self-documentation\n\nPostgREST uses the [OpenAPI](https:\u002F\u002Fopenapis.org\u002F) standard to\ngenerate up-to-date documentation for APIs. You can use a tool like\n[Swagger-UI](https:\u002F\u002Fgithub.com\u002Fswagger-api\u002Fswagger-ui) to render\ninteractive documentation for demo requests against the live API server.\n\nThis project uses HTTP to communicate other metadata as well.  For\ninstance the number of rows returned by an endpoint is reported by -\nand limited with - range headers. More about\n[that](http:\u002F\u002Fbegriffs.com\u002Fposts\u002F2014-03-06-beyond-http-header-links.html).\n\n## Data Integrity\n\nRather than relying on an Object Relational Mapper and custom\nimperative coding, this system requires you to put declarative constraints\ndirectly into your database. Hence no application can corrupt your\ndata (including your API server).\n\nThe PostgREST exposes HTTP interface with safeguards to prevent\nsurprises, such as enforcing idempotent PUT requests.\n\nSee examples of [PostgreSQL\nconstraints](http:\u002F\u002Fwww.tutorialspoint.com\u002Fpostgresql\u002Fpostgresql_constraints.htm)\nand the [API guide](http:\u002F\u002Fpostgrest.org\u002Fen\u002Fstable\u002Fapi.html).\n\n## Supporting development\n\nYou can help PostgREST ongoing maintenance and development by making a regular donation through Patreon https:\u002F\u002Fwww.patreon.com\u002Fpostgrest\n\nEvery donation will be spent on making PostgREST better for the whole community.\n\n## Contributing\n\nContributions are always welcome and appreciated. Please see the [Contributing guidelines](https:\u002F\u002Fgithub.com\u002FPostgREST\u002Fpostgrest\u002Fblob\u002Fmain\u002FCONTRIBUTING.md).\n\n## Thanks\n\nThe PostgREST organization is grateful to:\n\n- The project [sponsors and backers](https:\u002F\u002Fgithub.com\u002FPostgREST\u002Fpostgrest\u002Fblob\u002Fmain\u002FBACKERS.md) who support PostgREST's development.\n- The project [contributors](https:\u002F\u002Fgithub.com\u002FPostgREST\u002Fpostgrest\u002Fgraphs\u002Fcontributors) who have improved PostgREST immensely with their code\n  and good judgement. See more details in the [changelog](https:\u002F\u002Fgithub.com\u002FPostgREST\u002Fpostgrest\u002Fblob\u002Fmain\u002FCHANGELOG.md).\n\nThe cool logo came from [Mikey Casalaina](https:\u002F\u002Fgithub.com\u002Fcasalaina).\n","PostgREST 是一个为任意 PostgreSQL 数据库提供完全 RESTful API 的工具。它使用 Haskell 语言编写，能够自动生成符合 REST 标准的 API，并且比手动编写的 API 更简洁、更标准、更快。核心功能包括自动化的 API 生成、支持 HTTP 和 SQL 查询，以及与现有 PostgreSQL 数据库无缝集成。适用于需要快速构建后端 API 的场景，特别是当已有 PostgreSQL 数据库时，可以显著减少开发时间和工作量。","2026-06-11 03:27:11","top_topic"]