{"id":15792605,"url":"https://github.com/nfour/frontend-state","last_synced_at":"2025-03-31T18:49:58.380Z","repository":{"id":149654808,"uuid":"307024065","full_name":"nfour/frontend-state","owner":"nfour","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-06T21:45:03.000Z","size":1090,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-11T23:11:06.941Z","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/nfour.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":"2020-10-25T04:30:22.000Z","updated_at":"2020-12-06T21:45:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"b03ebb17-070c-478e-8705-17fc2d217bf6","html_url":"https://github.com/nfour/frontend-state","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"0b2b504bbe3e0296b272d363e1c59bdcaaeafe21"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfour%2Ffrontend-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfour%2Ffrontend-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfour%2Ffrontend-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfour%2Ffrontend-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfour","download_url":"https://codeload.github.com/nfour/frontend-state/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523896,"owners_count":20791444,"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":[],"created_at":"2024-10-04T23:02:13.167Z","updated_at":"2025-03-31T18:49:58.356Z","avatar_url":"https://github.com/nfour.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend State Experiments\n\nClone the repo then `yarn \u0026\u0026 yarn dev`\n\n## `gqless`\n\n- PROS:\n  - Generated client from graphql schema\n  - Able to start rediculously fast\n  - Extremely terse \u0026 simple - hard to beat\n  - Type safe\n  - GQL Client/store resembles the actual graph tree\n- CONS:\n  - In BETA\n  - Coupled to React\n  - Doesnt support mutations fully yet\n  - Not well maintained\n\n## `mst-gql`\n\n- PROS:\n  - Generated client from graphql schema\n  - Type safe\n  - Not coupled to React\n- CONS:\n  - Have to define queries semi-manually\n  - Wire up \u0026 boilerplate is non-trivial when surfacing the values within the MST store it generates.\n    - Especially when dealing with a types that contain no unique id\n  - Must provide Root types\n  - Data is not normalized if it is not specified as a Root type\n  - Caching seems broken, always fetches and removes from cache while fetching...\n  - Not well maintained\n- TODO:\n  - make more root types\n    - this will improve the inferred types for nested objects\n      - less assertion of types\n    - allows for normalization to work\n  - figure out how to make cache actually work well\n\n## `recoil`\n\n- PROS:\n  - Can represent minimal shared state with minimal boilerplate or glue\n  - Inline with React's state internal workings\n  - From same corporation as React \n  - Well maintained\n- CONS:\n  - From same corporation as React \n  - Coupled to React\n- NOTES:\n  - Complex global state looks hard / unrecommended \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfour%2Ffrontend-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfour%2Ffrontend-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfour%2Ffrontend-state/lists"}