@sellbase/admin
v0.3.3
Published
Sellbase admin SPA. Mount it at /admin in any React app; customize with config, slots and pages.
Downloads
594
Maintainers
Readme
@sellbase/admin
The Sellbase admin: products with photos and variants, inventory, orders, abandoned checkouts, customers, discounts, appointments and settings for payments, shipping, taxes, email, team, AI agents and webhooks.
import { SellbaseAdmin } from '@sellbase/admin';
import '@sellbase/admin/styles.css';
export default function Admin() {
return (
<SellbaseAdmin
config={{
supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL!,
supabaseAnonKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
basePath: '/admin',
}}
/>
);
}Mount it on a catch-all route (app/admin/[[...path]]/page.tsx). Sites without React use the static build in dist/standalone (hash routes, no server rewrites), which sellbase init copies for you.
Customize it with config: theme, logo, texts, slots and extra pages. See the guide. Styles are scoped to .sb-admin and never touch your site.
Part of Sellbase, open source commerce that lives inside your project. MIT licensed.
