Skip to content

GuiBibeau/supabase-wen

Repository files navigation

Wen NFT!

Your NFT community toolset! Built on Supabase DB and edge functions.

3m video demo!

Description

Wen NFT is API to help you manage your NFT communities. It let's you ensure somebody owns an NFT before they are allowed to join exclusive communities you are building.

The following repository is a proof of concept built for the supabase launch week IV hackathon.

Features:

  • automatic indexing of NFT ownership
  • validation of NFT ownership
  • linking socials data after NFT ownership is allowed to let users access

Architecture:

There are 4 micro services in this project:

  • ERC721A Smart Contract. Deployed to Rinkeby testnet, typescripts typings are dynamically generated from the solidity code
  • 3 Edge Functions that smoothen the operations and ensure no other micro-service is blocking when running
  • Indexer service that automatically listens to any events on the smart contract. Deployed to the edge with Fly.io. It works in tandem with the edge functions for smooth scaling.
  • Dapp frontend that consumes 2 edge functions. In Next.js SSR it validates ownership of the NFT and it also performs non blocking edge function calls to save extra info to manage the community!

Where this can go next:

  • edge function + the indexer pattern are relly nice. It would be even better to integrate the indexer workflow as part of supabase realtime.

About

A hackathon project for supabase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published