MCPSERV.CLUB
LinkStack

LinkStack

Self-Hosted

Self‑hosted, customizable link sharing platform

Stale(68)
3.2kstars
0views
Updated Jun 3, 2025
LinkStack screenshot 1
1 / 4

Overview

Discover what makes LinkStack powerful

LinkStack is a self‑hosted, open‑source link management platform that mimics the functionality of commercial Linktree services while providing developers with full control over data, configuration, and extensibility. From a technical standpoint it is a **single‑page application (SPA)** backed by a lightweight Go microservice that exposes a RESTful API for CRUD operations on link collections, user accounts, and analytics. The absence of an external database is a deliberate design choice: all persistent data are stored in JSON files or SQLite, making deployment trivial and enabling developers to ship the application as a single binary or Docker image.

Backend

Frontend

Database

Authentication

Overview

LinkStack is a self‑hosted, open‑source link management platform that mimics the functionality of commercial Linktree services while providing developers with full control over data, configuration, and extensibility. From a technical standpoint it is a single‑page application (SPA) backed by a lightweight Go microservice that exposes a RESTful API for CRUD operations on link collections, user accounts, and analytics. The absence of an external database is a deliberate design choice: all persistent data are stored in JSON files or SQLite, making deployment trivial and enabling developers to ship the application as a single binary or Docker image.

Architecture

  • Backend: Go 1.22 with the gin-gonic web framework, using built‑in net/http for serving static assets. The core logic is split into service layers that handle business rules, data access (file‑based or SQLite), and HTTP routing.
  • Frontend: React 18 built with Vite, leveraging Tailwind CSS for rapid UI development. The SPA consumes the Go API via Axios and renders link lists, analytics dashboards, and administrative panels.
  • Database: Optional SQLite for multi‑user setups; otherwise the default file‑based JSON store keeps configuration, user credentials (bcrypt hashed), and link metadata.
  • Authentication: JWT‑based stateless auth with optional LDAP or OAuth2 providers for enterprise environments.
  • Analytics: Lightweight in‑process counter with optional export to Google Analytics via a webhook.

Core Capabilities

  • Link CRUD API: /api/links supports GET, POST, PUT, DELETE. Each link includes URL, title, icon, order, and optional click‑through tracking.
  • User Management API: /api/users for creating, updating, and deleting accounts. Supports role‑based access control (admin vs. member).
  • Theme Engine: JSON‑driven CSS variables allow developers to create brand‑specific themes without touching the source. Themes are served from /themes/{id} and can be overridden per user or globally.
  • Webhooks & Callbacks: Developers can register endpoints that fire on link clicks or user sign‑ups, enabling integrations with analytics platforms or notification services.
  • Export/Import: JSON dumps of all links, users, and settings can be imported into another instance, facilitating migrations or multi‑tenant deployments.

Deployment & Infrastructure

LinkStack ships as a single executable and also provides an official Docker image (linkstackorg/linkstack:latest). The container exposes a single port (default 8080) and mounts a persistent volume for the data directory. Because the application has no external dependencies, it scales horizontally by running multiple instances behind a load balancer; each instance can share the same data volume or use separate volumes with a shared sync mechanism (e.g., rsync or cloud storage). For high‑availability, developers can pair LinkStack with a reverse proxy such as Traefik or Nginx to enable HTTPS, HTTP/2, and automated certificate renewal.

Integration & Extensibility

  • Plugin System: Developers can drop a Go plugin (.so) into the /plugins directory; the runtime loads it at startup, exposing new API routes or modifying request/response pipelines.
  • Custom Actions: The front‑end allows embedding of arbitrary JavaScript widgets (e.g., a live chat or newsletter signup form) directly into the link page.
  • API Hooks: Middleware hooks (beforeRequest, afterResponse) enable logging, rate‑limiting, or custom authentication flows.
  • Webhook Subscriptions: External services can subscribe to events such as linkClicked, userRegistered via a simple JSON payload, making integration with CI/CD pipelines or monitoring dashboards straightforward.

Developer Experience

The source tree is well‑structured: /cmd for the binary, /pkg/api, /pkg/service, and /web for static assets. Documentation is hosted on GitHub Pages, with a comprehensive docs/ folder covering API reference, deployment guides, and plugin development. The community is active on Discord (discord.linkstack.org) where contributors discuss feature requests and troubleshoot deployment issues. The licensing (MIT) encourages reuse in commercial products, while the open‑source nature ensures transparency and rapid iteration.

Use Cases

  • Personal Branding: A developer can host their own LinkStack instance to showcase projects, blogs, and social profiles with full control over privacy settings.
  • Small Business: A boutique agency can embed the link page on its website, track clicks per campaign, and integrate with their existing CRM via webhooks.
  • Enterprise SaaS: Organizations can deploy multi‑tenant LinkStack behind an internal load balancer, using LDAP for authentication and a shared SQLite database to centralize link management across teams.
  • Event Management: Conference organizers can create temporary LinkStack instances for each event, providing attendees with session links, speaker bios, and sponsorship resources.

Advantages

  • Zero‑Database Footprint: Eliminates the need for PostgreSQL/MySQL, reducing operational overhead.
  • Full Customizability: Themes and plugins let developers tailor the UI/UX without forking the core.
  • Lightweight & Fast: Go’s compiled binary and React’s minimal bundle size result in sub‑200 ms API responses even under moderate load.
  • Self‑Hosting Freedom: No data residency concerns; developers can run the instance on-premises,

Open SourceReady to get started?

Join the community and start self-hosting LinkStack today

Weekly Views

Loading...
Support Us
Most Popular

Infrastructure Supporter

$5/month

Keep our servers running and help us maintain the best directory for developers

Repository Health

Loading health data...

Information

Category
other
License
AGPL-3.0
Stars
3.2k
Technical Specs
Pricing
Open Source
Database
None
Docker
Official
Supported OS
LinuxDocker
Author
LinkStackOrg
LinkStackOrg
Last Updated
Jun 3, 2025