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
- Me/meWho signed inopenid profile email
- Workspaces/workspacesAnd their role in eachany data scope
Files/filesBrowse, download, uploadfiles.read files.write
Gallery/gallery/photosPhotos and albumsgallery.read gallery.write
Docs/docsDocuments as Markdowndocs.read docs.write
Sheets/sheetsCells, A1 keyedsheets.read sheets.write
Forms/formsQuestions and responsesforms.read forms.write
Canvas/canvasBoards as datacanvas.read canvas.write
Calendar/calendar/eventsCalendars made in Nemicalendar.read calendar.write
Install
npm i @guuslab/nemi
npm i @guuslab/nemi-react-native
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 step
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.
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.