Installation

Installing @hulla/api is super simple. It has 0 dependencies and works pretty much anywhere.

Package ManagerCommand
pnpmpnpm add @hulla/api
bunbun add @hulla/api
yarnyarn add @hulla/api
npmnpm install @hulla/api
denoimport { api } from 'https://deno.land/x/hulla_api@v1.0.5/index.ts'

And we’re good to go! 🚀

Where to next?

If you’re not sure where to start, either check the Quick Start or explore the Core Concepts section as a recommended starting point.

At the very least, you’ll need to understand the following concepts:

  1. Procedures
  2. Router

If you’re already familiar with API/RPC managers, feel free to dive straight into specific examples.

Example Reference

Library/Framework/PackageServerClient
React
Next
Astro
Remix
Solid
Vue & Nuxt
React Native & expoN/A
@tanstack/queryN/A
swrN/A

Even if your favourite framework isn’t listed here, 99% chance it’s compatible with @hulla/api — all the package does is organize the calls for you. It does not implement any fetching logic under the hood, that’s up to you to provide! If you follow best practices it will work anywhere, be it server, client or a service worker.