{"id":20887017,"url":"https://github.com/fleetbase/storefront-js","last_synced_at":"2025-05-12T19:33:08.525Z","repository":{"id":117817497,"uuid":"378221589","full_name":"fleetbase/storefront-js","owner":"fleetbase","description":"Fleetbase Storefront Javascript/ Node SDK","archived":false,"fork":false,"pushed_at":"2025-02-11T06:46:49.000Z","size":1252,"stargazers_count":3,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-08T20:48:03.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fleetbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2021-06-18T17:25:53.000Z","updated_at":"2025-04-17T14:55:55.000Z","dependencies_parsed_at":"2023-12-22T08:31:19.178Z","dependency_job_id":"fb5b88a7-baba-48ff-b55a-8e77ff1b7a7d","html_url":"https://github.com/fleetbase/storefront-js","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fstorefront-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fstorefront-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fstorefront-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fstorefront-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fleetbase","download_url":"https://codeload.github.com/fleetbase/storefront-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253808404,"owners_count":21967537,"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-18T08:18:49.491Z","updated_at":"2025-05-12T19:33:07.758Z","avatar_url":"https://github.com/fleetbase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://flb-assets.s3.ap-southeast-1.amazonaws.com/static/storefront-logo.svg\" width=\"380\" height=\"100\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\nEcommerce companion SDK \u0026 API for Fleetbase, build custom shopping experiences for on-demand orders.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@fleetbase/storefront\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@fleetbase/storefront\" alt=\"Version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@fleetbase/storefront\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dw/@fleetbase/storefront\" alt=\"Downloads/week\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/package/@fleetbase/storefront@1.0.0\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/min/@fleetbase/storefront\" alt=\"Bundle Size\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/fleetbase/fleetbase-js/blob/master/LICENSE.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/fleetbase/fleetbase-js\" alt=\"License\" /\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://fleetbase.io\"\u003efleetbase.io\u003c/a\u003e | \u003ca href=\"https://twitter.com/fleetbase_io\"\u003e@fleetbase_io\u003c/a\u003e | \u003ca href=\"https://discord.gg/Q78hkXNK\"\u003eDiscord\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n### With NPM\n\n`npm install @fleetbase/storefront`\n\n### With Yarn\n\n`yarn add @fleetbase/storefront`\n\n## Documentation\n\nSee the [documentation webpage](https://fleetbase.io/docs).\n\nIf you would like to make contributions to the Fleetbase Javascript SDK documentation source, here is a [guide](https://github.com/fleetbase/fleetbase-js/blob/master/CONTRIBUTING.md) in doing so.\n\n## Quick Start for Browser\n\n```js\nimport Storefront, { Product } from \"@fleetbase/storefront\";\n\nconst storefront = new Storefront(\"Your Store Key\");\n\n// list products\nstorefront.products.findAll();\n\n// create a product\nconst product = new Product({ name, description, price });\n\n// retrieve cart \u0026 add item\nstorefront.cart.retrieve().then((cart) =\u003e {\n  cart.add(\"product_xyxyxyx\", 1);\n\n  // empty cart\n  cart.empty();\n});\n\n// checkout\nstorefront.checkout.capture();\n```\n\n## Create a custom adapter\n\nStorefront will eventually allow you to bring your own ecommerce adapter.\n\n`@todo`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleetbase%2Fstorefront-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffleetbase%2Fstorefront-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleetbase%2Fstorefront-js/lists"}