FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
mux

mux

dubLinkMaker

Public
Like
4
dubLinkMaker
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
2
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
main.tsx
https://mux--4f7235c427b211f0aecd569c3dd06744.web.val.run
README.md

Dub Shortlink Slackbot

We started using dub.co for shortlinks at Mux, so we made a quick Slackbot to make it easier!

Usage

  1. Fork this thing to your account
  2. Set up a Slack bot/app and have the webhooks point at your forked Val
  3. Add the following environment variables to Val.town:
    • DUB_API_KEY your Dub API key
    • DUB_WORKSPACE_ID your Dub workspace ID
    • SLACK_MUX_LINK_SIGNING_SECRET Signing secret for the app you created
  4. Update the LINK_DOMAIN variable to be the one you want to use (needs to be set up in Dub, of course)
  5. Use the command you created in your Slack app! For us, it looks like this:
    • /mux.link https://example.com neat-example This is a quick link for an example.
HTTP
  • main.tsx
    mux--4f…44.web.val.run
Code
README.md
H
main.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.