# blade47/dub > AI-generated documentation for github.com/blade47/dub ## Technical docs: Getting Started - [Overview](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/getting-started/overview): Dub is a comprehensive open-source link management and attribution platform engineered for modern marketing teams and high-scale applications. It provides robust infrastructure for shortening and d... - [Quick Start](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/getting-started/quick-start): The Quick Start page documents the local development environment, database seeding pipelines, bulk test data generators, integration emulators, and historical data maintenance scripts used across t... - [Project Structure](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/getting-started/project-structure): The repository is structured as a pnpm workspace monorepo defined in pnpm-workspace.yaml, using Turborepo for pipeline orchestration and build task caching as configured in turbo.json and package.j... ## Technical docs: Core Architecture - [Request Routing](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/core-architecture/request-routing): Request routing in Dub is powered by a central edge middleware layer that intercepts incoming HTTP requests across all domains and subdomains, parses hostnames and paths, and delegates execution to... - [Database Architecture](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/core-architecture/database-architecture): Dub’s database architecture powers a high-performance link attribution and affiliate network platform built on MySQL, Prisma ORM, and PlanetScale serverless infrastructure. It utilizes a dual-clien... - [Authentication](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/core-architecture/authentication): Authentication manages user identity, session lifecycle, and enterprise Single Sign-On (SSO) across workspaces. It combines standard credential and OAuth providers with BoxyHQ Jackson for SAML and ... - [Caching & Rate Limiting](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/core-architecture/caching-rate-limiting): Dub uses Upstash Redis and Vector infrastructure to power its caching, rate limiting, and event streaming architecture across distributed serverless and edge environments. By leveraging sliding-win... ## Technical docs: Link Engine - [Link Dispatch](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/link-attribution/link-dispatch): Link dispatch powers the core request processing engine responsible for handling incoming short links across custom domains and root namespaces at the edge. By combining low-latency caching with ed... - [A/B Testing](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/link-attribution/a-b-testing): Dub provides built-in A/B testing capabilities that allow links to split incoming traffic across multiple destination URLs based on percentage weights. When configured, edge routing inspects user c... - [QR Code Generator](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/link-attribution/qr-code-generator): The QR code generator infrastructure powers dynamic matrix rendering, custom geometry styling, and multi-format client or server delivery across link and partner workflows. Utilizing a robust TypeS... - [Domain Management](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/link-attribution/domain-management): Domain Management serves as the foundational infrastructure layer in Dub for connecting, registering, provisioning, and verifying custom link domains. This subsystem bridges the gap between workspa... - [Dynamic Card Previews](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/link-attribution/dynamic-card-previews): Dub powers dynamic card previews and Open Graph image generation across its platform using Next.js ImageResponse, edge runtimes, and interactive UI components. These capabilities allow developers a... ## Technical docs: Analytics & Tracking - [Tinybird Analytics](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/analytics-pipeline/tinybird-analytics): Dub leverages Tinybird as its underlying real-time analytics and event streaming backbone to ingest, process, and query millions of click, lead, sale, webhook, and visit telemetry events. By utiliz... - [Conversion Tracking](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/analytics-pipeline/conversion-tracking): Dub implements an end-to-end conversion tracking and attribution engine that ingests edge interactions, records customer lead and sale funnels, and dispatches multi-channel commissions and downstre... - [Analytics Dashboard](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/analytics-pipeline/analytics-dashboard): Dub provides a comprehensive analytics dashboard system that tracks and aggregates link clicks, lead submissions, and sale conversions across workspaces, partner programs, and shared public views. ... - [Audit Logs](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/analytics-pipeline/audit-logs): Dub maintains a multi-layered audit and telemetry architecture that captures administrative actions, partner modifications, workspace activities, and API or webhook requests across the platform. Ad... ## Technical docs: Partner Programs - [Reward Rules](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/partner-programs/reward-rules): Reward rules govern how affiliate commissions are determined across workspace programs, resolving event structures, payout calculations, and conditional overrides for sales, leads, clicks, referral... - [Partner Programs](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/partner-programs/partner-programs): Partner Programs manage the lifecycle of affiliate relationships within Dub, connecting prospective promoters with workspace-owned programs through structured entry points, eligibility verification... - [Bounties & Submissions](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/partner-programs/bounties-submissions): The bounties and submissions subsystem in Dub powers partner incentive programs by supporting both performance-based tracking and social content verification apps/web/prisma/schema/bounty.prisma:1-... - [Program Marketplace](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/partner-programs/program-marketplace): The Program Marketplace serves as Dub's centralized directory for discovering, exploring, and applying to network affiliate and referral programs. It connects prospective affiliates with top SaaS p... ## Technical docs: Billing & Payouts - [Workspace Subscriptions](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/billing-and-payouts/workspace-subscriptions): Workspace Subscriptions manages enterprise billing integration, subscription lifecycles, and plan quotas through Stripe webhooks, REST API endpoints, and Tinybird metrics tracking. It automates wor... - [Commission Engine](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/billing-and-payouts/commission-engine): The Commission Engine powers Dub's partner programs by tracking, calculating, and managing financial rewards across affiliate click, lead, sale, referral, and custom commission types. It processes ... - [Payout Settlement](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/billing-and-payouts/payout-settlement): Payout settlement orchestrates the end-to-end lifecycle of partner compensation, transitioning accumulated referral commissions from pending ledger entries into disbursed funds across multiple fina... - [Fraud Prevention](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/billing-and-payouts/fraud-prevention): Fraud Prevention protects partner programs by combining automated edge bot filtering, heuristic application risk analysis, backend duplicate detection, and third-party identity verification with Ve... ## Technical docs: Integrations - [Stripe App](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/integrations-subsystem/stripe-app): The Stripe app integration bridges Dub with Stripe accounts, enabling automated Conversion Tracking, bidirectional coupon synchronization, and merchant workspace management. By packaging a Stripe U... - [HubSpot & Intercom](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/integrations-subsystem/hubspot-intercom): Dub features integrations with HubSpot and Intercom to synchronize CRM data, attribute conversions, and route partner communications directly within workspaces. The HubSpot integration handles OAut... - [Ad Conversion Sync](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/integrations-subsystem/ad-conversion-sync): Ad Conversion Sync synchronizes offline conversion events, mobile app attribution postbacks, and e-commerce checkouts back to advertising networks like Google Ads apps/web/lib/integrations/google-a... - [Data Importers](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/integrations-subsystem/data-importers): Data Importers facilitate the migration of historical link, partner, customer, and commission data from external URL shorteners and affiliate management platforms into Dub. By providing automated i... - [OAuth Apps](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/integrations-subsystem/oauth-apps): Dub features a complete OAuth 2.0 authorization server implementation that enables third-party developers and internal clients, such as the Dub CLI, to securely integrate with Dub workspaces. Devel... ## Technical docs: Background Processing - [Scheduled Cron Tasks](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/background-processing/scheduled-cron-tasks): Scheduled Cron Tasks orchestrates Dub's background maintenance, lifecycle automation, data synchronization, and deferred processing operations. Built to handle routine tasks across domains, partner... - [Queue Workers](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/background-processing/queue-workers): Dub implements a resilient queue worker and event-streaming architecture built around Upstash Redis streams and QStash job dispatching. High-frequency telemetry—such as link clicks and workspace us... - [Email Notification](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/background-processing/email-notification): Email notification infrastructure in Dub handles programmatic dispatch across security, lifecycle, marketing, and partner communication channels using React Email templates styled with Tailwind CSS... - [Webhooks & Postbacks](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/background-processing/webhooks-postbacks): Dub implements an event-driven webhook and postback architecture to synchronize state across external partner programs, payment processors, and notification systems Workspace Subscriptions, Payout ... ## Technical docs: Administration & API - [Admin Dashboard](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/administration-and-api/admin-dashboard): The admin dashboard provides a centralized management and moderation portal for Dub administrators and enterprise staff. It operates as an internal interface hosted under the admin.dub.co domain, r... - [REST API](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/administration-and-api/rest-api): Dub exposes a comprehensive programmatic interface centered around a robust OpenAPI specification, designed to power integrations, developer tooling, and automated link attribution workflows. The R... - [Embeddable Referrals](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/administration-and-api/embeddable-referrals): Embeddable Referrals provide a secure mechanism for integrating white-labeled partner and affiliate program dashboards directly into external web applications via iframe wrappers and React componen... - [CLI Tool](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/administration-and-api/cli-tool): The Dub command-line interface (dub-cli) provides a lightweight terminal workflow for interacting with the Dub API, allowing developers to manage short links, authentication credentials, and worksp... ## Technical docs: How It Works - [Partner Search Namespace Creation](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/technical/how-it-works/partner-search-namespace-creation): The POST -> CreateNamespace flow handles the full, permanent deletion lifecycle of a partner from a program within Dub. It coordinates database record cleanup, cascades deletion to associated links... ## Technical docs: API Reference - [dub API](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/api/api-overview): Version: inferred - [GET Get analytics for admin](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/api/admin/getadminanalytics):