# dubinc/dub

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/dubinc-dub).**

23,085 stars · 2,855 forks · TypeScript · other

## Links

- GitHub: https://github.com/dubinc/dub
- Homepage: https://dub.co
- awesome-repositories: https://awesome-repositories.com/repository/dubinc-dub.md

## Topics

`clickhouse` `mysql` `nextjs` `open-source` `planetscale` `prisma` `tailwindcss` `tinybird` `typescript` `upstash` `vercel`

## Description

This project is a comprehensive link management and marketing attribution platform designed for creating, tracking, and analyzing shortened URLs. It functions as a centralized hub for marketing analytics, providing tools to monitor link performance, visualize conversion funnels, and manage affiliate programs through a unified dashboard.

The platform distinguishes itself by integrating advanced attribution modeling and partner management directly into the link infrastructure. It supports complex marketing workflows, including automated commission calculations, fraud detection, and payout distribution for affiliates, alongside granular traffic redirection based on device, location, or A/B testing requirements. By utilizing custom domains and reverse proxy configurations, it ensures reliable data collection that bypasses common browser-based tracking restrictions.

Beyond core link operations, the system offers extensive programmatic capabilities, including a robust API, SDKs, and event-driven webhooks for real-time integration with external services. It also incorporates enterprise-grade administrative features such as multi-tenant workspace isolation, role-based access control, and single sign-on integration to support collaborative team environments.

The platform is built to be deployed within private infrastructure, allowing organizations to maintain full control over their data and system configuration.

## Tags

### Development Tools & Productivity

