Skip to content

Otik🦊 The high-performance, type-safe, and modern TypeScript HTTP client written in Rust.

Very fast, safe, and elegant HTTP requests with zero bloat.

Otik Logo

Basic usage

ts
import { Client } from "otik";
const client = new Client();

const res = await client.get("https://example.com");
console.log(res);

Schemas and deserialization

ts
import { t, Client } from "otik";
const client = new Client();

const User = t.object({
  id: t.number(),
  name: t.string(),
  email: t.string(),
});

const res = await client.get("https://example.com/user/1", User);
console.log(res.id); // 100% type-safe + automatically deserialized!