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
↓
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);
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.