{"id":16595444,"url":"https://github.com/vasucp1207/appwrite-web-react","last_synced_at":"2026-04-16T18:03:13.820Z","repository":{"id":153022329,"uuid":"624864941","full_name":"vasucp1207/appwrite-web-react","owner":"vasucp1207","description":"Appwrite web and auth-kit","archived":false,"fork":false,"pushed_at":"2023-04-15T17:26:03.000Z","size":367,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T03:43:55.728Z","etag":null,"topics":["appwrite","react","web"],"latest_commit_sha":null,"homepage":"https://appwrite-web.netlify.app/","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/vasucp1207.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-04-07T12:57:59.000Z","updated_at":"2023-10-12T06:57:43.000Z","dependencies_parsed_at":"2023-07-12T01:16:49.376Z","dependency_job_id":null,"html_url":"https://github.com/vasucp1207/appwrite-web-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasucp1207%2Fappwrite-web-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasucp1207%2Fappwrite-web-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasucp1207%2Fappwrite-web-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasucp1207%2Fappwrite-web-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasucp1207","download_url":"https://codeload.github.com/vasucp1207/appwrite-web-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242260085,"owners_count":20098465,"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":["appwrite","react","web"],"created_at":"2024-10-11T23:50:21.983Z","updated_at":"2026-04-16T18:03:13.813Z","avatar_url":"https://github.com/vasucp1207.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![appwrite1](https://user-images.githubusercontent.com/85363195/232071479-e176041e-0be3-4123-91bc-d4d296072660.gif)\n\n\n\u003ch1 align=\"center\"\u003eAppwrite Web React\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eThis library makes it easy to add authentication features to your web app with ready-made auth screens and a bunch of helper functions for interacting to your appwrite database.\u003c/p\u003e\n\n- ✅ Easy to use auth screens\n- ✅ Confirmation toasts messages\n- ✅ Utilities for appwrite server\n- ✅ OAuth2 providers\n- ✅ Validation errors\n\n## 📦Installation\n\nYou can install this library via npm:\n```bash\nnpm i appwrite-web-react\n```\n\n## 🦄Usage\n\nSetup api's to interact with the various services provided by the Appwrite server,\n\n```tsx\n// utils/utils.js\nimport { useConfig } from \"appwrite-web-react\";\n\nconst { client, account, database, storage, avatars } = useConfig({\n  endpoint: API Endpoint,\n  projectId: Project ID\n});\n\nexport {\n  client,\n  account,\n  database,\n  storage,\n  avatars\n}\n```\n\n### Auth Screens\n\nTo setup your auth flow quickly,\n```tsx\n// index.tsx\nimport { SignInEmail } from 'appwrite-web-react';\nimport \"react-toastify/dist/ReactToastify.css\";\nimport { account } from '../../utils/utils';\n\nexport default function Home() {\n  return (\n    \u003cdiv\u003e\n      \u003cSignInEmail \n        account={account} \n        theme='light' \n        routePush='/room'\n        routeSign='http://localhost:3000/'\n        routeRst='http://localhost:3000/reset'\n      /\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n```tsx\n// reset.tsx\nimport React from 'react'\nimport { Reset, useConfig } from 'appwrite-web-react';\nimport \"react-toastify/dist/ReactToastify.css\";\nimport { account } from '../../utils/utils';\n\nfunction reset() {\n  return (\n    \u003cdiv\u003e\n      \u003cReset \n        theme=\"light\" \n        account={account} \n        routePush='/room' \n      /\u003e\n    \u003c/div\u003e\n  )\n}\n\nexport default reset\n```\n\nSignInEmail screen props,\n- `account`: Appwrite [account api](https://appwrite.io/docs/client/account).\n- `theme`: Theme of auth screen.\n- `routePush`: Route you redirected to after loged in your account.\n- `routeSign`: Absolute route of your SignInEmail screen.\n- `routeRst`: Absolute path of your Reset screen.\n\n### Utilities\n\n```tsx\n// room.tsx\nimport { useListDocuments, useLogedAccount } from 'appwrite-web-react';\nimport { client, database } from '../../utils/utils';\n\nfunction room() {\n  let { data: movies, error } = useListDocuments(client, database);\n  return (\n    \u003cdiv\u003e\n      {movies?.map((movie) =\u003e {\n        \u003cdiv\u003e\n          \u003cdiv\u003e{movie.name}\u003c/div\u003e\n          \u003cdiv\u003e{movie.year}\u003c/div\u003e\n        \u003c/div\u003e\n      })}\n    \u003c/div\u003e\n  )\n}\n\nexport default room\n```\n\n`useListDocuments` is a hook that uses the [swr](https://swr.vercel.app/) library from Next.js to fetch and automatically re-fetch data from a collection in the Appwrite database when it's changes so there is no need to managing the states for data when working with this hook.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasucp1207%2Fappwrite-web-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasucp1207%2Fappwrite-web-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasucp1207%2Fappwrite-web-react/lists"}