ssh :2222buf lint + breakingconnectrpc
ghcr.io/lynicis/hasir

Self-hosted Git-native protobuf registry.

Push .proto files over Git-SSH, validate with buf, ship typed SDKs.

01 / Beforepayments/checkout.proto
  message Refund {    string id = 1;+   RefundStatus status = 2;  }+ enum RefundStatus {+   REFUND_PENDING = 1;+   REFUND_SETTLED = 2;+ }
02 / Buf gatea3f9c1e
$git push hasir main
Validating schemas with buf… ok
Targets: typescript, go
+ 2 SDKs published in 1.4s
03 / AfterGenerated Go SDK
type RefundStatus int32const (  RefundPending RefundStatus = 1  RefundSettled RefundStatus = 2)client := checkoutv1.NewClient(  http.DefaultClient,  registryURL,)
Installgo get registry.example.com/sdk/payments/checkout@a3f9c1ebuf check passed

From commit to client SDK, automatically.

  1. Push your schema

    Commit .proto files and push over Git-SSH, just like any other repository.

  2. Buf validates on receipt

    Breaking-change detection and lint rules run before anything is accepted.

  3. SDKs ship themselves

    Worker pools generate and publish client SDKs for TypeScript, JavaScript, and Go.

buf.gen.yamlRepository config
version: v2
plugins:
  - remote: buf.build/protocolbuffers/go
  - remote: buf.build/community/typescript
  + hasir: auto-publish on push
Server pre-receive gate0 breaking
buf lint STANDARD
buf breaking --against .git#branch=main
pass WIRE_JSON compatibility verified
worker-pool: queued go-connectrpc, js-connectrpc

One push. Every SDK.

TypeScript client package

Every pushed commit publishes an immutable, commit-pinned module ready for package managers.

npm install git+ssh://git@registry.example.com:2222/sdk/payments/checkout/a3f9c1e/js-connectrpc/
Protocol
Connect, gRPC-Web
Distribution
Git-SSH or HTTPS
checkout-client.tsConnectRPC
import { createClient } from "@connectrpc/connect";
import { createConnectTransport } from "@connectrpc/connect-web";
import { CheckoutService } from "@hasir-sdk/payments";
 
const transport = createConnectTransport({
baseUrl: "https://api.example.com",
});
const client = createClient(CheckoutService, transport);
const res = await client.issueRefund({ orderId: "ord_1042" });

Built around Git-SSH, buf, and Postgres.

For teams who treat protobuf definitions as source of truth.

  • Git-over-SSH push

    Push .proto files with plain git push over a custom SSH server built for schemas.

    ssh :2222
  • Automatic SDK generation

    Every push validates and packages client SDKs for TypeScript, JavaScript, and Go.

    ts, js, go
  • Buf-native validation

    Definitions are checked for breaking changes and lint rules before they land.

    buf breaking
  • Postgres-backed registry

    Every schema version is stored, indexed, and queryable from a single source of truth.

    postgresql
  • Org & repo management

    Manage organizations, repositories, and permissions from one dashboard.

    role-based
  • SSH key authentication

    Developers authenticate with their own SSH keys, with no shared tokens and no leaks.

    ed25519 / rsa

Run it on Docker Compose or Helm.

Self-host Hasir on your own server with pre-built ghcr.io images or deploy directly to Kubernetes.

# Fetch compose config and run pre-built ghcr.io images
$curl -O https://raw.githubusercontent.com/lynicis/hasir/main/deploy/docker/docker-compose.yml
$docker compose up -d
Hasir is running on port 3000.