Ana Sayfa / Kod ve Scriptler / Linkfolio Link Pages with A/B Tests

Linkfolio Link Pages with A/B Tests

Blok başına A/B testleri, tıklama atfı ve canlı tema düzenlemesiyle bağlantı sayfaları oluşturun.

  • Yayın tarihi10 Kasım 2026
  • Paket içeriği.css, .html, .ts, .tsx, .json, JavaScript .js
  • Son güncelleme10 Kasım 2026
  • Canlı demoVar
Linkfolio Link Pages with A/B Tests

Overview

Every link gets its own pulse.

Linkfolio is a self-hosted link-in-bio workspace where every block runs its own A/B test. The public page is emitted as one server-rendered HTML document with inline CSS and zero JavaScript, so it paints on the first packet.

What you get

  • Per-block A/B tests — one to four variants with weights and stable visitor assignment
  • Click attribution through /c/:slug/:blockId?v=:variantId
  • Drag ordering with a live phone preview and keyboard up/down fallback
  • Theme editor for accent, font pairing and radius; auto-saves after 500 ms
  • Zero-JavaScript public page with all CSS inlined
  • Dashboard with pages, blocks, views, clicks and CTR
  • One JSON file, atomic writes; no database
  • Dockerfile and docker-compose included; 82 tests

Why A/B plus zero JS

Bio-link pages are usually a list of buttons behind a third-party script. Linkfolio makes the page itself the product: the server chooses the variant, renders the exact label and records the click. There is no client-side experiment flicker and no third-party tracker. The same server-side assignment keeps a visitor on the same variant across visits.

Stack

React 18 + TypeScript + Vite 6 for the admin, Express 4 for the API and SSR public page, one atomic JSON store.

Run it

docker compose up -d --build
# http://localhost:30900

Or locally: npm ci && npm run build && PORT=30900 npm start.

API

GET /api/health · GET/POST /api/pages · PATCH/DELETE /api/pages/:id · GET /:slug (SSR) · GET /c/:slug/:blockId (redirect + click)

Features

Per-block A/B variants with stable visitor assignment Click attribution through /c/:slug/:blockId?v=:variantId Drag ordering with a live phone preview Theme editor: accent, font pairing, radius; auto-saved Public page rendered server-side with inline CSS and zero JavaScript Dashboard with views, clicks, CTR and cursor pagination One JSON file, atomic writes; 82 tests; Docker included

Requirements

Node.js 20+ (22 recommended) or Docker 24+. No database or external services. A writable data/ directory.