Stencil is a schema registry that provides schema mangement and validation to ensure data compatibility across applications. It enables developers to create, manage and consume schemas dynamically, efficiently, and reliably, and provides a simple way to validate data against those schemas. Stencil support multiple formats including Protobuf, Avro and JSON.
Discover why users choose Stencil as their main schema registry
Explore the following resources to get started with Stencil:
Install Stencil on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine.
Download the appropriate version for your platform from releases page. Once downloaded, the binary can be run from anywhere.
You don’t need to install it into a global location. This works well for shared hosts and other systems where you don’t have a privileged account.
Ideally, you should install it somewhere in your PATH for easy use. /usr/local/bin
is the most probable location.
# Install stencil (requires homebrew installed)
$ brew install odpf/taps/stencil
# Upgrade stencil (requires homebrew installed)
$ brew upgrade stencil
# Check for installed stencil version
$ stencil version
Stencil has three major components. Server, CLI and clients. Stencil server and CLI are bundled in a single binary.
Stencil server provides a way to store and fetch schemas and enforce compatability rules. Run stencil server --help
to see instructions to manage Stencil server.
Stencil CLI allows users to iteract with server to create, view, and search schemas. CLI is fully featured but simple to use, even for those who have very limited experience working from the command line. Run stencil --help
to see list of all available commands and instructions to use.
Stencil clients allows application to interact with stencil server to eserialize and deserialize messages using schema. Stencil supports clients in multiple languages.
- Git
- Go 1.16 or above
- PostgreSQL 13 or above
# Clone the repo
$ git clone git@github.com:odpf/stencil.git
# Check all build comamnds available
$ make help
# Build meteor binary file
$ make build
# Init server config
$ cp app/config.yaml config.yaml
# Run database migrations
$ ./stencil server migrate
# Start stencil server
$ ./stencil server start
# Running all unit tests
$ make test
# Print code coverage
$ make coverage
Development of Stencil happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving stencil.
Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to stencil.
To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started.
This project exists thanks to all the contributors.
Stencil is Apache 2.0 licensed.
Can you improve this documentation? These fine people already did:
Ravi Suhag, Harikrishna, Rohil Surana, mauliksoneji & anbarasanEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close