Show HN: Svix – Open-Source Webhooks Service Written in Rust

Show HN: Svix – Open-Source Webhooks Service Written in Rust

Website | Documentation | Community Slack

GitHub tag
Build Status
Join our slack

Svix is the enterprise ready webhook service

Svix makes it easy for developers to send webhooks. Developers make one API call, and Svix takes care of deliverability, retries, security, and more. For more information, please refer to the Svix homepage.

NPM version
Maven Central (Java)
Maven Central (Kotlin)
Packagist Version

You can find general usage documentation at For complete API documentation with code examples for each endpoint in all of our official client libraries head over to our API documentation site at

To stay up-to-date with new features and improvements be sure to watch our repo!

Watch & Star our repo

⚡️ Feature Breakdown ⚡️
Language Officially Supported API Support Webhook Verification Other Notes
Python Async Support planned.
Java Async support planned. (If you use kotlin, checkout our kotlin library for coroutine support.)
C# (dotnet) 🔜

There are multiple ways to get the Svix server up running. Docker is probably the most common one, but you can choose the one that works best for you.

The Svix server is written in Rust 🦀, which means you can compile it into a static library for a variety of targets. Please refer to the building from source section below for more information.

Please refer to the server configuration section below for more information regarding the available settings.



You can use the official Svix Docker image from Docker Hub.

You can either use the example docker-compose.yml file with docker-compose (easiest), docker swarm (advanced), or run the container standalone.

With Docker Compose

This alternative is the easiest because it will also boot up and configure redis and postgresql.

This assumes you have docker-compose installed.

cd server
docker-compose up

Standalone container

Running a standalone container is slightly more advanced, as it requires you to set some environment variables and have them pointing to your redis and postgres instances.
You can pass individual environment variables to docker using the -e flag, or just create a file like development.env and use the --env-file flag like in the example below:

-p 8071:8071
–env-file development.env
docker run 
  --name svix-server 
  -p 8071:8071 
  --env-file development.env 

Pre-compiled binaries

Pre-compiled binaries are available for released versions in the releases section.

Building from source

The Svix server is written in Rust 🦀 and requires a Rust build environment.

If you already have one, you just need to run cargo build, otherwise, please please refer to the Svix server README for more information about building the server from source.

Runtime dependencies

The server requires the following runtime dependencies to work correctly:

  • A PostgreSQL server – for the storage of events.
  • An optional Redis server – for the task queue and cache. Please note that it’s recommended to enable persistence in Redis so that tasks are persisted across Redis server restarts and upgrades.

Server configuration

There are three ways to configure svix-server: environment vars, .env file, and a configuration file.

Configuration file

You can put a file called config.toml in the current working directory of svix-server and it will automatically pick it up.
You can take a look at the example file for more information and a full list of supported settings: config.toml.

Here’s a quick example of the most important configurations:

# The JWT secret for authentication - should be secret and securely generated

# The DSN for the database. Only postgres is currently supported.

# The DSN for redis (can be left empty if not using redis)

# What kind of message queue to use.

Environment (variables or .env)

Alternatively, you can configure svix-server by setting the equivalent environment variables for each of the supported settings. The environment variables can either be passed directly or by setting them in a .env file.

The environment variables have the name name as the config names, but they are all upper case and are prefixed with SVIX_.

For example, the above example configuration would look like this if it was passed in the env:

# The JWT secret for authentication - should be secret and securely generated

# The DSN for the database. Only postgres is currently supported.

# The DSN for redis (can be left empty if not using redis)

# What kind of message queue to use.


Use valid JWTs generated with the correct secret as Bearer.


Authorization: Bearer 

Either generate one using

Or if you are generating your own, make sure to use org_23rb8YdGqMT0qIzpgGwdXfHirMu as the sub field.

One of our main goals with open sourcing the Svix dispatcher is ease of use. The hosted Svix service, however, is quite complex due to our scale and the infrastructure it requires. This complexity is not useful for the vast majority of people and would make this project much harder to use and much more limited.
This is why this code has been adjusted before being released, and some of the features, optimizations, and behaviors supported by the hosted dispatcher are not yet available in this repo. With that being said, other than some known incompatibilities, the internal Svix test suite passes. This makes them are already mostly compatible, and we are working hard on bringing them to full feature parity.

Checkout our project specific development guides to get started hacking on Svix!

Contributions are what makes the open source world go round! All contributions are very much welcomed and are greatly appreciated.

Please refer to the contribution guide for information on how to contribute.

A quick how to for contribution:

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/some-feature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Implement an amazing feature.')
  5. Push to the branch (git push origin feature/some-feature)
  6. Open a pull request

Distributed under the MIT License. See LICENSE for more information.

Backed By YC & Aleph

Read More

Charlie Layers

Charlie Layers

Fill your life with experiences so you always have a great story to tell