{"id":15136807,"url":"https://github.com/oconr/apptyped","last_synced_at":"2025-04-06T03:45:19.408Z","repository":{"id":222582637,"uuid":"757231920","full_name":"oconr/apptyped","owner":"oconr","description":"Create fully typed SDKs for Appwrite based on your collections","archived":false,"fork":false,"pushed_at":"2024-02-28T17:35:04.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T11:15:39.070Z","etag":null,"topics":["appwrite","sdk","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/apptyped","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oconr.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":{"github":["oconr"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"polar":null,"custom":null}},"created_at":"2024-02-14T04:06:27.000Z","updated_at":"2024-02-28T14:32:46.000Z","dependencies_parsed_at":"2024-02-15T04:19:46.597Z","dependency_job_id":"bb7434db-560c-411f-bce0-17b47782a7ed","html_url":"https://github.com/oconr/apptyped","commit_stats":null,"previous_names":["oconr/appwrite-sdk","oconr/apptyped"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oconr%2Fapptyped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oconr%2Fapptyped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oconr%2Fapptyped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oconr%2Fapptyped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oconr","download_url":"https://codeload.github.com/oconr/apptyped/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430835,"owners_count":20937873,"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","sdk","typescript"],"created_at":"2024-09-26T06:41:25.367Z","updated_at":"2025-04-06T03:45:19.391Z","avatar_url":"https://github.com/oconr.png","language":"TypeScript","readme":"# Apptyped\n\nThis is a package that creates a fully typed SDK based on your Appwrite collections\n\n\u003e Install using `npm install apptyped`\n\n- Create `.env` with the following:\n  - `APPWRITE_ENDPOINT` - The endpoint of your Appwrite instance\n  - `APPWRITE_PROJECT_ID` - The ID of your Appwrite project\n  - `APPWRITE_API_KEY` - An Appwrite API key is required to generate the types from your collections as well as using the server-side client\n- Run `npx apptyped g` to generate the fully typed SDK\n\n\u003e This SDK is compatible with Appwrite server version 1.4.x\n\n### Example\n\n```typescript\n// Import location will depend on if you're using it for server-side or client-side\n// Server-side SDK import\nimport { Databases, Client } from 'apptyped/server'\n// Client-side SDK import\nimport { Databases, Client } from 'apptyped/client';\n\nconst client = new Client();\n// Databases will return as an object of all your collections which can be access as shown below\nconst { BlogPosts } = new Databases(client);\n\n// Fully typed queries can be accessed from .q of each collection\nconst data = await BlogPosts.list([\n    BlogPosts.q.equal(\"published\", true),\n]);\n```\n","funding_links":["https://github.com/sponsors/oconr"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foconr%2Fapptyped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foconr%2Fapptyped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foconr%2Fapptyped/lists"}