{"id":21829803,"url":"https://github.com/0xtlt/deno-shopify","last_synced_at":"2026-05-11T03:34:49.540Z","repository":{"id":62421800,"uuid":"315893587","full_name":"0xtlt/deno-shopify","owner":"0xtlt","description":"Deno lib for Shopify","archived":false,"fork":false,"pushed_at":"2020-11-26T09:29:58.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T00:07:10.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/0xtlt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-25T09:42:47.000Z","updated_at":"2021-01-03T21:30:46.000Z","dependencies_parsed_at":"2022-11-01T17:32:36.551Z","dependency_job_id":null,"html_url":"https://github.com/0xtlt/deno-shopify","commit_stats":null,"previous_names":["techtastet/deno-shopify"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fdeno-shopify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fdeno-shopify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fdeno-shopify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fdeno-shopify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xtlt","download_url":"https://codeload.github.com/0xtlt/deno-shopify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244801086,"owners_count":20512591,"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":[],"created_at":"2024-11-27T18:29:16.269Z","updated_at":"2025-12-11T21:16:31.736Z","avatar_url":"https://github.com/0xtlt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deno Shopify\n\n## Configuration\n\n```typescript\nimport { Shopify } from \"https://deno.land/x/deno_shopify@v0.1.2/mod.ts\";\n\nconst shop = new Shopify({\n  apiKey: \"...\",\n  password: \"...\",\n  myshopify: \"[...].myshopify.com\",\n});\n```\n\n## Themes\n\n### Get all themes\n\nReturns an object array of [Theme](/types/theme.d.ts)\n\n```typscript\ngetThemes(): Promise\u003cTheme[]\u003e\n```\n\n### Get theme\n\nReturns the [Theme](/types/theme.d.ts) associated object\n\n```typescript\ngetTheme(themeId: number): Promise\u003cTheme\u003e\n```\n\n### Get the main theme\n\nReturns the actual main [Theme](/types/theme.d.ts) of your Shop\n\n```typescript\nmainTheme(): Promise\u003cTheme | null\u003e\n```\n\n### Create theme\n\nCreate and returns a new [Theme](/types/theme.d.ts).  \n[Shopify documentation](https://shopify.dev/docs/admin-api/rest/reference/online-store/theme?api%5Bversion%5D=2020-10)\n\n```typescript\ncreateTheme(theme: {\n  name: string;\n  src: string;\n  role: \"main\" | \"unpublished\"\n }): Promise\u003cTheme\u003e\n```\n\n### Update theme\n\nUpdate and returns a [Theme](/types/theme.d.ts).  \n[Shopify documentation](https://shopify.dev/docs/admin-api/rest/reference/online-store/theme?api%5Bversion%5D=2020-10)\n\n```typescript\nasync updateTheme(\n  themeId: number,\n  config: {\n    name?: string;\n    role?: \"main\" | \"unpublished\"\n  },\n): Promise\u003cTheme\u003e\n```\n\n### Delete theme\n\nDelete and returns a [Theme](/types/theme.d.ts).  \n[Shopify documentation](https://shopify.dev/docs/admin-api/rest/reference/online-store/theme?api%5Bversion%5D=2020-10)\n\n```typescript\nasync deleteTheme(themeId: string): Promise\u003cTheme\u003e\n```\n\n## Assets\n\n### Get an asset\n\nRetrieve an [Asset](/types/asset.d.ts).  \n[Shopify documentation](https://shopify.dev/docs/admin-api/rest/reference/online-store/asset?api%5Bversion%5D=2020-10) object\n\n```typescript\nasync getAssets(themeId: number): Promise\u003cAsset[]\u003e\n```\n\n### Create an asset\n\nCreate and returns an [Asset](/types/asset.d.ts).  \n[Shopify documentation](https://shopify.dev/docs/admin-api/rest/reference/online-store/asset?api%5Bversion%5D=2020-10) object\n\n```typescript\nasync createAsset(\n  themeId: number,\n  path: string,\n  value: {\n    value?: string;\n    attachment?: string;\n    src?: string;\n    source_key?: string;\n  },\n): Promise\u003cAsset\u003e\n```\n\n### Delete an asset\n\n```typescript\nasync deleteAsset(\n  themeId: string,\n  path: string,\n): Promise\u003c{ message: string }\u003e\n```\n\n## Pages\n\n[Shopify documentation](https://shopify.dev/docs/admin-api/rest/reference/online-store/page?api%5Bversion%5D=2020-10)\n\n### Get pages\n\nReturns an object array of [Page](/types/page.d.ts) with [Endpoints](/types/page.d.ts)\n\n```typscript\ngetPages(params?: PageEndpoints): Promise\u003cPage[]\u003e\n```\n\n### Get page\n\nReturns the [Page](/types/page.d.ts) associated object with [Endpoints](/types/page.d.ts)\n\n```typscript\nasync getPage(pageId: number): Promise\u003cPage\u003e\n```\n\n### Count pages\n\nReturns the number of pages with [Endpoints](/types/page.d.ts)\n\n```typscript\nasync countPages(params?: PageEndpoints): Promise\u003cnumber\u003e\n```\n\n### Create page\n\nCreate a new [Page](/types/page.d.ts)\n\n```typescript\nasync createPage(params: PageCreate): Promise\u003cPage\u003e\n```\n\n### Update page\n\nUpdate a [Page](/types/page.d.ts)\n\n```typescript\nasync updatePage(pageId: number, params: PageCreate): Promise\u003cPage\u003e\n```\n\n### Delete page\n\nDelete a [Page](/types/page.d.ts)\n\n```typescript\nasync deletePage(pageId: number): Promise\u003cvoid\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtlt%2Fdeno-shopify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xtlt%2Fdeno-shopify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtlt%2Fdeno-shopify/lists"}