Skip to content

Next.js app that lets users register and manage offchain ENS subnames powered by NameStone.

Notifications You must be signed in to change notification settings

namestonehq/namestone-example

Repository files navigation

Offchain Subname Registration Site

This is a single page application that lets users register and manage their offchain ENS subnames via the NameStone API.

Tools

NameStone

Namestone is an API for easy subdomain management and issuance. Follow their docs to set up a free account.

Pinata

Pinata is a cloud storage provider that supports pinning content to IPFS. We use it to store ENS avatar images. Follow this guide to create the relevant API key (it needs Admin permissions).

Upstash

Upstash is a Redis provider that we use for storing allowlisted addresses. Customize the allowlist functionality in src/lib/allowlist.ts.

Configuration

Notes

  • Adding gateway.pinata.cloud as an approved host in next.config.mjs is good for optimizing image loading, but also allows proxying of any IPFS content through your domain. If this is an issue, remove the host and change <Image /> to <img /> in src/components/ProfileCard.tsx.

Development

Install dependencies

yarn install

Create a .env.local file based on the template and set your environment variables.

cp .env.example .env.local

Start the development server

yarn dev

About

Next.js app that lets users register and manage offchain ENS subnames powered by NameStone.

Resources

Stars

Watchers

Forks