- [Link Management](https://awesome-repositories.com/f/development-tools-productivity/link-management.md) — Serves as a comprehensive platform for creating, tracking, and analyzing shortened URLs with advanced attribution.
- [API Client Libraries](https://awesome-repositories.com/f/development-tools-productivity/api-client-libraries.md) — Provides pre-built client libraries to simplify programmatic interaction with link management and tracking services. ([source](https://dub.co/docs/sdks/overview.md))
- [Programmatic Infrastructure](https://awesome-repositories.com/f/development-tools-productivity/link-management/programmatic-infrastructure.md) — Provides robust APIs and SDKs for programmatic link creation and real-time event tracking.
- [QR Code Generators](https://awesome-repositories.com/f/development-tools-productivity/qr-code-generators.md) — Generates branded QR codes programmatically with support for dynamic logo inclusion and custom styling. ([source](https://dub.co/help/article/custom-qr-codes.md))
- [Branded QR Codes](https://awesome-repositories.com/f/development-tools-productivity/qr-code-generators/branded-qr-codes.md) — Generates custom, branded QR codes to facilitate offline traffic tracking and engagement. ([source](https://dub.co/help/article/dub-links.md))

### Business & Productivity Software

- [Referral Tracking Systems](https://awesome-repositories.com/f/business-productivity-software/referral-tracking-systems.md) — Automates affiliate recruitment, referral tracking, and commission payouts within a unified platform.
- [Payout Management Systems](https://awesome-repositories.com/f/business-productivity-software/payout-management-systems.md) — Disburses earnings to affiliate partners globally using multiple payment methods with automated workflows. ([source](https://dub.co/help/article/dub-partners.md))
- [Workspace Collaboration](https://awesome-repositories.com/f/business-productivity-software/team-collaboration-events/collaboration-communication-tools/collaboration-tools/workspace-collaboration.md) — Provides shared workspaces for team members to collaborate on link management and marketing attribution tasks. ([source](https://dub.co/help.md))
- [Team Collaboration Management](https://awesome-repositories.com/f/business-productivity-software/team-collaboration-management.md) — Allows administrators to invite collaborators to shared workspaces with role-based permissions and enterprise-grade security features. ([source](https://dub.co/help/article/dub-links.md))
- [Billing and Subscription Management](https://awesome-repositories.com/f/business-productivity-software/billing-and-subscription-management.md) — Provides access to historical invoices for paid workspace subscriptions to maintain financial records for accounting purposes. ([source](https://dub.co/help/article/how-to-download-invoice.md))
- [Traffic Analysis](https://awesome-repositories.com/f/business-productivity-software/link-aggregators/traffic-analysis.md) — Aggregates link interaction data by device, browser, and operating system to understand user access patterns. ([source](https://dub.co/docs/concepts/analytics/device.md))
- [Unified Customer Profiles](https://awesome-repositories.com/f/business-productivity-software/unified-customer-profiles.md) — Aggregates user demographics, device data, and interaction history into centralized customer profiles. ([source](https://dub.co/help/article/customer-insights.md))
- [A/B Testing](https://awesome-repositories.com/f/business-productivity-software/a-b-testing.md) — Distributes traffic across multiple destination URLs for a single short link to identify which variation drives the highest conversion rates. ([source](https://dub.co/help/article/ab-testing.md))
- [Invoicing Systems](https://awesome-repositories.com/f/business-productivity-software/invoicing-systems.md) — Allows users to specify business information such as company name, address, and tax identification number to ensure generated payout invoices meet accounting requirements. ([source](https://dub.co/help/article/partner-payout-invoice.md))

### Data & Databases

- [Marketing Analytics](https://awesome-repositories.com/f/data-databases/marketing-analytics.md) — Features a centralized dashboard for visualizing link performance, conversion funnels, and campaign effectiveness.
- [Marketing Attribution](https://awesome-repositories.com/f/data-databases/marketing-attribution.md) — Tracks link performance and conversion events across channels to measure marketing campaign effectiveness.
- [Attribution Models](https://awesome-repositories.com/f/data-databases/attribution-models.md) — Configures how credit is assigned to referral partners by choosing between first-click or last-click logic for conversion events. ([source](https://dub.co/docs/concepts/attribution.md))
- [Campaign Analytics](https://awesome-repositories.com/f/data-databases/campaign-analytics.md) — Filters link analytics by tags to measure the effectiveness of specific marketing campaigns and traffic sources. ([source](https://dub.co/help/article/how-to-create-link.md))
- [Conversion Tracking](https://awesome-repositories.com/f/data-databases/conversion-tracking.md) — Records user signups and sales attributed to specific short links to measure the effectiveness of marketing campaigns and revenue generation. ([source](https://dub.co/help/article/customer-insights.md))
- [Multi-Tenant Data Management](https://awesome-repositories.com/f/data-databases/multi-tenant-data-management.md) — Segregates resources and analytics by workspace identifiers to ensure secure, independent management of links and partner data for different users.
- [Referral Analysis](https://awesome-repositories.com/f/data-databases/referral-analysis.md) — Tracks visitor metrics including geolocation, device, and referrer data to analyze link performance. ([source](https://dub.co/docs/concepts/analytics/links.md))
- [Conversion Funnel Analytics](https://awesome-repositories.com/f/data-databases/conversion-funnel-analytics.md) — Visualizes user progression through conversion paths using funnels and time-series charts to identify drop-off points. ([source](https://dub.co/docs/integrations/shopify.md))
- [Outbound Link Identifiers](https://awesome-repositories.com/f/data-databases/cross-domain-analytics/outbound-link-identifiers.md) — Appends unique identifiers to outbound links across multiple domains to maintain attribution continuity for users navigating between different applications. ([source](https://dub.co/docs/sdks/client-side/installation-guides/google-tag-manager.md))
- [Analytics APIs](https://awesome-repositories.com/f/data-databases/analytics-apis.md) — Provides programmatic interfaces to aggregate click data across an entire workspace in a single call. ([source](https://dub.co/docs/api-reference/rate-limits.md))
- [Analytics Dashboards](https://awesome-repositories.com/f/data-databases/analytics-dashboards.md) — Enables the publication of real-time performance dashboards to provide stakeholders with transparent access to engagement data. ([source](https://dub.co/help/article/dub-analytics-limits.md))
- [Folder-Based Segmentation](https://awesome-repositories.com/f/data-databases/campaign-analytics/folder-based-segmentation.md) — Groups link performance data into specific folders to generate campaign-specific reports on clicks and conversions. ([source](https://dub.co/help/article/filter-analytics-by-folders.md))
- [Custom Event Tracking](https://awesome-repositories.com/f/data-databases/custom-event-tracking.md) — Executes custom tracking events programmatically from application code to record interactions on dynamic pages or non-standard referral paths. ([source](https://dub.co/docs/sdks/client-side/features/click-tracking.md))
- [Referral](https://awesome-repositories.com/f/data-databases/data-retrieval/referral.md) — Fetches and stores referral-specific incentives and partner details in local cookies for personalized user experiences. ([source](https://dub.co/docs/sdks/client-side/features/click-tracking.md))
- [Time Series Databases](https://awesome-repositories.com/f/data-databases/time-series-databases.md) — Stores and processes high-volume interaction events in optimized data structures to enable real-time visualization of performance trends over time.

### Networking & Communication

- [Custom Domains](https://awesome-repositories.com/f/networking-communication/networking/custom-domains.md) — Enables the use of personal custom domains for branded short links to maintain professional identity.
- [Event Webhooks](https://awesome-repositories.com/f/networking-communication/event-webhooks.md) — Notifies external systems in real time when specific link, lead, or partner events occur. ([source](https://dub.co/docs/integrations.md))
- [Deep Linking](https://awesome-repositories.com/f/networking-communication/deep-linking.md) — Tracks app launches and deep link arrivals to correlate user activity with original link clicks. ([source](https://dub.co/docs/api-reference/track/open.md))
- [Edge Traffic Management](https://awesome-repositories.com/f/networking-communication/network-infrastructure-routing/network-routing-traffic-management/network-routing/edge-traffic-management.md) — Redirects incoming traffic at the network edge to minimize latency and offload processing from the primary application server.
- [Reverse Proxies](https://awesome-repositories.com/f/networking-communication/networking/reverse-proxies.md) — Routes analytics requests through custom domains to bypass browser-based ad blockers and ensure accurate data collection for marketing events.
- [Root Redirection](https://awesome-repositories.com/f/networking-communication/networking/custom-domains/root-redirection.md) — Automatically forwards root domain traffic to specified destination URLs. ([source](https://dub.co/help/article/how-to-redirect-root-domain.md))

### Security & Cryptography

- [API Request Authentication](https://awesome-repositories.com/f/security-cryptography/identity-access-management/authentication-strategies/machine-and-protocol-identity/api-machine-authentication/api-request-authentication.md) — Uses workspace-specific keys to authorize programmatic access to resources while ensuring credential isolation. ([source](https://dub.co/docs/api-reference/authentication.md))
- [Fraud Detection Systems](https://awesome-repositories.com/f/security-cryptography/fraud-detection-systems.md) — Identifies suspicious behavior such as self-referrals and duplicate accounts to protect program revenue. ([source](https://dub.co/help/article/dub-partners.md))
- [Role-Based Access Control](https://awesome-repositories.com/f/security-cryptography/role-based-access-control.md) — Secures workspaces using role-based access control and single sign-on for enterprise-grade team management.
- [SAML Authentication](https://awesome-repositories.com/f/security-cryptography/saml-authentication.md) — Integrates with enterprise identity providers to manage team access and secure user authentication through single sign-on. ([source](https://dub.co/help/article/azure-saml.md))
- [Attribution Cookies](https://awesome-repositories.com/f/security-cryptography/session-cookie-handlers/attribution-cookies.md) — Maintains user session continuity across domains by storing unique identifiers in browser cookies to link clicks with downstream conversions.
- [Request Authentication](https://awesome-repositories.com/f/security-cryptography/request-authentication.md) — Validates the signature of incoming webhook requests using a shared secret to confirm data integrity and origin. ([source](https://dub.co/docs/postbacks/verify-postback-requests.md))
- [Tax Compliance Engines](https://awesome-repositories.com/f/security-cryptography/tax-compliance-engines.md) — Collects required tax documentation from partners and generates necessary tax forms to ensure regulatory adherence. ([source](https://dub.co/help/article/partner-payouts.md))
- [Link Protection](https://awesome-repositories.com/f/security-cryptography/password-management/link-protection.md) — Requires visitors to enter a specific password before they can be redirected to the destination URL of a shared link. ([source](https://dub.co/help/article/password-protected-links.md))

### Web Development

- [URL Shorteners](https://awesome-repositories.com/f/web-development/url-shorteners.md) — Offers a programmatic API for generating and managing large volumes of branded short links.
- [Click Trackers](https://awesome-repositories.com/f/web-development/client-side-components/click-trackers.md) — Captures referral traffic directly within a web application using query parameters to identify sources without requiring a server-side redirect. ([source](https://dub.co/docs/sdks/client-side/introduction.md))
- [Analytics Parameter Captures](https://awesome-repositories.com/f/web-development/query-parameter-parsers/analytics-parameter-captures.md) — Defines reusable sets of tracking tags at the workspace level to ensure consistent campaign data collection. ([source](https://dub.co/help/article/how-to-create-utm-templates.md))
- [Mobile Redirection](https://awesome-repositories.com/f/web-development/traffic-routing/mobile-redirection.md) — Redirects mobile users to specific app content or stores based on device type and installation status. ([source](https://dub.co/docs/concepts/deep-links/quickstart.md))
- [Device-Based Redirection](https://awesome-repositories.com/f/web-development/url-routing/redirection-rules/device-based-redirection.md) — Routes users to specific destination URLs based on their device platform while providing a fallback URL. ([source](https://dub.co/help/article/device-targeting.md))
- [Geographic Redirection](https://awesome-repositories.com/f/web-development/url-routing/redirection-rules/geographic-redirection.md) — Routes users to specific destination URLs based on their geographic country of origin. ([source](https://dub.co/help/article/geo-targeting.md))
- [API Pagination](https://awesome-repositories.com/f/web-development/api-pagination.md) — Retrieves large collections of resources in manageable chunks using standard pagination parameters. ([source](https://dub.co/docs/api-reference/introduction.md))
- [AI-Powered Previews](https://awesome-repositories.com/f/web-development/link-preview-services/ai-powered-previews.md) — Uses language models to automatically generate optimized social media previews for shared links. ([source](https://dub.co/help/article/custom-link-previews.md))
- [Social Media Integrations](https://awesome-repositories.com/f/web-development/social-media-integrations.md) — Allows configuration of social media preview metadata to improve engagement when links are shared. ([source](https://dub.co/help/article/custom-link-previews.md))

### DevOps & Infrastructure

- [Self-Hosted Deployment Platforms](https://awesome-repositories.com/f/devops-infrastructure/self-hosted-deployment-platforms.md) — Supports self-hosted deployment on private infrastructure for full data control and system configuration. ([source](https://dub.co/docs/self-hosting.md))
- [Reverse Proxy Configurations](https://awesome-repositories.com/f/devops-infrastructure/reverse-proxy-configurations.md) — Routes tracking requests through a custom domain to bypass ad blockers and ensure reliable data collection for conversion and click events. ([source](https://dub.co/docs/sdks/client-side/introduction.md))

### Software Engineering & Architecture

- [Webhook Event Notifications](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/programmatic-interfaces/webhook-event-notifications.md) — Triggers automated webhooks in response to link interactions or conversion events for real-time integration. ([source](https://dub.co/docs.md))
- [Event Webhook Management](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/programmatic-interfaces/webhook-event-notifications/event-webhook-management.md) — Notifies external systems in real time when specific link, lead, or partner events occur to trigger automated downstream processes.
- [Commission Structures](https://awesome-repositories.com/f/software-engineering-architecture/architectural-design-patterns/object-oriented-foundations/object-oriented-programming/structure-definitions/commission-structures.md) — Configures commission models based on clicks, leads, or sales to incentivize partners. ([source](https://dub.co/help/article/partner-rewards.md))
- [Automated Retry Strategies](https://awesome-repositories.com/f/software-engineering-architecture/performance-reliability/reliability-patterns/automated-retry-strategies.md) — Implements automated retry strategies with exponential backoff to ensure reliable delivery of webhook notifications. ([source](https://dub.co/docs/postbacks/introduction.md))

### System Administration & Monitoring

- [Performance Trend Analysis](https://awesome-repositories.com/f/system-administration-monitoring/performance-trend-analysis.md) — Aggregates conversion and event data by individual partners to identify top-performing affiliates and track program success. ([source](https://dub.co/docs/concepts/analytics/partners.md))
- [Performance Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/performance-monitoring.md) — Monitors click volume and engagement metrics across geographic and device dimensions to measure campaign effectiveness. ([source](https://dub.co/docs/sdks/python.md))
- [Delivery Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/delivery-monitoring.md) — Maintains a centralized record of webhook delivery status to troubleshoot integration issues and verify communication. ([source](https://dub.co/docs/webhooks/introduction.md))

### Artificial Intelligence & ML

- [Reward Deferral](https://awesome-repositories.com/f/artificial-intelligence-ml/reinforcement-learning-reward-systems/reward-deferral.md) — Delays the attribution of rewards until a customer reaches a specific milestone to allow for qualification periods. ([source](https://dub.co/docs/concepts/attribution.md))
