Download. Tweak. Improve.

Learn, build, and download the source code of projects from the Code in Action series.

Node.js Env Loader Illustration

How to Write a Dependency-Free Env Loader in Node.js

Learn how to write a dependency-free env loader ECMAScript module in Node.js that automatically adapts to the runtime environment of the process.

JsonDB Illustration

Build a JSON Database in Node.js

Learn how to build a lightweight, file-based, relational database written in Node.js that stores data as structured JSON on the disk.

Strawpoll-Lite Illustration

Build a StrawPoll-Like Voting API in Node.js

Learn how to build a RESTful API with Express that allows users to create complex polls, cast votes, and retrieve results.

API Rate Limiting Illustration

3 Rate Limiting Strategies for Node.js APIs

Learn how to implement the fixed window, sliding window, and token bucket rate limiting strategies for protecting your Node.js API endpoints from request abuse.

Bitly-Lite Illustration

Build a Bitly-Like URL-Shortener API in Node.js

Learn how to build a RESTful API with Express that allows users to store and convert long URLs into shorter ones associated with a randomly generated identifier.

Linktree-Lite Illustration

Build a Linktree-Like Clone API in Node.js

Learn how to build a RESTful API with Express and Mustache that allows the user to centralize and share personnal links through a dynamically generated web page.

Minesweeper Illustration

Build a Minesweeper CLI Game in Node.js

Practice nested arrays, input validation, and advanced puzzle game logic by building a CLI game where the player must clear a 2D board without detonating mines.

Guess the Number Illustration

Build a Guess-the-Number CLI Game in Node.js

Practice conditions, loops, and input handling by building a classic CLI game in Node.js where the player must guess a randomly generated number.