Skip to content

pritush/syano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Syano - Free Open-Source URL Shortener

Syano Logo

A powerful, self-hosted URL shortener with analytics and link-in-bio pages. The free Bitly alternative.

License Node PostgreSQL Nuxt

Features β€’ Quick Start β€’ Deploy β€’ Docs

Syano - Opensource URL shortener - url shortener, link shortener, bitly alternative | Product Hunt


🌟 Why Syano?

Syano is a free, open-source URL shortener that gives you complete control over your links and data. Unlike Bitly, your data stays on your server with no tracking or limitations.

  • πŸ”’ Privacy First - Your data stays on your server
  • πŸš€ Fast & Reliable - Optimized for performance
  • 🎨 Beautiful UI - Modern design with dark mode
  • πŸ“Š Analytics - Track clicks, geography, and referrers
  • πŸ”§ Easy Setup - Deploy in minutes
  • πŸ’° Free & Opensource - AGPL-3.0 licensed

✨ Features

Core Features

  • Custom Short Links - Create memorable URLs with custom slugs
  • Link Organization - Organize with tags and comments
  • QR Codes Generation - Generate QR Codes of URL and also collect scan data.
  • Search & Filter - Find links quickly
  • Link Expiration - Set automatic expiration dates
  • Password Protection - Secure sensitive links
  • Device Targeting - Different URLs for iOS/Android
  • Bulk Import/Export - Import thousands of links from JSON

Analytics & Tracking

  • Real-time Analytics - Track clicks as they happen
  • Geographic Data - Interactive world map with country/city data
  • Device Insights - OS, browser, and device breakdown
  • Referrer Tracking - See where traffic comes from

Link-in-Bio

  • Beautiful Bio Pages - Customizable link-in-bio like Linktree
  • Profile Customization - Name, bio, avatar, and social links
  • Share Profile - One-click sharing

Screenshots

Syano screenshot

Demo

Netlify+NeonDB https://syano.netlify.app/

Help collect more samples: https://syano.netlify.app/gmap https://syano.netlify.app/smo5r https://syano.netlify.app/jubfz https://syano.netlify.app/klcvx https://syano.netlify.app/84jdnh https://syano.netlify.app/klcvx https://syano.netlify.app/4gxp72

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • PostgreSQL 14+
  • pnpm or npm

1. Clone & Install

git clone https://github.com/pritush/syano.git
cd syano
pnpm install

2. Configure Environment

cp .env.example .env

Edit .env:

NUXT_DATABASE_URL=postgresql://user:password@host:5432/database
NUXT_SITE_TOKEN=your-secure-random-token
NUXT_SITE_USER=root

3. Set Up Database

# Create database
createdb syano

# Import schema
psql -d syano -f database/schema.sql

4. Start Development

pnpm dev

Visit http://localhost:7466 and login with your token.


πŸ“¦ Database Setup

Supported Databases

  • βœ… Local - PostgreSQL, Node, Docker
  • βœ… Supabase - Serverless PostgreSQL
  • βœ… Neon - Serverless PostgreSQL
  • βœ… Aiven - Serverless PostgreSQL
  • βœ… Self-hosted - Any PostgreSQL instance

Using Docker

docker run -d \
  --name syano-db \
  -e POSTGRES_PASSWORD=password \
  -e POSTGRES_DB=syano \
  -p 5432:5432 \
  postgres:14

docker exec -i syano-db psql -U postgres -d syano < database/schema.sql

πŸš€ Deployment

Vercel

Deploy with Vercel

Netlify

npm i -g netlify-cli
netlify deploy --prod

Self-Hosted

Deploy on any server with Node.js and PostgreSQL support.


πŸ› οΈ Tech Stack


πŸ“– Documentation

See database/schema.sql for the complete database schema. You can run the SQL queries in your postgres database (cloud or hosted) to create tables.

Environment Variables

# Required
NUXT_DATABASE_URL=postgresql://user:pass@host:5432/database
NUXT_SITE_TOKEN=your-secure-random-token
NUXT_SITE_USER=admin

# Optional
NUXT_CACHE_TTL=30
NUXT_REDIRECT_STATUS_CODE=301
NUXT_PUBLIC_SLUG_DEFAULT_LENGTH=6

🀝 Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.


πŸ“„ License

This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.


Made with ❀️ by Pritush

GitHub β€’ Twitter

About

An open-source free URL shortener πŸ”—. Free alternative to bitly

Resources

License

AGPL-3.0, AGPL-3.0 licenses found

Licenses found

AGPL-3.0
LICENSE
AGPL-3.0
LICENSE.txt

Stars

Watchers

Forks

Packages