The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix
Steven Tey75093e0030b4
diff --git a/apps/docs/quickstart/django.mdx b/apps/docs/quickstart/django.mdxindex ddd38704f2..b3c37ee5fd 100644--- a/apps/docs/quickstart/django.mdx+++ b/apps/docs/quickstart/django.mdx@@ -10,13 +10,13 @@ import LinkArguments from "/snippets/link-arguments.mdx";## 2. Install-To install the Dub Python SDK, run the following command:+To install the [Dub Python SDK](https://d.to/python), run the following command:```bash pippip install dub```-initialize the Dub Python SDK by creating a new instance of the `Dub` class.+Initialize the Dub Python SDK by creating a new instance of the `Dub` class.```pythonimport dub@@ -82,7 +82,7 @@ def upsert_link(request):## 5. Update link-Let's update an existing link using the Dub Node.js SDK.+Let's update an existing link using the Dub Python SDK.You can do that in two ways:diff --git a/apps/docs/quickstart/express.mdx b/apps/docs/quickstart/express.mdxindex f5a0fdbb4f..49b0e3f1f3 100644--- a/apps/docs/quickstart/express.mdx+++ b/apps/docs/quickstart/express.mdx@@ -1,6 +1,6 @@---title: "Express"-description: "Learn how to create a short link using the Express and Dub Node.js SDK."+description: "Learn how to create a short link using the Express and Dub TypeScript SDK."---import Prerequisites from "/snippets/sdk-prerequisites.mdx";@@ -13,7 +13,7 @@ import LinkArguments from "/snippets/link-arguments.mdx";## 3. Create link-Let's create a short link using the Dub Node.js SDK.+Let's create a short link using the [Dub TypeScript SDK](/sdks/typescript/overview).```typescript index.tsapp.get("/create-link", async (req: Request, res: Response) => {@@ -54,7 +54,7 @@ app.get("/create-link", async (req: Request, res: Response) => {## 4. Upsert link-Dub Node.js SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.+Dub TypeScript SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.```typescript index.tsapp.get("/upsert-link", async (req: Request, res: Response) => {@@ -73,7 +73,7 @@ app.get("/upsert-link", async (req: Request, res: Response) => {## 5. Update link-Let's update an existing link using the Dub Node.js SDK.+Let's update an existing link using the Dub TypeScript SDK.You can do that in two ways:@@ -102,7 +102,7 @@ app.get("/update-link", async (req: Request, res: Response) => {## 6. Retrieve analytics for link-Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.+Dub allows you to retrieve analytics for a link using the Dub TypeScript SDK.```typescript index.tsimport { ClicksTimeseries } from "dub/models/components";diff --git a/apps/docs/quickstart/flask.mdx b/apps/docs/quickstart/flask.mdxindex 82bc9110b5..c6088dcf4e 100644--- a/apps/docs/quickstart/flask.mdx+++ b/apps/docs/quickstart/flask.mdx@@ -10,13 +10,13 @@ import LinkArguments from "/snippets/link-arguments.mdx";## 2. Install-To install the Dub Python SDK, run the following command:+To install the [Dub Python SDK](https://d.to/python), run the following command:```bash pippip install dub```-initialize the Dub Python SDK by creating a new instance of the `Dub` class.+Initialize the Dub Python SDK by creating a new instance of the `Dub` class.```pythonimport os@@ -96,7 +96,7 @@ def upsert():## 5. Update link-Let's update an existing link using the Dub Node.js SDK.+Let's update an existing link using the Dub Python SDK.You can do that in two ways:diff --git a/apps/docs/quickstart/nextjs.mdx b/apps/docs/quickstart/nextjs.mdxindex 1f0e7922f4..35cc4a33d3 100644--- a/apps/docs/quickstart/nextjs.mdx+++ b/apps/docs/quickstart/nextjs.mdx@@ -1,6 +1,6 @@---title: "Next.js"-description: "Learn how to create a short link using the Next.js and Dub Node.js SDK."+description: "Learn how to create a short link using the Next.js and Dub TypeScript SDK."---import Prerequisites from "/snippets/sdk-prerequisites.mdx";@@ -13,7 +13,7 @@ import LinkArguments from "/snippets/link-arguments.mdx";## 3. Create link-Let's create a short link using the Dub Node.js SDK.+Let's create a short link using the [Dub TypeScript SDK](/sdks/typescript/overview).```typescript app/api/links/route.tsexport async function POST() {@@ -56,7 +56,7 @@ This will let you easily [update the link](#5-update-link) later on using the `e## 4. Upsert link-Dub Node.js SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.+Dub TypeScript SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.```typescript app/api/links/route.tsexport async function PATCH() {@@ -74,7 +74,7 @@ export async function PATCH() {## 5. Update link-Let's update an existing link using the Dub Node.js SDK.+Let's update an existing link using the Dub TypeScript SDK.You can do that in two ways:@@ -103,7 +103,7 @@ export async function PATCH() {## 6. Retrieve analytics for link-Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.+Dub allows you to retrieve analytics for a link using the Dub TypeScript SDK.```typescript app/api/analytics/route.tsimport { ClicksTimeseries } from "dub/models/components";diff --git a/apps/docs/quickstart/nodejs.mdx b/apps/docs/quickstart/nodejs.mdxindex 490982a649..298236fa13 100644--- a/apps/docs/quickstart/nodejs.mdx+++ b/apps/docs/quickstart/nodejs.mdx@@ -1,6 +1,6 @@---title: "Introduction"-description: "Learn how to create a short link using the Dub Node.js SDK."+description: "Learn how to create a short link using the Dub TypeScript SDK."---import Prerequisites from "/snippets/sdk-prerequisites.mdx";@@ -13,7 +13,7 @@ import LinkArguments from "/snippets/link-arguments.mdx";## 3. Create link-Let's create a short link using the Dub Node.js SDK.+Let's create a short link using the [Dub TypeScript SDK](/sdks/typescript/overview).```typescript create-link.tsconst { shortLink } = await dub.links.create({@@ -42,7 +42,7 @@ This will let you easily [update the link](#5-update-link) later on using the `e## 4. Upsert link-Dub Node.js SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.+Dub TypeScript SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.```typescript upsert-link.tsconst { shortLink } = await dub.links.upsert({@@ -54,7 +54,7 @@ console.log(shortLink); // will always be the same short link## 5. Update link-Let's update an existing link using the Dub Node.js SDK.+Let's update an existing link using the Dub TypeScript SDK.You can do that in two ways:@@ -75,7 +75,7 @@ await dub.links.update("ext_12345", {## 6. Retrieve analytics for link-Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.+Dub allows you to retrieve analytics for a link using the Dub TypeScript SDK.```typescript get-analytics.tsimport { ClicksTimeseries } from "dub/models/components";diff --git a/apps/docs/quickstart/nuxt.mdx b/apps/docs/quickstart/nuxt.mdxindex a71a197609..aed3cbad2d 100644--- a/apps/docs/quickstart/nuxt.mdx+++ b/apps/docs/quickstart/nuxt.mdx@@ -1,6 +1,6 @@---title: "Nuxt"-description: "Learn how to create a short link using the Nuxt and Dub Node.js SDK."+description: "Learn how to create a short link using the Nuxt and Dub TypeScript SDK."---import Prerequisites from "/snippets/sdk-prerequisites.mdx";@@ -12,7 +12,7 @@ import InstallNode from "/snippets/sdk-install-nodejs.mdx";## 3. Create link-Let's create a short link using the Dub Node.js SDK.+Let's create a short link using the [Dub TypeScript SDK](/sdks/typescript/overview).```typescript server/api/links.post.tsexport default defineEventHandler(async () => {@@ -51,7 +51,7 @@ export default defineEventHandler(async () => {## 4. Upsert link-Dub Node.js SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.+Dub TypeScript SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.```typescript server/api/links.put.tsexport default defineEventHandler(async () => {@@ -70,7 +70,7 @@ export default defineEventHandler(async () => {## 5. Update link-Let's update an existing link using the Dub Node.js SDK.+Let's update an existing link using the Dub TypeScript SDK.You can do that in two ways:@@ -100,7 +100,7 @@ export default defineEventHandler(async () => {## 6. Retrieve analytics for link-Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.+Dub allows you to retrieve analytics for a link using the Dub TypeScript SDK.```typescript server/api/analytics.get.tsimport { ClicksTimeseries } from "dub/models/components";diff --git a/apps/docs/quickstart/python.mdx b/apps/docs/quickstart/python.mdxindex 0bf114c1b5..9654356dcf 100644--- a/apps/docs/quickstart/python.mdx+++ b/apps/docs/quickstart/python.mdx@@ -10,13 +10,13 @@ import LinkArguments from "/snippets/link-arguments.mdx";## 2. Install-To install the Dub Python SDK, run the following command:+To install the [Dub Python SDK](https://d.to/python), run the following command:```bash pippip install dub```-initialize the Dub Python SDK by creating a new instance of the `Dub` class.+Initialize the Dub Python SDK by creating a new instance of the `Dub` class.```pythonimport os@@ -72,7 +72,7 @@ print(result.link_schema.short_link)## 5. Update link-Let's update an existing link using the Dub Node.js SDK.+Let's update an existing link using the Dub Python SDK.You can do that in two ways:diff --git a/apps/docs/quickstart/remix.mdx b/apps/docs/quickstart/remix.mdxindex 7220c95fca..7cbbba2192 100644--- a/apps/docs/quickstart/remix.mdx+++ b/apps/docs/quickstart/remix.mdx@@ -1,6 +1,6 @@---title: "Remix"-description: "Learn how to create a short link using the Remix and Dub Node.js SDK."+description: "Learn how to create a short link using the Remix and Dub TypeScript SDK."---import Prerequisites from "/snippets/sdk-prerequisites.mdx";@@ -13,7 +13,7 @@ import LinkArguments from "/snippets/link-arguments.mdx";## 3. Create link-Let's create a short link using the Dub Node.js SDK.+Let's create a short link using the [Dub TypeScript SDK](/sdks/typescript/overview).```typescript app/routes/create-link.tsexport const loader = async () => {@@ -58,7 +58,7 @@ This will let you easily [update the link](#5-update-link) later on using the `e## 4. Upsert link-Dub Node.js SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.+Dub TypeScript SDK provides a method to create or update a link so you don't have to worry about checking if the link already exists.```typescript app/routes/upsert-link.tsexport const loader = async () => {@@ -77,7 +77,7 @@ export const loader = async () => {## 5. Update link-Let's update an existing link using the Dub Node.js SDK.+Let's update an existing link using the Dub TypeScript SDK.You can do that in two ways:@@ -107,7 +107,7 @@ export const loader = async () => {## 6. Retrieve analytics for link-Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.+Dub allows you to retrieve analytics for a link using the Dub TypeScript SDK.```typescript app/routes/analytics.tsexport const loader = async () => {diff --git a/apps/docs/snippets/sdk-install-nodejs.mdx b/apps/docs/snippets/sdk-install-nodejs.mdxindex f8650d982e..b2f5b08583 100644--- a/apps/docs/snippets/sdk-install-nodejs.mdx+++ b/apps/docs/snippets/sdk-install-nodejs.mdx@@ -1,6 +1,6 @@-## 2. Install and initialize the Dub Node.js SDK+## 2. Install and initialize the Dub TypeScript SDK-Install the [Dub Node.js SDK](/sdks/typescript/overview) using your preferred package manager:+Install the [Dub TypeScript SDK](/sdks/typescript/overview) using your preferred package manager:<Tabs><Tab title="npm">@@ -27,7 +27,7 @@ Install the [Dub Node.js SDK](/sdks/typescript/overview) using your preferred pa</Tab></Tabs>-Then, initialize the Dub Node.js SDK with your API key.+Then, initialize the Dub TypeScript SDK with your API key.```typescript lib/dub.tsimport { Dub } from "dub";