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

quickback-better-auth-account-ui

v0.1.1

Published

A ready-to-deploy account management frontend for any [Better Auth](https://www.better-auth.com/) backend. Includes authentication (login, signup, password reset), organization management, device authorization (CLI login), passkeys, and optional Stripe bi

Readme

Quickback Better Auth Account UI

A ready-to-deploy account management frontend for any Better Auth backend. Includes authentication (login, signup, password reset), organization management, device authorization (CLI login), passkeys, and optional Stripe billing.

Built with React, Vite, Tailwind CSS, and deployable to Cloudflare Workers.

Quick Start (Standalone)

Clone the repo and own the source — edit anything you want:

npx degit Kardoe-com/quickback-better-auth-account-ui my-account-app
cd my-account-app
npm install
npm run dev

Library Usage

Install as a dependency and get updates via npm update:

npm install quickback-better-auth-account-ui
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { AuthApp, setAppConfig } from 'quickback-better-auth-account-ui';
import 'quickback-better-auth-account-ui/styles.css';

setAppConfig({
  authRoute: 'quickback',
  name: 'My App',
  companyName: 'My Company',
  tagline: 'My tagline',
});

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <BrowserRouter>
      <AuthApp />
    </BrowserRouter>
  </React.StrictMode>
);

The Cloudflare Worker entry is also available:

export { default } from 'quickback-better-auth-account-ui/worker';

Configure

Copy the example env file and fill in your values:

cp .env.example .env.development
# Your Better Auth API backend
VITE_API_URL=http://localhost:3000

# This frontend's URL
VITE_APP_URL=http://localhost:5173

# Optional: Stripe publishable key (if using billing plugin)
VITE_STRIPE_PUBLISHABLE_KEY=

Develop

npm run dev        # Vite dev server
npm run build      # SPA build → dist/client/
npm run build:lib  # Library build → dist/ (for npm publishing)
npm run typecheck

Deploy to Cloudflare

  1. Update wrangler.toml with your Worker name (and optionally a custom domain)
  2. Set secrets in the Cloudflare dashboard or via wrangler secret put
  3. Deploy:
npx wrangler deploy

Auth Route Modes

The app supports three routing approaches, configured via VITE_AUTH_ROUTE:

| Mode | Auth path | Data path | Use when | |------|-----------|-----------|----------| | better-auth | /api/auth | /api/auth | Standalone Better Auth backend | | quickback (default) | /auth/v1 | /api/v1 | Quickback-generated backend | | custom | Set explicitly in src/config/runtime.ts | — | Non-standard routing |

Feature Flags

Toggle features via environment variables to match your backend's plugin configuration:

| Variable | Default | Description | |----------|---------|-------------| | VITE_ENABLE_SIGNUP | true | Show signup page | | VITE_ENABLE_ORGANIZATIONS | true | Organization management | | VITE_ENABLE_PASSKEYS | true | WebAuthn passkey support | | VITE_ENABLE_EMAIL_OTP | false | Email one-time passwords |

Backend Requirements

Your Better Auth backend should have these plugins enabled (matching the features you use):

  • organization — multi-tenant management
  • admin — user dashboard
  • apiKey — API key generation
  • @better-auth/passkey — WebAuthn
  • emailOTP — one-time passwords
  • deviceAuthorization — CLI device auth flow

CORS

Your backend must include this frontend's origin in its trusted origins / CORS configuration.

Project Structure

├── src/
│   ├── main.tsx              # App entry point
│   ├── App.tsx               # Router & routes
│   ├── worker.ts             # Cloudflare Worker entry
│   ├── auth/                 # Better Auth client setup
│   ├── config/               # Runtime config, feature flags, routes
│   ├── pages/                # Page components
│   ├── components/           # Shared UI components
│   ├── layouts/              # Auth & public layouts
│   └── lib/                  # API client, utilities
├── .env.example              # Environment template
├── wrangler.toml             # Cloudflare Worker config
├── vite.config.ts            # Vite build config
└── tailwind.config.ts        # Tailwind CSS config

Notes

  • Accept-invitation links use /accept-invitation/:id and will redirect through login/signup if needed.
  • Anonymous upgrade uses POST /api/auth/upgrade-anonymous on your API.

License

MIT