schema

How Previews Works

Publish HTML projects, share preview links on custom subdomains, and inspect changes across version histories with visual diffs.

star Core Capabilities

history

Immutable Versioning

Every upload or HTML paste creates a new numbered version (v1, v2, v3).

Past versions remain stored permanently. You can access any previous version directly by adding its number to the path (e.g. /1/, /2/).

lock

Password Protection

Previews can optionally be password-protected. When visitors enter the password, their browser stores an HMAC-signed session cookie valid for 7 days.

When no password is set, previews are publicly accessible immediately without authentication. You decide who has access by optionally setting a project password.

difference

Diff Viewer for LLMs

Compare any two versions directly using a version range in the URL path:

https://<slug>.previews.kartikarora.me/1..2

Returns pure plain-text unified diffs formatted for LLMs, code assistants, and automated tools with zero HTML or CSS overhead.

dns

Dedicated Subdomains

Each project serves from its own subdomain:

https://<slug>.previews.kartikarora.me

Relative links to images, CSS, and JS files work without extra configuration. You can change your project slug whenever needed.

code

HTML File Upload or Direct Paste

Upload an HTML document directly from your computer or paste raw HTML into the editor. Previews packages and serves the content instantly.

route How It Works in 3 Steps

1

1. Create a preview

Upload an HTML file or paste your HTML code in the dashboard, and optionally set a project password. Previews stores the file and publishes version 1.

2

2. Share your link

Share your preview link (and password if protected). Visitors enter the password once for seamless 7-day access, or view immediately if public.

3

3. Update and inspect version diffs

Publish updates as you build. Previews records each release so you can inspect historical snapshots or compare versions side by side with diff links.

link URL Reference

Common URL patterns for viewing previews and comparing versions:

View URL Pattern Description
Live Preview https://<slug>.previews.kartikarora.me/ Serves the active project version (password-protected if password is set).
Specific Version https://<slug>.previews.kartikarora.me/<n>/ Views a historical snapshot (e.g. /1/, /2/).
Version Diff https://<slug>.previews.kartikarora.me/<a>..<b> Compares version A against version B (e.g. /1..2).
LLM Summary https://previews.kartikarora.me/llms.txt Markdown documentation index for coding assistants and LLMs.

quiz Frequently Asked Questions

What formats can I upload to Previews?

You can upload single HTML files or paste HTML code directly. Your HTML can include inline CSS, JavaScript, and links to external scripts, stylesheets, fonts, and images.

Is password protection required?

No. Password protection is optional. You can set a password during creation or in project settings, or leave it blank to make the preview publicly accessible without a password prompt.

How do I view older versions of a preview?

Past versions are preserved permanently in storage. You can view any specific version snapshot by prefixing the URL path with the version number (for example, https://<slug>.previews.kartikarora.me/1/).

Can I change a project slug?

Yes. You can edit the slug in your dashboard settings. Note that any links using the older slug will stop resolving once changed.

Can scripts and coding tools publish to Previews?

Yes. Previews provides a REST API and publishes an llms.txt index so developer tools and coding assistants can deploy previews automatically.

add_circle Open Dashboard