/analytics-edge

Segment Edge SDK, powered by Cloudflare Workers 💥

Primary LanguageTypeScriptMIT LicenseMIT

Segment Edge SDK

This is the official Segment Edge SDK monorepo.

With Segment Edge SDK, built on Cloudflare Workers, developers can collect high-quality first-party data and use Segment Edge SDK to access realtime user profiles and state, to deliver personalized app experiences without managing a ton of infrastructure. Want to know more? Check out these blog posts:

Versioning and package publishing is handled by Changesets and fully automated with GitHub Actions.

Using the Edge SDK?

Using with Cloudflare Workers

Two examples are provided in Examples folder. See the full docs for details on how to use the Edge SDK with Cloudflare Workers.

Contributing

Useful commands

  • yarn build - Build all packages and the example
  • yarn dev - Develop all packages and the example
  • yarn lint - Lint all packages
  • yarn changeset - Generate a changeset
  • yarn clean - Clean up all node_modules and dist folders (runs each package's clean script)