{"id":28273072,"url":"https://github.com/zesty-io/fetch-wrapper","last_synced_at":"2025-09-03T18:41:23.712Z","repository":{"id":38096644,"uuid":"487043545","full_name":"zesty-io/fetch-wrapper","owner":"zesty-io","description":"A client side JavaScript fetch wrapper for https://www.zesty.io APIs ","archived":false,"fork":false,"pushed_at":"2025-05-19T19:04:18.000Z","size":1359,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-17T23:39:35.387Z","etag":null,"topics":["api","api-wrapper","javascript","wrapper","zesty-io"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zesty-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2022-04-29T16:40:28.000Z","updated_at":"2025-05-19T19:04:21.000Z","dependencies_parsed_at":"2024-05-13T12:34:28.621Z","dependency_job_id":"9eeb3b65-ec1d-43c5-a3ed-396d2e3fbc8a","html_url":"https://github.com/zesty-io/fetch-wrapper","commit_stats":null,"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/zesty-io/fetch-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesty-io%2Ffetch-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesty-io%2Ffetch-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesty-io%2Ffetch-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesty-io%2Ffetch-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zesty-io","download_url":"https://codeload.github.com/zesty-io/fetch-wrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesty-io%2Ffetch-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273492071,"owners_count":25115502,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":["api","api-wrapper","javascript","wrapper","zesty-io"],"created_at":"2025-05-21T00:17:15.019Z","updated_at":"2025-09-03T18:41:23.688Z","avatar_url":"https://github.com/zesty-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://brand.zesty.io/zesty-io-logo-horizontal.png\" height=\"100\" alt=\"zesty logo\" /\u003e\n\n# Zesty.io API Fetch Wrapper\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![GitHub package.json version](https://img.shields.io/github/package-json/v/zesty-io/fetch-wrapper?style=for-the-badge)\n![GitHub issues](https://img.shields.io/github/issues/zesty-io/fetch-wrapper?style=for-the-badge)\n![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge\u0026logo=typescript\u0026logoColor=white)\n![Webpack](https://img.shields.io/badge/webpack-%238DD6F9.svg?style=for-the-badge\u0026logo=webpack\u0026logoColor=black)\n![NPM](https://img.shields.io/npm/l/@zesty-io/live-editor?style=for-the-badge)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\nA javascript fetch wrapper for the Zesty.io APIs for frontend clients. For a backend node wrapper, use the [Zesty.io Node SDK](https://www.npmjs.com/package/@zesty-io/sdk)\n\n\u003c/div\u003e\n\n## ⚡ Getting Started\n\nInclude the fetch wrapper into your project\n\n```jsx\n\u003cscript\n   async\n   src=\"https://cdn.jsdelivr.net/gh/zesty-io/fetch-wrapper@latest/dist/index.js\"\n\u003e\u003c/script\u003e\n```\n\n## 🚀 Example Usage\n\nFor this wrapper to run, you need an authenticated Zesty.io user APP_SID and a Instance ZUID\n\n```jsx\nconst instanceZUID = \"8-xyzxyz-xyz\"\nconst userAppSID = \"xxxxxxxxxx\"\n\nconst ZestyAPI = new Zesty.FetchWrapper(instanceZUID, userAppSID)\n\nconsole.log(ZestyAPI.getModels())\n```\n\n## 🎯 Features\n\n### API Service the Wrapper can Access\n\n-  Instances API https://instances-api.zesty.org/\n-  Accounts API https://accounts-api.zesty.org/\n-  Auth API https://auth-api.zesty.org/\n-  Media API https://media-api.zesty.org/\n\nNote all endpoints are ported. If you wish to port any missing endpoints, create a fork and pull request.\n\n## 💡 Running locally\n\n-  ### 🙂 Using npm install\n\n```jsx\nnpm install \u0026\u0026 npm start\n```\n\nthen add this in the head of Html\n\n```jsx\n\u003cscript async src=\"http://localhost:8080/index.js\"\u003e\u003c/script\u003e\n```\n\n-  ### 🐳 Using Docker\n\n```jsx\ndocker build -t fetchWrapper .\n```\n\n```jsx\ndocker run -p 8080:8080 fetchWrapper\n\n```\n\nthen add this in the head of Html\n\n```jsx\n\u003cscript async src=\"http://localhost:8080/index.js\"\u003e\u003c/script\u003e\n```\n\n## 💡 Use in Development Mode\n\nTo access dev and stage api url for zesty development, pass options to the instantation like so:\n\n```jsx\nconst instanceZUID = \"8-xyzxyz-xyz\"\nconst userAppSID = \"xxxxxxxxxx\"\n\nconst ZestyAPI = new Zesty.FetchWrapper(instanceZUID, userAppSID, {\n   sitesServiceURL: \"https://svc.dev.zesty.io/sites-service/\",\n   instancesAPIURL: \".api.dev.zesty.io/v1\",\n   authAPIURL: \"https://auth.api.dev.zesty.io\",\n   accountsAPIURL: \"https://accounts.api.dev.zesty.io/v1\",\n   mediaAPIURL: \"https://svc.dev.zesty.io\",\n})\n\nconsole.log(ZestyAPI.getModels())\n```\n\n## 💡 When commiting to github use\n\n```jsx\nnpm run commit\n```\n\n## 💡 Bulding in Production\n\n-  Automated\n\n   -  On successful merge to main will publish new release\n\n-  Manually\n\n```jsx\ngit checkout main \u0026\u0026 npm run build \u0026\u0026 npm run release\n```\n\n## 🖥️ Code Contributors\n\n\u003cbr /\u003e\n  \u003cimg src =\"https://contrib.rocks/image?repo=zesty-io/fetch-wrapper\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzesty-io%2Ffetch-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzesty-io%2Ffetch-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzesty-io%2Ffetch-wrapper/lists"}