Code first, in the language you work in
Most notes lead with code you can copy. Where tools overlap, they sit side by side, like this request for a GitHub repository's star count.
fetch, Node 18+ or any browser
const res = await fetch("https://api.github.com/repos/facebook/docusaurus");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const repo = await res.json();
console.log(repo.stargazers_count);
Start here
Notes that apply whatever stack you use.
- RESTful API response
Ten rules for JSON responses: envelopes, errors, paging.
- Authentication flows
JWT, OAuth 2.0 and token refresh as sequence diagrams.
- Naming conventions
camelCase, snake_case, kebab-case and where each is used.
- Node.js ORMs compared
Sequelize, Prisma, TypeORM, Objection.js and Drizzle in one table.