GitHub 37
Skip to content
ViteHub is still experimental. Expect bugs and breaking changes.

Connections

Connect a Google account or an API key once, then call its API from your server without handling tokens.

Deploys on
  • Node
  • Docker
  • Cloudflare
  • Vercel
  • Netlify
  • Deno

Connect an account once

Sign in to the provider once. The app keeps the tokens encrypted in its database.

Typed calls, fresh tokens

useConnection() gives typed methods such as gmail.users.labels.list(). Tokens refresh before they expire.

Decide who can read and write

Rules allow reads and writes per caller. A caller without a rule is denied.

Tokens go only to the right API

A request to any other address fails and gets no token.

API keys work too

Add an API key while the app runs, not in code. The same rules apply.

A record of each change

Records writes, denied calls, and failures. Never stores tokens or request bodies.