Skip to content

A complete Next.js template with Tailwind CSS and Pubky integration for building decentralized applications

Notifications You must be signed in to change notification settings

PastaGringo/pubky-nextjs-template

Repository files navigation

Pubky Next.js Template

A complete Next.js template with Tailwind CSS and Pubky integration for building decentralized applications. Key-based identity, censorship resistance, and user control.

Screenshots

Homepage

Homepage

Dashboard

Dashboard

Profile

Profile

Settings

Settings

This is a Next.js project bootstrapped with create-next-app.

Features

  • 🔐 Pubky Authentication: Secure key-based identity system
  • 🌐 Decentralized: Built on Pubky Core for censorship resistance
  • 🎨 Modern UI: Beautiful interface with Tailwind CSS
  • 📱 Responsive: Works on all devices
  • 🔧 TypeScript: Full type safety
  • Fast: Optimized Next.js performance
  • 🛡️ Secure: User-controlled data and privacy

Pubky Integration

This template uses the following Pubky packages:

Core Dependencies

  • @synonymdev/pubky ^0.5.4 - Core Pubky SDK for decentralized identity and data management
  • pubky-app-specs ^0.3.5 - Application specifications and schemas for Pubky apps

Authentication Flow

  1. Pubky Ring App - Mobile app for secure key management and authentication
  2. QR Code Authentication - Scan QR codes to connect your Pubky identity
  3. Decentralized Storage - Your data is stored on your chosen homeserver
  4. Key-based Identity - No passwords, just cryptographic keys

How it Works

  • Users authenticate using the Pubky Ring mobile app
  • The app generates QR codes for secure connection
  • All user data is stored on decentralized homeservers
  • Users maintain full control over their identity and data

Installation

  1. Clone the repository
git clone https://github.com/PastaGringo/pubky-nextjs-template.git
cd pubky-nextjs-template
  1. Install dependencies
npm install
# or
yarn install
# or
pnpm install
  1. Set up environment variables
cp .env.example .env.local

Edit .env.local and update the values according to your needs:

  • NEXT_PUBLIC_PUBKY_APP_ID: Your unique application ID
  • NEXT_PUBLIC_PUBKY_APP_NAME: Your application name
  • PUBLIC_DOMAIN: Your domain (localhost:3000 for development)

Getting Started

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

A complete Next.js template with Tailwind CSS and Pubky integration for building decentralized applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published