GithubHelp home page GithubHelp logo

goto / stencil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raystack/stencil

0.0 0.0 0.0 4.97 MB

Stencil is a schema registry that provides schema management and validation dynamically, efficiently, and reliably to ensure data compatibility across applications.

Home Page: https://goto.github.io/stencil/

License: Apache License 2.0

JavaScript 5.40% Java 13.56% Clojure 5.27% Go 74.23% TypeScript 0.67% CSS 0.11% Makefile 0.53% HTML 0.18% Dockerfile 0.05%

stencil's Introduction

Stencil

Test Release License Version

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.

Key Features

Discover why users choose Stencil as their main schema registry

  • Version history Stencil stores versioned history of proto descriptor file on specified namespace and name
  • Backward compatibility enforce backward compatibility check on upload by default
  • Flexbility ability to skip some of the backward compatibility checks while upload
  • Descriptor fetch ability to download proto descriptor files
  • Metadata provides metadata API to retrieve latest version number given a name and namespace
  • Clients in multiple languages Stencil provides clients in GO, Java, JS languages to interact with Stencil server and deserialize messages using dynamic schema

Documentation

Explore the following resources to get started with Stencil:

  • Documentation provides guidance on using stencil.
  • Server provides details on getting started with stencil server.
  • Clients provides reference to supported stencil clients.

Installation

Install Stencil on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine.

Binary (Cross-platform)

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.

Docker

We provide ready to use Docker container images. To pull the latest image:

docker pull gotocompany/stencil:latest

To pull a specific version:

docker pull gotocompany/stencil:v0.3.4

Usage

Stencil has three major components. Server, CLI and clients. Stencil server and CLI are bundled in a single binary.

Server

Stencil server provides a way to store and fetch schemas and enforce compatibility rules. Run stencil server --help to see instructions to manage Stencil server.

Stencil server also provides a fully-featured GRPC and HTTP API to interact with Stencil server. Both APIs adheres to a set of standards that are rigidly followed. Please refer here for GRPC API definitions.

CLI

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.

Clients

Stencil clients allows application to interact with stencil server to eserialize and deserialize messages using schema. Stencil supports clients in multiple languages.

Running locally

Dependencies:
- Git
- Go 1.16 or above
- Yarn (Needed for UI)
- PostgreSQL 13 or above
# Clone the repo
$ git clone [email protected]:goto/stencil.git

# Check all build comamnds available
$ make help

# Build meteor binary file
$ make build

# Init server config
$ cp config/config.yaml config.yaml

# Run database migrations
$ ./stencil server migrate

# Start stencil server
$ ./stencil server start

Running tests

# Running all unit tests
$ make test

# Print code coverage
$ make coverage

Generating mocks

Install mockery using $ brew install mockery
Run  mockery --name <Interface Name> --output <Output directory for mocks>
E.g
mockery --name ChangeDetectorService --output mocks

Contribute

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's People

Contributors

h4rikris avatar ravisuhag avatar rohilsurana avatar mauliksoneji avatar gdgagan696 avatar lavkesh avatar ishanarya0 avatar kushsharma avatar dependabot[bot] avatar chakravarthyvp avatar akarshsatija avatar vaishnavi190900 avatar ramey avatar hemanthsavasere avatar nncrawler avatar riteeksrivastav avatar sravankorumilli avatar stewartjingga avatar vibhugarg123 avatar zakiindra avatar

stencil's Issues

Bump up go version to 1.21

Summary
Bumping go version to go 1.21 to keep up to date

  • bumping workflow github action
  • check all breaking dependencies & update them if needed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.