Content
@
https://warpcast.com/~/channel/fleek
0 reply
0 recast
0 reaction
Meison
@meison
Fleek it till you make it: Building a Web3 URL shortener ๐ @fleek it till you make it! ๐ Forget boring, centralized URL shortenersโWeb3 is calling. Letโs build a decentralized, censorship-resistant URL shortener using Next.js, Ethereum, and Fleek!!
1 reply
0 recast
0 reaction
Meison
@meison
Why Web3 for shortening URLs? - Decentralization: No single entity controls the links. - Censorship Resistance: No one can take down your links. - Transparency: Every mapping is on-chain, verifiable by anyone.
1 reply
0 recast
0 reaction
Meison
@meison
Tech Stack ๐ฃ Next.js โ Frontend + SSR ๐ต Fleek โ Web3 hosting on the edge ๐ Ethereum (Arbitrum Sepolia) โ Immutable storage ๐ก Wagmi + RainbowKit โ Wallet connections
1 reply
0 recast
0 reaction
Meison
@meison
Set up Tailwind CSS and create lib/ & abi/ directories.
1 reply
0 recast
0 reaction
Meison
@meison
The Smart Contract ๐ Weโll store short links on-chain: ๐ Deployed on Arbitrum Sepolia ๐ Contract: 0x2729D62B3cde6fd2263dF5e3c6509F87C6C05892
1 reply
0 recast
0 reaction
Meison
@meison
Connecting the Next.js app to Ethereum Create a .env file: NEXT_PUBLIC_CONTRACT_ADDRESS=0x2729D62B3cde6fd2263dF5e3c6509F87C6C05892 NEXT_PUBLIC_RPC_URL={{YOUR_ARBITRUM_SEPOLIA_RPC}} Load the contract ABI & integrate ethers.js to interact with it.
1 reply
0 recast
0 reaction
Meison
@meison
Building the UI ๐ Enter a long URL & short code ๐ Connect wallet via RainbowKit โก Write to blockchain & generate shareable links
1 reply
0 recast
0 reaction