{"id":17224831,"url":"https://github.com/pseudomuto/shopify-api-flux","last_synced_at":"2025-08-03T22:38:34.251Z","repository":{"id":57358659,"uuid":"41512220","full_name":"pseudomuto/shopify-api-flux","owner":"pseudomuto","description":"An implementation of the Shopify API in Flux","archived":false,"fork":false,"pushed_at":"2015-10-04T15:25:54.000Z","size":2612,"stargazers_count":3,"open_issues_count":23,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T03:42:40.108Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pseudomuto.com/shopify-api-flux/","language":"JavaScript","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/pseudomuto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-27T21:26:45.000Z","updated_at":"2016-10-29T03:05:46.000Z","dependencies_parsed_at":"2022-09-06T22:21:42.455Z","dependency_job_id":null,"html_url":"https://github.com/pseudomuto/shopify-api-flux","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pseudomuto/shopify-api-flux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fshopify-api-flux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fshopify-api-flux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fshopify-api-flux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fshopify-api-flux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pseudomuto","download_url":"https://codeload.github.com/pseudomuto/shopify-api-flux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fshopify-api-flux/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268624113,"owners_count":24280148,"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-08-03T02:00:12.545Z","response_time":2577,"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":[],"created_at":"2024-10-15T04:12:05.401Z","updated_at":"2025-08-03T22:38:34.210Z","avatar_url":"https://github.com/pseudomuto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopify API Flux\n\n[![Build Status](https://travis-ci.org/pseudomuto/shopify-api-flux.svg?branch=master)](https://travis-ci.org/pseudomuto/shopify-api-flux) [![npm version](https://badge.fury.io/js/shopify-api-flux.svg)](http://badge.fury.io/js/shopify-api-flux)\n\nA flux implementation of the Shopify API.\n\n## Installation\n\n```sh\nnpm install --save shopify-api-flux\n```\n\n## Usage\n\nThis project uses ES6 (via Babel et al.). So the examples are in ES6. However, since the distribution (and main file in\npackage.json) is actually compiled down to ES5, you should be able to use this in your ES5 projects without issue.\n\nPlease let me know (or open a PR) if this is not the case.\n\n### Examples\n\nCurrently, there is only one example but I intend to add more over time. For now there is a react native app in the\nexamples/native directory that demonstrates creating and storing a session as well as fetching orders, products and shop\ndetails.\n\nThis will get fleshed out more as the API comes closer to complete.\n\n### Quick Start\n\n```javascript\nimport ShopifyAPI from \"shopify-api-flux\";\n\nconst { Session, Shop } = ShopifyAPI;\n\n// set the Domain and API token\nSession.init(\"YOUR_SHOP\", \"YOUR_API_TOKEN\")\n\nclass ShopView extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = { shop: null }\n  }\n\n  render() {\n    return (\n      // YOUR VIEW CODE\n    );\n  }\n\n  componentWillMount() {\n    Shop.store.addListener(this._onChange.bind(this));\n  }\n\n  componentDidMount() {\n    Shop.fetch()\n  }\n\n  _onChange() {\n    this.setState({ shop: Shop.store.getCurrent() });\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpseudomuto%2Fshopify-api-flux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpseudomuto%2Fshopify-api-flux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpseudomuto%2Fshopify-api-flux/lists"}