Skip to content

dubinc/dublet

Repository files navigation

Dublet

A mini link shortener built with the Dub.co TypeScript SDK.

import { Dub } from "dub";

const dub = new Dub({
    token: process.env.DUB_API_KEY
    workspaceId: "ws_xxxxxxxxxxxx",
});

async function shorten() {
    const result = await dub.links.create({
        url: "https://google/com",
    });

    // Handle the result
    console.log(result);
}

Demo

CleanShot.2024-01-18.at.15.58.33.mp4

Stack

  • Link Management Infrastructure: Dub.co
  • Framework: Next.js + Server Actions
  • UI: v0

About

Mini link shortener built with the Dub Typescript SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published