
Description
Skir is a schema language for describing data types and APIs in one place. You write your types once in a .skir file, and Skir generates idiomatic, type-safe code for TypeScript, Python, Java, C#, C++, Kotlin, Dart, Swift, Go, Rust, Zig, Gleam, MoonBit and Elixir. The compiler runs with npx, so there is nothing to install globally, and a watch mode regenerates the code each time the schema changes. The language supports structs, enums and unions, methods, constants and key-indexed arrays, and it includes polymorphism and a focus on immutability. Values serialize to JSON or to a binary format, and there are imports from GitHub so you can share schemas between projects. SkirRPC is a lightweight HTTP protocol for typesafe calls between services or between a frontend and a backend, and the client code is generated from the same schema. The site also says that its guidelines and built-in checks help you evolve a schema safely, which matters in long-lived or distributed systems where old data must still deserialize. The project offers a language reference, quickstart and generated code examples, an llms.txt file, a language server and a Discord server, and its source is on GitHub at gepheum/skir.…
Highlights
- One schema for ten or more languages
- Generated, type-safe code
- Watch mode for regeneration
- SkirRPC for typesafe calls
- Schema evolution checks
Ratings & Reviews
No ratings yet
Be the first to rate Skir.
People also visit
Skir FAQ
What is Skir?
A declarative schema language for data types and APIs, which generates type-safe code in many languages.
Which languages does it generate?
TypeScript, Python, Java, C#, C++, Kotlin, Dart, Swift, Go, Rust, Zig, Gleam, MoonBit and Elixir, according to the site.
How do I start?
Run npx skir init. The compiler runs with npx, so there is nothing to install globally.
Does it regenerate code automatically?
Yes. Watch mode refreshes the generated code on every change.
What is SkirRPC?
A lightweight HTTP protocol for typesafe calls between services or between a frontend and a backend, with the client generated from the schema.
Where is the source?
On GitHub at gepheum/skir, with a language server at gepheum/skir-language-server.
What are the best Skir alternatives?
Popular alternatives to Skir include TypeSchema, Quicktype and TypeHub. See all Skir alternatives











