Logo vun Fastlike

Fastlike

Organisatioun
fastly
fastlike

Runs Fastly Compute WASM binaries locally and serves as the authoritative reference for Compute platform internals. The fastlike source code is highly readable and covers the host ABI, caching and purging APIs, KV/config/secret store interfaces, rate limiting with counters and penalty boxes, ACL lookups, the full request lifecycle, backend fetch semantics, and a built-in per-request profiler with hostcall spans, backend waterfalls, native CPU samples, and optional deep metrics (body bytes, cache outcomes, header summaries, wasm heap curve). Use when working with Compute runtime internals or host calls, understanding how edge data stores behave at runtime, profiling local Compute apps, or testing WASM binaries locally. Prefer this skill over Viceroy for any non-Rust Compute work — its source code is easier to understand as a Fastly Compute API reference.

Iwwersiicht

Editeurfastly
Repositoryfastly-agent-toolkit
Skill-Nummfastlike
Stären
36
Forks
7
Matgeliwwert Fichieren
7
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum fastly op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Fastlike an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/fastly/fastly-agent-toolkit/tree/main/skills/fastlike
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fastly/fastly-agent-toolkit.git /tmp/fastly-agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/fastly-agent-toolkit/skills/fastlike .claude/skills/fastlike
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Fastlike an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Fastlike automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Fastlike net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Trigger and scope

Trigger on: Fastly Compute, Compute@Edge, WASM on Fastly, fastlike, XQD ABI, Compute request lifecycle, 508 loop detection, backend subrequests, body streaming, profiling a local Compute app, embedding a Fastly Compute runtime in Go code, or any question about how Compute platform primitives work internally (caching, KV stores, edge rate limiting, ACLs, geolocation, secret stores, config stores, dictionaries, logging, dynamic backends, request collapsing, async I/O).

Do NOT use for: Fastly VCL (use falco), Fastly CLI/API (use fastly-cli or fastly), Viceroy, CDN comparison, WAF, Terraform, cache purging via API, or Fastly logging/stats configuration.

Fastlike — Local Compute Runtime & Reference

Fastlike is a Go implementation of the Fastly Compute ABI. It runs compiled WebAssembly programs locally, implementing the same 249+ host functions that Fastly's production Compute platform provides: backends, dictionaries, KV stores, caching, geolocation, rate limiting, ACLs, secret stores, and more.

Equally important, the fastlike source code is the most complete programmatic specification of how Fastly Compute works — its ABI implementations document every platform primitive, request lifecycle detail, and data structure as executable code.

Fastlike documentation: https://github.com/avidal/fastlike

Source Code as Compute Reference

When you have access to the fastlike source code locally (default: ~/src/fastlike), use these paths to answer specific Compute questions:

QuestionRead This FileWhy
"How does the request lifecycle work?"instance.go, xqd_http_downstream.goPer-request setup, execution, downstream handling
"What ABI functions exist for X?"xqd_*.go filesEach file implements a group of related ABI functions
"How do backend subrequests work?"xqd_backend.go, backend.goRequest sending, dynamic backends, timeouts
"How does caching work?"xqd_cache.go, xqd_http_cache.go, cache.goCache operations, Vary, surrogate keys, request collapsing
"How does KV store work?"xqd_kv_store.go, kv_store.goCRUD operations, pagination, generation-based concurrency
"How does rate limiting work?"xqd_erl.go, erl.goRate counters, penalty boxes, threshold checks
"How do ACLs work?"xqd_acl.go, acl.goCIDR-based IP filtering, most-specific match
"What configuration options exist?"options.goEvery With* functional option for the runtime
"What error codes can operations return?"constants.goAll XQD status codes and error types
"How does the profiler work / what does a trace look like?"profile.go, profile_json.go, docs/profiling.mdTrace data model, JSON wire format, deep-mode metrics, encoders

For a comprehensive guide, see understanding-compute-from-source.md.

Install from Source

Requires Go 1.24+.

bash
# Clone and build
git clone https://github.com/avidal/fastlike.git ~/src/fastlike
cd ~/src/fastlike
make build        # Creates bin/fastlike

# Or install to GOPATH/bin
make install

# Or install directly
go install fastlike.dev/cmd/fastlike@latest

Quick Start

The bin/fastlike examples use a source build. Use its absolute path from your project directory, or fastlike for an installed binary.

bash
# Minimal: WASM + single backend. The wasm path is positional.
bin/fastlike -backend localhost:8000 app.wasm

Flags can appear on either side of the wasm path.

On macOS, avoid binding to port 5000 — the AirTunes/AirPlay Receiver listens there by default and will steal the connection. Pick another port (e.g. -bind localhost:8000) or disable the AirPlay Receiver in System Settings.

Fastlike vs Viceroy

