← All projects
28Live Web CLI Backend

Verifying session tokens on the backend

LaTeX API

A Clerk session on the dashboard mints the API keys the compile endpoint accepts.

Live Web CLI Backend

Compile LaTeX in the cloud with one HTTP call, in a sandboxed container per job. You sign in to the dashboard with Clerk and mint API keys there; the API verifies Clerk tokens with @clerk/backend for dashboard calls and its own hashed keys for `Authorization: Bearer`, and the CLI logs in with a device flow stored in Postgres. A good counterpoint to Clerk’s own API Keys.

What it shows

Stack

  • Next.js
  • Hono
  • Postgres
  • Docker

Run it locally

This product lives in its own repository. Clone it and follow its README.

terminal
git clone https://github.com/Jibaru/latex-api.git latex-api
cd latex-api