{"id":21223970,"url":"https://github.com/pdcalado/perry","last_synced_at":"2026-04-02T03:04:10.218Z","repository":{"id":144696831,"uuid":"596221575","full_name":"pdcalado/perry","owner":"pdcalado","description":"A pet project to explore entity relationship concepts","archived":false,"fork":false,"pushed_at":"2023-02-01T22:15:40.000Z","size":494,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-23T12:17:47.684Z","etag":null,"topics":["entity-relationship","graphql","grpc","rust","typescript","wasm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/pdcalado.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}},"created_at":"2023-02-01T18:14:04.000Z","updated_at":"2023-03-26T10:55:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"eefbc37a-46e8-482f-bea1-fa60a298ec5d","html_url":"https://github.com/pdcalado/perry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pdcalado/perry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdcalado%2Fperry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdcalado%2Fperry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdcalado%2Fperry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdcalado%2Fperry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdcalado","download_url":"https://codeload.github.com/pdcalado/perry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdcalado%2Fperry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["entity-relationship","graphql","grpc","rust","typescript","wasm"],"created_at":"2024-11-20T22:54:12.827Z","updated_at":"2026-04-02T03:04:10.194Z","avatar_url":"https://github.com/pdcalado.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Perry\n\nPerry was used as a testing site to explore entity relationship concepts.\n\n## How it works\n\n1. Write a JSON file specifying the entities and relationships, looking like [data.json](demo/data.json).\n1. Create JSON schemas from the spec.\n1. Create SQL schemas from the spec.\n1. Create GraphQL schemas from the spec.\n1. Use a generic UI to create/read/update objects (folder [ui](ui/)).\n\nPerry includes:\n* Models API to simply serve the spec mentioned above ([models](models/)).\n* a shared internal library ([perrydl](perrydl)) in Typescript and Rust (WASM) that:\n  * generates SQL schema from the spec\n  * generates GraphQL schemas from spec\n  * generates JSON schemas from the spec\n* Dupe API ([dupe](dupe/)) which is an extremely unoptimized backend that:\n  * queries the model from Models API\n  * uses [perrydl](perrydl) to generate SQL schema, GraphQL schema and JSON schemas from the spec\n  * bootstraps a sqliteDB using the generated SQL\n  * serves a GraphQL API using the generated GraphQL schema (to serve and mutate the data in the sqliteDB)\n  * uses JSON schemas to validate input data\n  * allows bulk insert and update using CSVs\n  * captures data changes and sends to an in-memory [event-broker](https://gitlab.com/pedrocalado/mrbig/-/tree/main/examples/event-broker) (gRPC-Web)\n* A user interface in Typescript+React+Recoil [ui](ui/)\n  * queries Models API to create entity relationship internal representation\n  * allows exploring entities using a graph like structure\n  * generates forms to create data objects\n  * uses tables and filters to present data objects\n  * listens to events served by an in-memory [event-broker](https://gitlab.com/pedrocalado/mrbig/-/tree/main/examples/event-broker) (gRPC-Web)\n\n```mermaid\ngraph TD\n    S(Data Spec in json) --\u003e|served by| M[Models API]\n    D[Dupe] --\u003e|query models| M\n    D --\u003e|create DB and store data| Q[sqliteDB]\n    D --\u003e|publish mutation events| E[Event Broker]\n    U[UI] --\u003e|query model| M\n    U --\u003e|query data using GraphQL| D\n    U --\u003e|consume mutation events| E\n```\n\n## Bugs and limitations\n\nPerry is not production ready and should not be used in a production environment, it's just exploration:\n- search by text is flawed and applies to first column only\n- gRPC stream lacks keep alive\n- gear icon on text search is useless\n- items cannot be dragged \u0026 dropped even though there are drop zones\n- sessions are volatile, if you reload tabs are lost\n- mutation events published by dupe are meant as a \"poor man's CDC\" but are not consistent (if dupe fails to publish them, they won't be retried)\n- the event broker is an in-memory broker with short-lived historic data\n- changing fields which are unique yields cryptic errors\n\nThis project is not being actively maintained.\n\n# Demo\n\nGo to https://perry-demo.pages.dev and use the credentials:\n* user: `demo@demoperry12345.perry`\n* password: `1veryrandomPassword4perry`\n\nThe demo is fairly limited:\n- data resets every hour\n- data sample does not explore all entities and relations in the data spec\n- backend requests are rate limited to prevent abuse\n- app is halted if high network traffic is detected\n- translation to de_DE comes straight from https://translate.i18next.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdcalado%2Fperry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdcalado%2Fperry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdcalado%2Fperry/lists"}