talira

Protocol-agnostic interface definition language that generates clients, servers and docs

open sourceApache-2.0free

Smithy is an open source interface definition language from AWS, which uses it for its own APIs and SDKs: you define an API once in a protocol-agnostic model, and smithy build generates type-safe client SDKs in ten languages (TypeScript, Python, Go, Rust, Kotlin, Swift, Java, Scala, Ruby and Dafny), servers in TypeScript and Java, API documentation and OpenAPI and JSON Schema. One model can be served over REST JSON, RPC v2 CBOR, AWS JSON or query/XML. Each language's code generator and runtime is its own project, such as smithy-go, which powers AWS SDK for Go v2.

Ways to install

Package managers

Problems it solves

  • define an API once and generate SDKs in many languages
  • generate OpenAPI from an API model
  • model a service API independently of its wire protocol

Features

  • protocol-agnostic API models
  • client SDKs in ten languages
  • TypeScript and Java servers
  • OpenAPI and JSON Schema output
  • REST JSON, RPC v2 CBOR, AWS JSON and query protocols

Limitations

  • smithy-go's general client generation is at an early stage: generated clients lack some features such as retries, and its APIs may change.2

Alternatives

The same job

These do what Smithy does.

  1. Stoplight Design, document, and build APIs faster

Compare Smithy with the top 3