{"id":26470173,"url":"https://github.com/mkloubert/appwrite-sdk-js","last_synced_at":"2026-04-17T02:33:26.691Z","repository":{"id":283119877,"uuid":"950524719","full_name":"mkloubert/appwrite-sdk-js","owner":"mkloubert","description":"An (unofficial) enhancement for official SDK of Appwrite.","archived":false,"fork":false,"pushed_at":"2025-03-18T16:44:12.000Z","size":204,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T04:58:10.499Z","etag":null,"topics":["appwrite","appwrite-database","sdk","sdk-nodejs","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"https://mkloubert.github.io/appwrite-sdk-js/","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/mkloubert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://www.paypal.me/MarcelKloubert"],"buy_me_a_coffee":"mkloubert"}},"created_at":"2025-03-18T09:49:12.000Z","updated_at":"2025-03-18T16:46:07.000Z","dependencies_parsed_at":"2025-03-18T17:49:16.442Z","dependency_job_id":null,"html_url":"https://github.com/mkloubert/appwrite-sdk-js","commit_stats":null,"previous_names":["mkloubert/appwrite-sdk-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mkloubert/appwrite-sdk-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkloubert%2Fappwrite-sdk-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkloubert%2Fappwrite-sdk-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkloubert%2Fappwrite-sdk-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkloubert%2Fappwrite-sdk-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkloubert","download_url":"https://codeload.github.com/mkloubert/appwrite-sdk-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkloubert%2Fappwrite-sdk-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31912501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["appwrite","appwrite-database","sdk","sdk-nodejs","typescript","typescript-library"],"created_at":"2025-03-19T17:49:15.563Z","updated_at":"2026-04-17T02:33:26.669Z","avatar_url":"https://github.com/mkloubert.png","language":"TypeScript","readme":"# @marcelkloubert/appwrite-sdk\n\n\u003e An (unofficial) enhancement for [official SDK of Appwrite](https://appwrite.io/docs/quick-starts/node) which runs on [Node.js 18+](https://nodejs.org/en/blog/release/v18.0.0/) or later.\n\n## Install\n\nExecute the following command from your project folder, where your package.json file is stored:\n\n```bash\nnpm i @marcelkloubert/appwrite-sdk\n```\n\n## Usage\n\n```typescript\nimport { Query } from \"node-appwrite\";\nimport { AppwriteProject } from \"@marcelkloubert/appwrite-sdk\";\n\ninterface BarCollection {\n  buzz: number;\n}\n\n// set environment variables `APPWRITE_API_KEY` and `APPWRITE_PROJECT_ID`\n// with correct values\nconst project = new AppwriteProject();\n\n// initialize project and make it available\n// as a singleton instance if possible\nawait project.init({ withDatabase: true });\n\nfor (const database of project.databases) {\n  console.log(\"Database:\", database.name);\n\n  // `database` is an iterator of collections\n  for (const collection of database) {\n    console.log(\"\\tCollection:\", collection.name);\n\n    // `collection` is an iterator of attributes\n    for (const attribute of collection) {\n      console.log(\"\\tAttribute:\", attribute.name);\n    }\n  }\n}\n\n// get existing database `foo`\nconst foo = project.databases.getDatabase(\"foo\");\n\n// get existing collection `bar` inside `foo`\nconst bar = foo.getCollection(\"bar\").wrap\u003cBarCollection\u003e();\n\n// insert a new document\nconst newDoc = await bar.insertOne({ buzz: 42 });\n\n// update an existing document\nconst updatedDoc = await bar.updateOne(newDoc, { buzz: 666 });\n\n// remove a document\nawait bar.deleteOne(updatedDoc);\n\n// query multiple documents\nconst asyncCursor = bar.query({\n  queries: [Query.greaterThan(\"$createdAt\", new Date().toISOString())],\n});\nfor await (const document of asyncCursor) {\n  console.log(\"Document:\", document.$id);\n}\n\n// query a single document\nconst maybeExistingDoc = await bar.queryOne({\n  queries: [Query.equal(\"buzz\", 667)],\n});\nif (maybeExistingDoc) {\n  console.log(\"Document with buzz=667 exists as:\", maybeExistingDoc.$id);\n} else {\n  console.log(\"Document with buzz=667 does not exist\");\n}\n```\n\n## Currently supported\n\nThe project is currently under heavy development.\n\nCurrently the following features running have a \"quite stable\" beta status:\n\n- [x] [Databases](https://appwrite.io/docs/references/cloud/client-web/databases)\n- [ ] [Account](https://appwrite.io/docs/references/cloud/client-web/account)\n- [ ] [Avatars](https://appwrite.io/docs/references/cloud/client-web/avatars)\n- [ ] [Functions](https://appwrite.io/docs/references/cloud/client-web/functions)\n- [ ] [Localization](https://appwrite.io/docs/references/cloud/client-web/locale)\n- [ ] [Messaging](https://appwrite.io/docs/references/cloud/client-web/messaging)\n- [ ] [Storage](https://appwrite.io/docs/references/cloud/client-web/storage)\n- [ ] [Teams](https://appwrite.io/docs/references/cloud/client-web/teams)\n- [ ] [Users](https://appwrite.io/docs/references/cloud/client-web/users)\n\n## Documentation\n\nThe API documentation can be found [here](https://mkloubert.github.io/appwrite-sdk-js/).\n\n## License\n\nMIT © [Marcel Joachim Kloubert](https://github.com/mkloubert)\n\n## Support and contribute\n\n\u003cspan class=\"badge-paypal\"\u003e\u003ca href=\"https://paypal.me/MarcelKloubert\" title=\"Donate to this project using PayPal\"\u003e\u003cimg src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\u003cspan class=\"badge-patreon\"\u003e\u003ca href=\"https://patreon.com/mkloubert\" title=\"Donate to this project using Patreon\"\u003e\u003cimg src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\u003cspan class=\"badge-buymeacoffee\"\u003e\u003ca href=\"https://buymeacoffee.com/mkloubert\" title=\"Donate to this project using Buy Me A Coffee\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\n[Contribution guidelines](./CONTRIBUTE.md)\n","funding_links":["https://www.paypal.me/MarcelKloubert","https://buymeacoffee.com/mkloubert","https://paypal.me/MarcelKloubert","https://patreon.com/mkloubert"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkloubert%2Fappwrite-sdk-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkloubert%2Fappwrite-sdk-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkloubert%2Fappwrite-sdk-js/lists"}