Skip to content

tloncorp/api-beta

Repository files navigation

@tloncorp/api

TypeScript API client for Tlon's Urbit applications.

Installation

npm install @tloncorp/api

Or install from GitHub:

npm install github:tloncorp/api-beta#main

Usage

import {
  configureClient,
  getGroups,
  getContacts,
  getCurrentUserId,
} from "@tloncorp/api";

// Configure the client
configureClient({
  shipName: "your-ship-name",
  shipUrl: "https://your-ship.tlon.network",
  getCode: async () => "your-access-code",
});

// Make API calls
const groups = await getGroups();
const contacts = await getContacts();

Examples

See the examples/cli directory for a working CLI example.

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Watch mode
npm run dev

License

MIT

About

Temporary standalone api repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published