{"id":14070545,"url":"https://github.com/Eureka-Shoulders/fetchx","last_synced_at":"2025-07-30T08:30:52.598Z","repository":{"id":37330204,"uuid":"430847942","full_name":"Eureka-Shoulders/fetchx","owner":"Eureka-Shoulders","description":"Beautiful way to fetch data in React","archived":false,"fork":false,"pushed_at":"2023-07-19T05:57:28.000Z","size":1131,"stargazers_count":69,"open_issues_count":12,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-06T19:00:08.271Z","etag":null,"topics":["axios","fetch","http-client","mobx","react","shoulders"],"latest_commit_sha":null,"homepage":"https://eureka-shoulders.github.io/fetchx/","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/Eureka-Shoulders.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-22T20:00:58.000Z","updated_at":"2023-10-23T19:09:23.000Z","dependencies_parsed_at":"2023-02-10T17:00:23.604Z","dependency_job_id":null,"html_url":"https://github.com/Eureka-Shoulders/fetchx","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eureka-Shoulders%2Ffetchx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eureka-Shoulders%2Ffetchx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eureka-Shoulders%2Ffetchx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eureka-Shoulders%2Ffetchx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eureka-Shoulders","download_url":"https://codeload.github.com/Eureka-Shoulders/fetchx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":215155197,"owners_count":15836926,"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":["axios","fetch","http-client","mobx","react","shoulders"],"created_at":"2024-08-13T07:07:51.332Z","updated_at":"2024-08-13T07:17:16.398Z","avatar_url":"https://github.com/Eureka-Shoulders.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# FetchX\n\n![npm](https://img.shields.io/npm/v/@euk-labs/fetchx)\n![NPM](https://img.shields.io/npm/l/@euk-labs/fetchx)\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Eureka-Shoulders/fetchx/CI)\n![npm](https://img.shields.io/npm/dw/@euk-labs/fetchx)\n\nFetchX is a fetching library made for React built with [axios](https://github.com/axios/axios) and [mobx](https://github.com/mobxjs/mobx) that give you an easy way to handle CRUD of entities.\n\n## Installation\n\nUsing npm:\n\n```bash\nnpm i @euk-labs/fetchx mobx mobx-react-lite\n```\n\nUsing yarn:\n\n```bash\nyarn add @euk-labs/fetchx mobx mobx-react-lite\n```\n\n### Dependencies\n\n- Axios is used to fetch data from HTTP requests\n- MobX is used to generate Stores and Hooks powered by these stores to make a beautiful reactive way to control the data on your interfaces.\n\n## Usage\n\n### `HttpService`\n\nThe HttpService is a class that will work as a wrapper for axios. It will handle all the requests and provide helpers to make your life easier.\n\n### `Repository`\n\nRepositories will abstract the CRUD operations of your entities. No state is stored in the repository, it only provides methods to fetch, create, update and delete entities.\n\n### `ListStore`\n\nListStores are a set of states and actions built with MobX to handle a list of entities with resources like pagination, filters and inifinite scroll strategies.\nThey need a repository to work and know how to fetch the data.\n\nPlease read the MobX documentation to know more about the different ways to make your components reactive.\n\n### `useList`\n\nA hook to use the ListStore in your components. It will return the current state of the ListStore and the actions to interact with it.\nLike ListStore, it needs a repository to work.\n\n### `EntityStore`\n\nIn contrast with the ListStore, EntityStores can only handle a single entity. It can be used to fetch the entity by an identifier, update the loaded entity and delete it.\n\n### `useEntity`\n\nA hook to use the EntityStore in your components. It will return the current state of the EntityStore and the actions to interact with it.\nLike EntityStore, it needs a repository to work.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEureka-Shoulders%2Ffetchx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEureka-Shoulders%2Ffetchx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEureka-Shoulders%2Ffetchx/lists"}