0491GitHub
typesafe-go
Go client.
Shubham510/typesafe-goREADME ↗
# typesafe-go
[](https://pkg.go.dev/github.com/Shubham510/typesafe-go)
[](https://github.com/Shubham510/typesafe-go/actions/workflows/ci.yml)
[](https://github.com/Shubham510/typesafe-go/releases/latest)
An **unofficial**, community-maintained Go client for the [TypeSafe AI](https://typesafe.ai) System One API. TypeSafe currently publishes official [Python](https://docs.typesafe.ai/sdk/python) and [JavaScript](https://docs.typesafe.ai/sdk/javascript) SDKs; this package ports the same concepts to idiomatic Go so Go services can call [Jev](https://docs.typesafe.ai/concepts/system-one), TypeSafe's flagship System One model, without a Python/Node sidecar.
This project is **not affiliated with, endorsed by, or supported by TypeSafe AI**. For official documentation, see [docs.typesafe.ai](https://docs.typesafe.ai). File issues against this repository, not TypeSafe's.
**Current release:** [`v1.0.0`](https://github.com/Shubham510/typesafe-go/releases/tag/v1.0.0) (`typesafe.Version`)
Zero third-party dependencies — only the Go standard library.
## Install
```bash
go get github.com/Shubham510/typesafe-go@v1.0.0
```
Or pin any later tag:
```bash
go get github.com/Shubham510/typesafe-go@latest
```
Requires Go 1.27.1 or later (the module's `go` directive; Go's toolchain manager will fetch it automatically if your local `go` is older).
## Quick start
```go
package main
import (
"context"
"fmt"
"log"
typesafe "github.com/Shubham510/typesafe-go"
)
func main() {
client, err := typesafe.NewClient() // reads TYPESAFE_API_KEY from the environment
if err != nil {
log.Fatal(err)
}
resp, err := client.SystemOne(context.Background(), typesafe.SystemOneRequest{
State: "Help! My payouts have been failing for 3 days.",
Questions: typesafe.Questions{
"is_urgent": t