https://github.com/commercelayer/examples
A curated collection of examples, use cases, code demos, and experiments that showcase the power of Commerce Layer API and developer tools.
https://github.com/commercelayer/examples
api commercelayer demos ecommerce examples
Last synced: about 1 year ago
JSON representation
A curated collection of examples, use cases, code demos, and experiments that showcase the power of Commerce Layer API and developer tools.
- Host: GitHub
- URL: https://github.com/commercelayer/examples
- Owner: commercelayer
- License: mit
- Created: 2023-06-20T12:51:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-27T10:18:36.000Z (over 1 year ago)
- Last Synced: 2025-03-24T00:41:23.723Z (about 1 year ago)
- Topics: api, commercelayer, demos, ecommerce, examples
- Language: TypeScript
- Homepage: https://commercelayer.io/developers
- Size: 27.2 MB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


Commerce Layer Examples
A curated collection of examples, use cases, code demos, and experiments that showcase the power of Commerce Layer API and developer tools.
---
This repository contains example code demos that are not 100% production-ready in most cases. We do not encourage you to use the code directly for production development but you can build on them to develop your ecommerce applications or integrations. Our goal here is to provide you with different reference code (accompanied by tutorials) that will show you different ways you can build with Commerce Layer. We will constantly add new examples with different composable technologies, so check back often :).
Here are the parent categories of the examples in this repository for easy navigation:
- [Authentication](./authentication) — Different ways to implement multi-factor authentication (MFA) or single sign-on authentication (SSO) with Commerce Layer.
- [CMS](./cms) — Implementation of multi-market ecommerce web stores with top content management systems.
- [Lambda functions](./lambda-functions) — Several lambda functions you can use to do fun stuff with Commerce Layer.
- [Search](./search) — Implementation of product search and personalization with Commerce Layer and a CMS.
- [Solutions](./solutions) — Demos, use cases, and code sandboxes of several parts of our API and developer tools.
- [Webhooks](./webhooks) — Several ways you can use Commerce Layer webhooks.
---
## Get Started with Commerce Layer
- [All Developer Resources](https://commercelayer.io/developers)
- [Commerce Layer Documentation](https://docs.commercelayer.io)
- [Commerce Layer API Reference](https://docs.commercelayer.io/core/v/api-reference/)
- [Commerce Layer Core Concepts](https://commercelayer.io/docs/core-concepts)
- [Commerce Layer Data Model](https://commercelayer.io/docs/data-model)
- [Commerce Layer Blog](https://commercelayer.io/blog)
- [Commerce Layer Case Studies](https://commercelayer.io/customers)
## Contributors Guide
1. Fork [this repository](https://github.com/commercelayer/examples) (learn how to do this [here](https://help.github.com/articles/fork-a-repo)).
2. Clone the forked repository like so:
```bash
git clone https://github.com//examples.git && cd examples
```
3. If you're adding a new example, choose the right category for an example (refer to the introduction above) and create a new sub-folder for it inside the category folder (use the kebab-case naming convention in lower-case to name the sub-folder).
4. Add the new example code and all associated files to the new sub-folder you created.
5. Create a `README.md` file in the new sub-folder and add a description of the new example. You can use this [template](./TEMPLATE.md) as a guide (feel free to add more sections and document the example more, as required).
6. Add the new example to the list in the category's `README.md` file following the same format as the other examples (follow the sequential alphabetical order by name as seen in your local computer).
7. Make your changes and create a pull request ([learn how to do this](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)).
8. Someone will attend to your pull request, provide some feedback, and eventually merge the PR!
> **Note**
>
> This repository will include examples that follow all the best practices we are following in all our [other public OSS projects](https://commercelayer.io/developers). If you decide to contribute, someone will review and provide some feedback. Thank you!
## Need Help?
- Join [Commerce Layer's Discord community](https://discord.gg/commercelayer).
- Ping us on [Bluesky](https://bsky.app/profile/commercelayer.io), [X (formerly Twitter)](https://x.com/commercelayer), or [LinkedIn](https://www.linkedin.com/company/commerce-layer).
- Is there a bug? Create an [issue](https://github.com/commercelayer/examples/issues) on this repository.
## License
This repository is published under the [MIT](LICENSE) license.
---


Commerce Layer is a multi-market commerce API and order management system that lets you add global shopping capabilities to any website, mobile app, chatbot, wearable, voice, or IoT device, with ease. Compose your stack with the best-of-breed tools you already mastered and love. Make any experience shoppable, anywhere, through a blazing-fast, enterprise-grade, and secure API.