LongURL

Privacy-first. Developer-owned.

Entity-aware short links that run on your infrastructure — with no telemetry, tracking, or lock-in.

BEFORE
https://shop.com/products/laptop-pro-2024?utm_source=email&utm_campaign=black-friday&utm_medium=newsletter&ref=premium-list&discount=BF50&affiliate=partner123&variant=pro&size=15inch
AFTER
shop.com/p/X7gT5p
npm install longurl-js

Who's using this?

Privacy-first teams

Building HIPAA, GDPR, or SOC2-compliant systems

Privacy-focused startups

Avoiding raw ID exposure in public links

AI agents & internal tools

Need clean, entity-aware URL references

Teams who want control

Own your data, run on your infrastructure

Getting Started

npm install longurl-js
Click to copy
import { LongURL } from 'longurl-js';

const longurl = new LongURL({
  supabase: {
    url: process.env.SUPABASE_URL,
    key: process.env.SUPABASE_SERVICE_ROLE_KEY
  }
});

const result = await longurl.shorten(
  'product',
  'abc123',
  'https://app.com/products/abc123'
);

console.log(result.shortUrl);

Ready to get started?

Explore the full documentation for advanced configuration, API reference, and production deployment guides.

Need help getting started?

Join our community or reach out for support with your implementation.