seq.re

module
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License: MIT

README

seq.re

Go Report Card Go Test Go Lint CodeQL

A self-hostable collection of everyday utilities — URL shortening, IP lookup, secret, image and code sharing — without the ads, telemetry, or third-party dependencies.

Try it out: https://seq.re

Features

  • URL Shortening - Create short, unique 6-character codes for long URLs with automatic 7-day expiration
  • Secret Sharing - Create one-time use encrypted links for sensitive text
  • Image Sharing - Upload and share images with optional encryption and one-time viewing
  • Code Sharing - Share code snippets with syntax highlighting support and optional encryption
  • IP Detection - Lookup your IP with support for proxied requests (X-Forwarded-For, X-Real-IP)
  • End-to-End Encryption - Optional client-side encryption for URLs, images, and pastes
  • One-Time Resources - Auto-delete links, images, secrets, or pastes after first access
  • Encrypted KV Database - Embedded key-value store with automatic TTL-based expiration
  • Web Interface - Web UI with support for all features
  • CLI Tool - Full-featured command line interface with clipboard integration

seq.re demo

Server Deployment

With Database Encryption (AES-256)
# Generate a random 32-byte (256-bit) encryption key
openssl rand -hex 32

# Use the generated key
docker run -p 8080:8080 \
    -v ./data:/data \
    -e REDIRECT_HOST=https://your-seqre-server.com \
    -e REDIRECT_PORT=:8443 \
    -e BEHIND_PROXY=true \
    -e DB_ENCRYPTION_KEY=your_64_character_hex_key_here \
    piheta/seqre:latest
Environment Variables
Variable Default Description
REDIRECT_HOST http://localhost Base URL for shortened links
REDIRECT_PORT :8080 Port suffix for URLs (use :443 or empty for standard ports)
BEHIND_PROXY false Set to true when behind Cloudflare/Nginx to trust proxy headers
DATA_PATH /data/seqre Database storage path
DB_ENCRYPTION_KEY - Optional: 32/48/64 hex chars for AES-128/192/256 encryption
CONTACT_EMAIL - Optional: Contact email displayed in web UI footer

Important: Store the encryption key securely! Without it, your database cannot be decrypted.

CLI

Install
brew tap piheta/seqre
brew install seqre

Or download binaries here

Usage
Usage: seqre <command> [args]
Commands:
  ip                                                              Get your IP address
  url <URL> [--encrypted] [--onetime]                             Create a shortened URL
  url get <short> [key]                                           Expand a shortened URL
  secret <text>                                                   Create an encrypted secret
  secret get <short> <key>                                        Retrieve and decrypt a secret
  img <file> [--encrypted] [--onetime]                            Upload an image
  img get <short> [key]                                           Download an image
  paste <file> [--language <lang>] [--encrypted] [--onetime]      Upload a paste
  paste get <url|short> [key]                                     Retrieve a paste
  config set <server>                                             Set the server URL
  config get                                                      Get the server URL
  config clipboard <on|off>                                       Enable/disable auto-copy to clipboard
  version                                                         Show version information

Directories

Path Synopsis
cmd
cli command
server command
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL