{"repo":"frappe/frappe-react-sdk","free":true,"listed":false,"github":"https://github.com/frappe/frappe-react-sdk","clone":"git clone https://github.com/frappe/frappe-react-sdk.git","description":"React hooks for Frappe","language":"TypeScript","stars":186,"topics":["frappe","react"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"frappe-react-sdk React hooks library for a Frappe Framework backend. Features The library currently supports the following features: - 🔐 Authentication - login with username and password (cookie based) + token based authentication, logout and maintain user state - 🗄 Database - Hooks to get document, get list of documents, get count, create, update and delete documents - 📄 File upload - Hook to upload a file to the Frappe filesystem. Maintains loading, progress and error states. - 🤙🏻 API calls - Hooks to make API calls to your whitelisted backend functions and maintain state - 🔍 Search - Hook to search documents in your database (with debouncing ✨) We plan to add the following features in the future: - Support for other common functions like exists in the database. The library uses frappe-js-sdk and SWR under the hood to make API calls to your Frappe backend. SWR SWR uses a cache invalidation strategy and also updates the data constantly and automatically (in the background). This allows the UI to always be fast and reactive. The hooks in the library use the default configuration for useSWR but you will be able to overwrite the configuration of useSWR. Please refer to the useSWR API Options Looking for a Frappe frontend library for other Javascript frameworks? You can use frappe-js-sdk to interface your frontend web app with Frappe. Maintainers Maintainer GitHub Social -------------- ----------------------------------------------- ----------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/frappe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/frappe/frappe-react-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}