MCPcopy Index your code
hub / github.com/dayhaysoos/use-shopping-cart

github.com/dayhaysoos/use-shopping-cart @2.4.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.4.2 ↗ · + Follow
63 symbols 193 edges 57 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

use-shopping-cart

A React Hook that handles shopping cart state and logic for Stripe.

https://useshoppingcart.com

All Contributors NPM JavaScript Style Guide

Product JSON example Front-End code example Serverless code example Click to open gist.

Documentation

View our comprehensive documentation website. ✨📚

Frequently Asked Questions

This is a list of questions that you might have about use-shopping-cart once you get started.

Why am I getting an error about formatToParts not being a function on older browsers?

You need to polyfill formatToParts if you want to support older browsers. You can find more info on manually polyfilling formatToParts in issue #158.

Why am I getting an SSR error about text content not matching?

It is likely that you are using a value like cartCount that is loaded from LocalStorage which doesn't exist on the server. More info in issue #122

Contributing to use-shopping-cart

If you're working on this project please check out the CONTRIBUTING.md file.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Kevin Cunningham ⚠️ 💻 Ian Jones ⚠️ Chris Brown ⚠️ 💻 📖 Nick DeJesus 💻 ⚠️ Shodipo Ayomide 📖 Anders Bech Mellson 💻 Thor 雷神 📖 💻 ⚠️
Ryan Warner 📖 Horacio Herrera 📖 Brian Douglas 📖 Brittney Postma 📖 Prince Wilson 📖 Eric Howey 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © dayhaysoos

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 56
Interface 7

Languages

TypeScript100%

Modules by API surface

use-shopping-cart/src/index.js15 symbols
use-shopping-cart/src/reducers.js9 symbols
use-shopping-cart/src/util.js8 symbols
use-shopping-cart/src/index.d.ts7 symbols
use-shopping-cart/src/index.test.js4 symbols
use-shopping-cart/src/serverUtil.js2 symbols
documentation/src/components/checkout-single-item.js2 symbols
use-shopping-cart/src/util.test.js1 symbols
examples/umd/src/index.js1 symbols
examples/umd/src/ProductList.js1 symbols
examples/umd/src/Cart.js1 symbols
examples/gatsby/src/pages/page-2.js1 symbols

For agents

$ claude mcp add use-shopping-cart \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page