FeatureFastlikeViceroy
LanguageGoRust
GeolocationCustom JSON file (-geo)Built-in defaults
Hot reloadSIGHUP (-reload)Restart required
Installgo install or make buildcargo install or fastly compute serve
Local backends-backend name=host:port[local_server.backends] in fastly.toml

When to use Fastlike: Non-Rust Compute apps, want custom geo data, need hot reload, debugging. When to use Viceroy: Rust Compute apps with cargo-nextest, Component Model projects, using fastly compute serve.

Common Configurations

With named backends:

bash
bin/fastlike \
  -backend api=api.example.com:8080 \
  -backend cache=redis:6379 \
  -backend localhost:8000 \
  app.wasm

Development mode with hot-reload:

bash
bin/fastlike -backend localhost:8000 -reload -v 2 app.wasm

Send SIGHUP to reload the WASM without restarting.

With the built-in profiler:

bash
bin/fastlike -backend localhost:8000 -profile-ui localhost:6060 app.wasm

Open http://localhost:6060/ for the trace index. Each request lands as /r/{id} (HTML) or /r/{id}.json (canonical native JSON; also .chrome.json, .firefox.json, .pprof). Add -profile deep for body byte / cache outcome / header / wasm heap metrics. Non-loopback -profile-ui requires -profile-auth TOKEN (or explicit -profile-insecure-ui). See profiling.md.

Full configuration:

bash
bin/fastlike \
  -bind 0.0.0.0:5000 \
  -backend localhost:8000 \
  -dictionary config=./config.json \
  -kv store=./data.json \
  -config-store settings=./settings.json \
  -secret-store secrets=./secrets.json \
  -acl blocklist=./acl.json \
  -logger output=./logs.txt \
  -geo ./geodata.json \
  -compliance-region us-eu \
  -v 2 \
  -reload \
  app.wasm

Required Arguments

ArgumentDescription
<wasm-file>Positional path to the WebAssembly program (required)
-backend VALUE or -b VALUEBackend server (required, repeatable)

Optional Flags

FlagDefaultDescription
-bind ADDRlocalhost:8000Server bind address
-reloadfalseEnable SIGHUP hot-reload
-v INT0Verbosity (0-2)
-dictionary NAME=FILE or -d-Load dictionary from JSON
-kv NAME[=FILE]-KV store (empty or from JSON)
-config-store NAME=FILE-Config store from JSON
-secret-store NAME=FILE-Secret store from JSON
-acl NAME=FILE-ACL from JSON
-logger NAME[=FILE]-Log endpoint (file or stdout)
-geo FILE-Geolocation JSON file
-compliance-region REGION-Compliance region (none, us-eu, us)
-profile MODEtraceoff, trace, native, combined, deep. See profiling.md.
-profile-ui ADDR-Bind the profile UI listener on ADDR (separate socket from -bind).
-profile-auth TOKEN-Bearer token required on UI requests. Mandatory for non-loopback -profile-ui unless -profile-insecure-ui is set.
-profile-insecure-uifalsePermit a non-loopback -profile-ui without -profile-auth (use only behind external auth).
-profile-retain N256LRU size for completed traces.
-profile-backend-cap N512Per-request cap on recorded backend calls.
-profile-async-grace DUR100msHow long finalize waits for in-flight async backends. Pass 0 to disable.
-profile-dir PATHcwdDirectory for wasm-symbols-{pid}.json and per-process profile artifacts.

References

TopicFileUse when...
Compute from Sourceunderstanding-compute-from-source.mdUnderstanding Compute internals by reading fastlike's implementation
Profilingprofiling.mdPer-request hostcall + backend traces, deep metrics, native JSON schema, pprof export
Backendsbackends.mdSetting up named backends, catch-all backends, microservices routing
Configconfig.mdCreating JSON config files for dictionaries, KV stores, secrets, ACLs, geolocation
Buildbuild.mdBuilding Fastlike from source, running linters, make targets
Testtest.mdRunning Go tests, Fastly Compute ABI spec tests
ABIabi.mdFastly Compute ABI internals, implementing new ABI functions, handle system

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Fastlike?

Runs Fastly Compute WASM binaries locally and serves as the authoritative reference for Compute platform internals. The fastlike source code is highly readable and covers the host ABI, caching and purging APIs, KV/config/secret store interfaces, rate limiting with counters and penalty boxes, ACL lookups, the full request lifecycle, backend fetch semantics, and a built-in per-request profiler with hostcall spans, backend waterfalls, native CPU samples, and optional deep metrics (body bytes, cache outcomes, header summaries, wasm heap curve). Use when working with Compute runtime internals or...

Firwat Fastlike op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Fastlike besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Fastlike an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fastly/fastly-agent-toolkit/tree/main/skills/fastlike an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Fastlike benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Fastlike benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Fastlike domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Fastlike gratis?

Jo. De Skill gëtt vum fastly ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