Developers

Sign in with Nemi.

OAuth 2.1 and OpenID Connect for the account people already use for their files, photos and documents. Then one REST API for exactly the parts they agree to.

Build on Nemi. Sign in with your Nemi account to apply for developer access and read the docs.

The API

nemilab.com/api/v1

Install

Web, Node, Reactnpm i @guuslab/nemi
React Nativenpm i @guuslab/nemi-react-native

Swift Package Manager and JitPack for iOS and Android.

Secure by default

PKCES256, required for every app
Authorization code60 s, single use
Access token1 h, nemi_oat_
Refresh token90 d, rotates on every use
Refresh reuseends the whole login
ID tokenES256, nonce and at_hash
User idpairwise per developer
All the security notes
The sign-in, step by step01 / 08
Your appNemiThe personGET /oauth/authorize01consent screen02Allow03302 ?code&state&iss04POST /api/oauth/token05200 tokens06GET /api/v1/me07200 { sub, name }08

Your app to Nemi

Your app sends the person to Nemi

GET https://nemilab.com/oauth/authorize
  ?client_id=nemi_app_8Fq2...
  &redirect_uri=https://acme.app/callback
  &scope=openid profile docs.read
  &state=k9Xw...  &nonce=Q2ra...
  &code_challenge=E9Mel...  (S256)

Every platform, the same few lines

The SDKs do PKCE, token storage and refresh. Or skip them: any OAuth and OpenID Connect library works.

app.tsx
import { NemiAuth } from "@guuslab/nemi";
import { NemiProvider, SignInWithNemiButton, useNemi } from "@guuslab/nemi/react";

const auth = new NemiAuth({ clientId: "nemi_app_..." });

export function App() {
  return (
    <NemiProvider auth={auth} scopes={["openid", "profile", "gallery.read"]}>
      <Home />
    </NemiProvider>
  );
}

function Home() {
  const { user, client } = useNemi();
  if (!user) return <SignInWithNemiButton />;
  return <p>Hi {user.name}</p>;
}

Packages

  • WeWebnpm i @guuslab/nemi
  • NoNodenpm i @guuslab/nemi
  • ReReactnpm i @guuslab/nemi
  • ReReact Nativenpm i @guuslab/nemi-react-native
  • SwSwifthttps://github.com/GuusLab/nemi-swift
  • KoKotlincom.github.GuusLab:nemi-android:0.1.1

For your AI agent

The docs download as Markdown with an AGENTS.md and llms.txt, ready for Claude Code, Cursor or Codex.

Your first sign-in is ten minutes away.