{"id":27996485,"url":"https://github.com/bold-commerce/bold-subscriptions-js","last_synced_at":"2025-05-08T21:44:21.763Z","repository":{"id":46926065,"uuid":"199721960","full_name":"bold-commerce/bold-subscriptions-js","owner":"bold-commerce","description":"This Javascript API makes it easy to add subscriptions to the cart and navigate to the Bold Subscriptions or Cashier checkout.","archived":false,"fork":false,"pushed_at":"2023-01-04T05:49:52.000Z","size":1675,"stargazers_count":6,"open_issues_count":17,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-08T21:44:16.715Z","etag":null,"topics":["snyk-scan"],"latest_commit_sha":null,"homepage":"","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/bold-commerce.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}},"created_at":"2019-07-30T20:23:57.000Z","updated_at":"2024-09-11T19:56:59.000Z","dependencies_parsed_at":"2023-02-01T23:45:33.453Z","dependency_job_id":null,"html_url":"https://github.com/bold-commerce/bold-subscriptions-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bold-commerce%2Fbold-subscriptions-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bold-commerce%2Fbold-subscriptions-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bold-commerce%2Fbold-subscriptions-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bold-commerce%2Fbold-subscriptions-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bold-commerce","download_url":"https://codeload.github.com/bold-commerce/bold-subscriptions-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253154116,"owners_count":21862458,"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":["snyk-scan"],"created_at":"2025-05-08T21:44:20.095Z","updated_at":"2025-05-08T21:44:21.741Z","avatar_url":"https://github.com/bold-commerce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BoldSubscriptions.js\n\n\u003e :warning: This package is meant for Bold Subscriptions v1 which is no longer installable and has been replaced by Bold Subscriptions v2. See the [Bold Developer Portal](https://developer.boldcommerce.com/) for the latest developer documentation.\n\n## About\n\nUse these Javascript APIs to easily build custom subscription flows, add subscriptions to the cart and navigate to the Bold Subscriptions or Cashier checkout. The available methods are a fast alternative to and largely based off of our [Custom Subscription Flow](https://docs.boldapps.net/subscriptions/storefront#custom-subscription-flow) and [Widget API](https://docs.boldapps.net/subscriptions/storefront#widget-api) documentation. Included with these API methods are detailed exceptions and error messages to help you quickly and reliably develop custom subscription flows.\n\n## Browser Support\n\n![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\n--- | --- | --- | --- | --- | --- |\nLatest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |\n\n## Installing\n\nUsing npm:\n\n```shell\n$ npm install @boldcommerce/bold-subscriptions-js\n```\n\nUsing yarn:\n\n```shell\n$ yarn add @boldcommerce/bold-subscriptions-js\n```\n\nUsing CDN:\n\n```html\n\u003cscript src=\"https://unpkg.com/@boldcommerce/bold-subscriptions-js\"\u003e\u003c/script\u003e\n```\n\n## API Reference\n\nTo view our full documentation on the available methods head over to our [BoldSubscriptions.js API reference](https://docs.boldapps.net/subscriptions/storefront#boldsubscriptions-js).\n\n### Example Node.js usage\n\n```javascript\nimport { cart } from '@boldcommerce/bold-subscriptions-js';\ncart.standard.addToCart({\n\t'id': 1250183643165,\n\tproperties: {\n\t\t'group_id': 1234,\n\t\t'frequency_num': 1,\n\t\t'frequency_type': 3,\n\t\t'frequency_type_text': 'Every 1 Month(s)',\n\t}\n})\n\t.then(() =\u003e alert('Successfully added!'));\n```\n\n\n### Example CDN usage\n\n```html\n\u003cform\u003e\n\t\u003cinput type=\"hidden\" name=\"group_id\" value=\"1234\"\u003e\n\t\u003cinput type=\"hidden\" name=\"frequency_num\" value=\"1\"\u003e\n\t\u003cinput type=\"hidden\" name=\"frequency_type\" value=\"3\"\u003e\n\t\u003cinput type=\"hidden\" name=\"frequency_type_text\" value=\"Every 1 Month(s)\"\u003e\n\t\u003cinput type=\"hidden\" name=\"quantities[]\" value=\"1\"\u003e\n\t\u003cinput type=\"hidden\" name=\"variant_id[]\" value=\"1250183643165\"\u003e\n\t\u003cinput type=\"hidden\" name=\"product_id[]\" value=\"103180140573\"\u003e\n\t\u003cbutton onclick=\"BoldSubscriptions.cart.standard.directlyToCheckout(event)\"\u003eCheckout\u003c/button\u003e\n\u003c/form\u003e\n```\n\n## Contributing\n\nThis project is read only. Please contact [Bold Commerce](https://boldcommerce.com/) with any changes or additions you would like to make.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/bold-commerce/bold-subscriptions-js/blob/master/LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbold-commerce%2Fbold-subscriptions-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbold-commerce%2Fbold-subscriptions-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbold-commerce%2Fbold-subscriptions-js/lists"}