{"id":35149185,"url":"https://github.com/gepheum/skir","last_synced_at":"2026-04-26T16:01:22.672Z","repository":{"id":199031321,"uuid":"693922179","full_name":"gepheum/skir","owner":"gepheum","description":"Like Protocol Buffer, but better","archived":false,"fork":false,"pushed_at":"2026-03-06T21:35:04.000Z","size":1256,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-07T17:24:31.018Z","etag":null,"topics":["codegen","marshalling","protobuf","protocol-buffers","rpc","rpc-framework","serialization"],"latest_commit_sha":null,"homepage":"https://skir.sh/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gepheum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-20T01:38:05.000Z","updated_at":"2026-03-06T21:34:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b94bf34-b43b-44d8-a6fe-d90e5039857b","html_url":"https://github.com/gepheum/skir","commit_stats":null,"previous_names":["gepheum/soiac","gepheum/soia","gepheum/skir"],"tags_count":77,"template":false,"template_full_name":null,"purl":"pkg:github/gepheum/skir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gepheum%2Fskir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gepheum%2Fskir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gepheum%2Fskir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gepheum%2Fskir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gepheum","download_url":"https://codeload.github.com/gepheum/skir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gepheum%2Fskir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30225503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codegen","marshalling","protobuf","protocol-buffers","rpc","rpc-framework","serialization"],"created_at":"2025-12-28T14:54:18.636Z","updated_at":"2026-04-26T16:01:22.663Z","avatar_url":"https://github.com/gepheum.png","language":"TypeScript","funding_links":[],"categories":["Trending Repos — 19 March 2026"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eSkir\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003eLike Protobuf, without the pain\u003c/strong\u003e\u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://skir.build/\"\u003e\u003cb\u003eskir.build\u003c/b\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\n  [![npm](https://img.shields.io/npm/v/skir?style=flat-square)](https://www.npmjs.com/package/skir)\n  [![build](https://github.com/gepheum/skir/workflows/Build/badge.svg?style=flat-square)](https://github.com/gepheum/skir/actions)\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n**Skir** is a declarative language for defining data types, constants, and APIs.\nWrite your schema once in a `.skir` file and generate idiomatic, type-safe code in TypeScript, Python, Java, Go, C++, and more.\n\n## 🎬 Quick demo\n\n![Quick demo](.github/assets/greet.gif)\n\n## ✨ Features\n\n- 🧩 **One schema, nine languages, zero friction** - One YAML config, one command, and watch mode that refreshes generated code on every change.\n- 🛡️ **End-to-end type safety** - Shared method and type definitions keep client/server contracts aligned before runtime.\n- ⚡ **SkirRPC + Studio** - Lightweight HTTP RPC with a built-in Studio app for browsing and testing methods.\n- 📦 **GitHub imports** - Import types directly from GitHub repositories to share data structures across projects.\n- 🔁 **Serialization modes** - Dense JSON for APIs/DBs, readable JSON for debugging, and binary for raw performance.\n- 🕰️ **Safe schema evolution** - Built-in checks and clear rules so old and new data remain deserializable.\n- 🧬 **Rust-like enums** - Variants can be constants or carry typed payloads for clean polymorphism.\n- 🔒 **Immutable generated models** - Deep immutability (except C++) with required fields at construction time.\n- 🗂️ **Key-indexed arrays** - Declare arrays like `[User|user_id]` and get fast key-based lookup APIs.\n- 🛠️ **First-class tooling** - VS Code extension + LSP with validation, completion, and auto-formatting.\n- 🧱 **Easy to extend** - Generators are regular NPM modules, so custom generators plug in cleanly.\n\n## ⚡ Syntax example\n\n```d\n// shapes.skir\n\nstruct Point {\n  x: int32;\n  y: int32;\n  label: string;\n}\n\nstruct Shape {\n  points: [Point];\n  /// A short string describing this shape.\n  label: string;\n}\n\nconst TOP_RIGHT_CORNER: Point = {\n  x: 600,\n  y: 400,\n  label: \"top-right corner\",\n};\n\n/// Returns true if no part of the shape's boundary curves inward.\nmethod IsConvex(Shape): bool = 12345;\n```\n\nSkir compiles these definitions into native, type-safe code you can use in your project:\n\n```python\n# my_project.py\n\nfrom skirout.shapes_skir import Point  # Python module generated by Skir\n\npoint = Point(x=3, y=4, label=\"P\")\n\n# Round–trip serialization to JSON\npoint_json = Point.serializer.to_json(point)\nrestored = Point.serializer.from_json(point_json)\n\nassert(restored == point)\n```\n\n## 📚 Documentation\n\n- [Getting started: setup \u0026 workflow](https://skir.build/docs/setup)\n- [Language reference](https://skir.build/docs/language-reference)\n- [Serialization](https://skir.build/docs/serialization)\n- [Schema evolution](https://skir.build/docs/schema-evolution)\n- [SkirRPC](https://skir.build/docs/skirrpc)\n- [External dependencies](https://skir.build/docs/dependencies)\n- [Coming from Protocol Buffer](https://skir.build/docs/protobuf)\n\n## 🌍 Supported languages\n\n| Language | Documentation | Example |\n| :--- | :--- | :--- |\n| 🟦 **TypeScript** | [Documentation](https://skir.build/docs/typescript) | [Example](https://github.com/gepheum/skir-typescript-example) |\n| 🐍 **Python** | [Documentation](https://skir.build/docs/python) | [Example](https://github.com/gepheum/skir-python-example) |\n| ⚡ **C++** | [Documentation](https://skir.build/docs/cpp) | [Example](https://github.com/gepheum/skir-cc-example) |\n| ☕ **Java** | [Documentation](https://skir.build/docs/java) | [Example](https://github.com/gepheum/skir-java-example) |\n| 💜 **Kotlin** | [Documentation](https://skir.build/docs/kotlin) | [Example](https://github.com/gepheum/skir-kotlin-example) |\n| 🦀 **Rust** | [Documentation](https://skir.build/docs/rust) | [Example](https://github.com/gepheum/skir-rust-example) |\n| 🐹 **Go** | [Documentation](https://skir.build/docs/go) | [Example](https://github.com/gepheum/skir-go-example) |\n| 🎯 **Dart** | [Documentation](https://skir.build/docs/dart) | [Example](https://github.com/gepheum/skir-dart-example) |\n| 🐦 **Swift** | [Documentation](https://skir.build/docs/swift) | [Example](https://github.com/gepheum/skir-swift-example) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgepheum%2Fskir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgepheum%2Fskir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgepheum%2Fskir/lists"}