Skip to content
Back to skills

Linkly

ASecurity

This tutorial builds **Linkly**, a link shortener, one worker at a time. You start with a single function that turns `/s/abc` into a redirect, and finish with a multi-tenant link platform that has durable execution, storage, analytics, a live click stream, bulk imports, and permission gated untrusted browser workers that have all the same functionality and observability as the base system. Each chapter adds one capability by adding a worker to your existing system. The point is not the link s...

  • 18,978 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 16, 2026
developmentrustsqldatabase

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add iii-hq/iii --skill linkly --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Linkly?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Linkly
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iii-hq-linkly-15aecfc9/badge)](https://www.skillsdirectory.com/skills/iii-hq-linkly-15aecfc9)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
<!-- generated by iii-skill-render. DO NOT EDIT (changes here are overwritten on the next render). Edit docs/next/tutorials/linkly/overview.mdx. -->

# Overview


This tutorial builds **Linkly**, a link shortener, one worker at a time. You start with a single
function that turns `/s/abc` into a redirect, and finish with a multi-tenant link platform that has
durable execution, storage, analytics, a live click stream, bulk imports, and permission gated
untrusted browser workers that have all the same functionality and observability as the base system.

Each chapter adds one capability by adding a worker to your existing system. The point is not the
link shortener itself, but the pattern: a real system on iii is a set of small workers that invoke
each other's functions and triggers. You add capability without needing to refactor existing
functionality.

<Note>New to iii? [Install](/install) it before you begin.</Note>

## Choose your path

Both paths will build the same system.

- [Agentic](/tutorials/linkly/agentic) gives an AI agent one prompt per chapter and reviews what it
  writes.
- [Exploration](/tutorials/linkly/foundations) writes each chapter by hand, with the reasoning
  behind every step.

## An overview of the chapters

The agentic path contains all of these chapters on a single page while the exploration path divides
them into separate sections.

### Ch. 1: Foundations

Build a custom `link` worker with `link::create` and `link::resolve`, store links in memory, then
expose them over HTTP with `http` as `POST /links` and `GET /s/:code`.

### Ch. 2: Observe everything

Use the engine-injected `iii-observability` functions for logs and traces, and open the `console` to
inspect functions, triggers, and live invocations.

### Ch. 3: Persist everything

Add a `database` worker (SQLite) so links and click events are stored durably and survive restarts,
with `state` kept in front as a fast read cache.

### Ch. 4: Make it durable

Push click events onto `queue` so redirects stay fast, and publish `link.created` and `link.updated`
events on durable topics that an analytics function and a cache refresher each subscribe to.

### Ch. 5: Stream live clicks

Push every click to listeners in real time from a dedicated `click-streamer` worker that owns a
trigger type, and read the running total with a query.

### Ch. 6: Move bulk data with channels

Bulk-load links from a CSV in a single streamed upload over a channel.

### Ch. 7: Bring in the browser

Turn a browser tab into a worker with the browser SDK: invoke `link::create` directly, bind to the
live click feed, and register a browser-side function the server can call.

Files in this skill

  • _workspace/assert/ch1.sh777 B
  • _workspace/assert/ch2.sh430 B
  • _workspace/assert/ch3.sh714 B
  • _workspace/assert/ch4.sh4.4 KB
  • _workspace/assert/ch5.sh3.2 KB
  • _workspace/assert/ch6.sh985 B
  • _workspace/assert/ch7.sh1.3 KB
  • _workspace/assert/lib.sh1.5 KB
  • _workspace/browser-stand-in/confirm.js1.2 KB
  • _workspace/browser-stand-in/live-clicks.js2.1 KB
  • _workspace/browser-stand-in/package.json151 B
  • _workspace/enable.py3.1 KB
  • _workspace/ports.py2 KB
  • _workspace/run.sh6.1 KB
  • agentic.mdx32.4 KB
  • agentic.mdx.skill.md32.4 KB
  • channels.mdx5.4 KB
  • channels.mdx.skill.md5.4 KB
  • durable-execution.mdx15.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.