SDK used by client applications to interface with the Courier API. This is the repo where we host both the SDK and dependencies needed for the developer environment to contribute to it.
See docs here to read about features and how to install the SDK into your existing project.
This repository contains client-sdk for Courier API. This SDK allows you to integrate Courier API into your web applications.
examples/standalone-playground
: A placeholder web application powered by Next.js that uses the@trycourier/courier-js
package for demonstration purposes@trycourier/courier-js
: core client SDK for Courier API@trycourier/tsconfig
: sharedtsconfig.json
s used throughout the repositoryeslint-config-courier
: ESLint preset
Each package and app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
git clone https://github.com/trycourier/courier-js.git
pnpm install
yarn build
- Build all packages and the docs siteyarn dev
- Develop all packages and the docs siteyarn lint
- Lint all packagesyarn changeset
- Generate a changesetyarn clean
- Clean up allnode_modules
anddist
folders (runs each package's clean script)
Package publishing has been configured using Changesets. Please review their documentation to familiarize yourself with the workflow.
This example comes with automated npm releases setup in a GitHub Action. To get this working, you will need to create an NPM_TOKEN
and GITHUB_TOKEN
in your repository settings. You should also install the Changesets bot on your GitHub repository as well.
For more information about this automation, refer to the official changesets documentation
If you want to publish package to the public npm registry and make them publicly available, this is already setup.
To publish packages to a private npm organization scope, remove the following from each of the package.json
's
- "publishConfig": {
- "access": "public"
- },
See Working with the npm registry
We are building the best SDKs for handling notifications! Have an idea or feedback about our SDKs? Here are some links to contact us: