Skip to content

iSpeakNerd/cast-intent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cast-intent

WarpcastUrlBuilder is a utility class in warpcast.ts has various methods to build URLs as described in the cast intent docs for Warpcast. Methods come with input validation.


Using this repository:

  1. Install dependencies
npm install
# or 
pnpm install
# or
yarn install
  1. Import WarpcastUrlBuilder (or c/p warpcast.ts code)
import WarpcastUrlBuilder from './warpcast.ts'
  1. Use class methods
// example
  const url = warpcastUrlBuilder.composerUrl({
    text: `Welcome new frens! If you played a game and got a /poap from me at /devcon love to hear from you in /tabletop! 
    
    Click Start to get your channel invite!`,
    embeds: ['https://poap-invites-frame.vercel.app/api'],
    channelKey: 'tabletop',
  });
// https://warpcast.com/~/compose?text=Welcome%2520new%2520frens%21%2520If%2520you%2520played%2520a%2520game%2520and%2520got%2520a%2520%252Fpoap%2520from%2520me%2520at%2520%252Fdevcon%2520love%2520to%2520hear%2520from%2520you%2520in%2520%252Ftabletop%21%2520%250A%2520%2520%2520%2520%250A%2520%2520%2520%2520Click%2520Start%2520to%2520get%2520your%2520channel%2520invite%21&embeds%5B%5D=https%3A%2F%2Fpoap-invites-frame.vercel.app%2Fapi&channelKey=tabletop

About

cast intent builder for warpcast + Farcaster.xyz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published