# SafeSlug > SafeSlug (https://safeslug.3bits.me) is a free, open-source, privacy-first URL shortener that encrypts destination URLs and slugs at rest with AES-256-GCM, stores zero raw visitor IP addresses, and supports memorable passphrase links, signed-in custom vanity slugs, AI-powered smart slug suggestions, and an official command-line client (@safeslug/cli). SafeSlug is designed as a privacy-respecting alternative to traditional link shorteners (such as Bitly or TinyURL) that store destination URLs in plaintext and harvest visitor IP addresses or tracking cookies. Anyone can shorten a URL immediately without creating an account using random (4–12 character) or passphrase (2–5 word) slugs. Signing in unlocks custom slugs, AI slug generation from destination metadata, a link management dashboard, privacy-first analytics, and terminal access via the SafeSlug CLI. ## Key Technical Differentiators - **Encrypted at Rest**: Both destination URLs and slugs are encrypted server-side with AES-256-GCM (PBKDF2-SHA256 derived keys) before database storage. - **Zero Plaintext Lookups**: Redirect resolution and abuse takedowns use keyed HMAC-SHA256 lookup hashes so plaintext URLs and slugs are never stored on disk. - **Zero Raw IP Retention**: Redirect analytics aggregate visit counts, top referrer hostnames, 2-letter country codes, and general device classes (desktop, mobile, tablet) without logging visitor IP addresses or setting redirect tracking cookies. - **No-Referrer Redirects**: Outbound redirects send `Referrer-Policy: no-referrer` so destination sites do not learn your short-link URL. - **AI Smart Slugs**: Signed-in users can extract destination page titles and descriptions to generate human-readable slugs (e.g., `/api-auth-docs`) in one click. - **Developer CLI**: Install `@safeslug/cli` globally via npm to shorten, list, inspect analytics, and delete links from a terminal or CI script with `--json` output. ## Core Product Pages - [SafeSlug Home & Instant URL Shortener](https://safeslug.3bits.me/): Shorten links immediately with random or memorable passphrase slugs, compare SafeSlug against legacy shorteners, and explore core architecture. - [Private URL Shortener](https://safeslug.3bits.me/private-url-shortener): Deep dive into AES-256-GCM encrypted link storage, keyed HMAC lookup hashes, in-memory redirect decryption, and no-referrer headers. - [Custom URL Shortener](https://safeslug.3bits.me/custom-url-shortener): Compare random, passphrase, and signed-in custom vanity slugs for campaigns, slides, print, and team docs. - [AI Slug Generator](https://safeslug.3bits.me/ai-slug-generator): How SafeSlug analyzes destination page metadata to suggest concise, descriptive URL slugs. - [Branded Short Links](https://safeslug.3bits.me/branded-links): Build click-through trust with readable campaign and client links instead of opaque random hashes. - [Privacy-First Link Analytics](https://safeslug.3bits.me/link-analytics): Track clicks, referrers, countries, and device mix without storing raw visitor IP addresses or invasive fingerprinting. - [SafeSlug Developer CLI](https://safeslug.3bits.me/cli): Command-line URL shortening, browser device-code login, custom slugs, analytics, and JSON output via `@safeslug/cli`. ## Comprehensive Reference & Open Source - [Full LLM & Technical Reference (llms-full.txt)](https://safeslug.3bits.me/llms-full.txt): Complete architecture specification, feature comparison table, CLI command reference, and FAQs for AI assistants and search engines. - [SafeSlug GitHub Repository](https://github.com/nickchue/safeslug): MIT-licensed open-source monorepo (Next.js App Router, Convex, Clerk, Web Crypto AES-256-GCM, CLI). - [@safeslug/cli on npm](https://www.npmjs.com/package/@safeslug/cli): Official Node.js command-line package for SafeSlug. ## Trust, Safety & Legal - [Privacy Policy](https://safeslug.3bits.me/privacy): Data minimization disclosures, encryption practices, and cookie preference controls. - [Terms of Service](https://safeslug.3bits.me/terms): Acceptable use policy, SSRF/malware prohibitions, and in-memory decryption disclosures. - [Report Abuse](https://safeslug.3bits.me/report): Notice-and-takedown portal with instant kill-switch deactivation for phishing or malicious links.