↩ Return

PeekJS

November 1, 2024

JavaScript

PeekJS link preview popup

Context

PeekJS is a small developer tool: rich link previews without wiring a full metadata stack in every project. The API surface is intentionally tiny so it stays memorable and shippable.

What I built

  • Drop-in script tag integration
  • data-peek attribute convention for targeting anchors
  • Lightweight popup layer that fetches Open Graph-style metadata and renders a calm preview card
PeekJS live link preview card on hover

Technical highlights

The design constraint was zero config: no build step, no framework adapter required. That forced disciplined defaults: sensible z-index, focus behavior, and failure modes when a site blocks scraping.

PeekJS install snippet and framework adapter overview

Outcome

A focused library that demonstrates how I like to ship utilities: narrow scope, crisp docs, and a live demo at peekjs.dev.