npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-w-supabase

v0.1.2

Published

Create a new Next.js project with Better Auth, Supabase, Prisma and shadcn/ui

Readme

Create W Supabase - Next.js Starter Kit

English | Portugues


English

A high-performance, opinionated boilerplate for Full Stack applications with Better Auth, Supabase, Prisma, and shadcn/ui.

Quick Start

pnpm create w-supabase my-app
cd my-app
pnpm install
cp .env.example .env
# Fill in your Supabase credentials
pnpm db:generate
pnpm db:push
pnpm dev

Access: http://localhost:3000


Tech Stack


Folder Structure

src/
├── app/                    # Routes, layouts and pages (App Router)
│   ├── (private)/app/      # Authenticated routes
│   ├── (public)/           # Public routes (landing, auth)
│   ├── api/auth/[...all]/  # Better Auth API handler
│   ├── _components/        # Reusable UI components (shadcn)
│   ├── _hooks/             # Custom hooks
│   └── _lib/               # Utilities
├── features/               # Domain-grouped logic (Auth, etc)
├── lib/                    # Auth config, Supabase clients
├── providers/              # Context Providers (QueryClient, Theme)
├── services/database/      # Prisma client singleton
├── types/                  # Global TypeScript definitions
prisma/                     # Database schema

Available Scripts

| Command | Description | | :------------------- | :--------------------------------------- | | pnpm dev | Starts the development server. | | pnpm build | Builds the application for production. | | pnpm start | Starts the server in production mode. | | pnpm lint | Runs ESLint verification. | | pnpm db:generate | Generates the Prisma Client. | | pnpm db:push | Pushes schema to database. | | pnpm db:migrate | Runs database migrations. |


Essential Variables

| Variable | Description | | :----------------------------- | :--------------------------------------------- | | DATABASE_URL | Supabase PostgreSQL connection string (pooling).| | DIRECT_URL | Supabase direct connection (for migrations). | | BETTER_AUTH_SECRET | Secret key for Better Auth tokens. | | BETTER_AUTH_URL | App base URL. | | NEXT_PUBLIC_SUPABASE_URL | Supabase project URL. | | NEXT_PUBLIC_SUPABASE_ANON_KEY| Supabase anonymous key. | | NEXT_PUBLIC_APP_URL | Base URL of the application. | | GOOGLE_CLIENT_ID | Google OAuth Client ID (optional). | | GOOGLE_CLIENT_SECRET | Google OAuth Client Secret (optional). |


Portugues

Boilerplate opinativo e de alta performance para aplicacoes Full Stack com Better Auth, Supabase, Prisma e shadcn/ui.

Inicio Rapido

pnpm create w-supabase my-app
cd my-app
pnpm install
cp .env.example .env
# Preencha as credenciais do Supabase
pnpm db:generate
pnpm db:push
pnpm dev

Acesse: http://localhost:3000


Tech Stack


Estrutura de Pastas

src/
├── app/                    # Rotas, layouts e paginas (App Router)
│   ├── (private)/app/      # Rotas autenticadas
│   ├── (public)/           # Rotas publicas (landing, auth)
│   ├── api/auth/[...all]/  # Better Auth API handler
│   ├── _components/        # Componentes UI reutilizaveis (shadcn)
│   ├── _hooks/             # Hooks personalizados
│   └── _lib/               # Utilitarios
├── features/               # Logica agrupada por dominio (Auth, etc)
├── lib/                    # Config auth, clientes Supabase
├── providers/              # Context Providers (QueryClient, Theme)
├── services/database/      # Prisma client singleton
├── types/                  # Definicoes globais TypeScript
prisma/                     # Schema do banco

Scripts Disponiveis

| Comando | Descricao | | :------------------- | :--------------------------------------- | | pnpm dev | Inicia o servidor de desenvolvimento. | | pnpm build | Compila a aplicacao para producao. | | pnpm start | Inicia o servidor em modo de producao. | | pnpm lint | Executa a verificacao do ESLint. | | pnpm db:generate | Gera o Prisma Client. | | pnpm db:push | Envia schema para o banco de dados. | | pnpm db:migrate | Executa migrations do banco. |


Variaveis Essenciais

| Variavel | Descricao | | :------------------------------ | :----------------------------------------------- | | DATABASE_URL | Connection string PostgreSQL do Supabase (pooling).| | DIRECT_URL | Conexao direta do Supabase (para migrations). | | BETTER_AUTH_SECRET | Chave secreta para tokens do Better Auth. | | BETTER_AUTH_URL | URL base do app. | | NEXT_PUBLIC_SUPABASE_URL | URL do projeto Supabase. | | NEXT_PUBLIC_SUPABASE_ANON_KEY | Chave anonima do Supabase. | | NEXT_PUBLIC_APP_URL | URL base da aplicacao. | | GOOGLE_CLIENT_ID | Client ID do Google OAuth (opcional). | | GOOGLE_CLIENT_SECRET | Client Secret do Google OAuth (opcional). |


Developed with coffee and code by Willem