@0code/sdk
v1.0.1
Published
Official TypeScript SDK for the UpCode API by 0Code
Readme
@0code/sdk
Official TypeScript SDK for the UpCode API by 0Code.
Self-hosted photo and video management solution.
Install
npm install @0code/sdk
# or
pnpm add @0code/sdk
# or
yarn add @0code/sdkUsage
import { getAllAlbums, getMyUser, init } from "@0code/sdk";
const API_KEY = "<API_KEY>"; // Your UpCode API key
init({ baseUrl: "https://upcode.0code.uk/api", apiKey: API_KEY });
const user = await getMyUser();
const albums = await getAllAlbums({});
console.log({ user, albums });Features
- 🔒 Full TypeScript support with auto-generated types
- 📦 Lightweight and tree-shakeable
- 🚀 Promise-based async/await API
- 🎯 Auto-generated from OpenAPI spec
- ✅ Supports all UpCode API endpoints
Documentation
For full API documentation, visit: https://upcode.0code.uk/docs
License
AGPL-3.0
