@distilled.cloud/turso
v0.16.4
Published
Effect-native Turso SDK generated from the [Turso API documentation](https://docs.turso.tech/api-reference). Manage databases, organizations, and groups with exhaustive error typing.
Readme
@distilled.cloud/turso
Effect-native Turso SDK generated from the Turso API documentation. Manage databases, organizations, and groups with exhaustive error typing.
Note: This SDK is a stub -- operations have not yet been generated. Run
bun run generateafter fetching specs to populate the operations.
Installation
npm install @distilled.cloud/turso effectQuick Start
import { Effect, Layer } from "effect";
import * as Stream from "effect/Stream";
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
import { CredentialsFromEnv } from "@distilled.cloud/turso";
const TursoLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);Configuration
Set the following environment variable:
TURSO_API_KEY=your-api-tokenCreate an API token with turso auth api-tokens mint or in the Turso dashboard under Settings > API Tokens.
License
MIT
