TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

Custom Auto-Onboarding Demo

browserbase / Custom-Onboarding

4 0 Language: TypeScript License: MIT Updated: 10mo ago

README

Custom Auto-Onboarding Demo

AI-powered, zero-config onboarding flow built with Next.js, Browserbase and Tailwind CSS v4.
Drop a company URL โžœ we scrape the site, extract the logo/banner/title, and spin up a branded dashboard in seconds.


Notes

This demo is using Zustand to manage state. In a production environment, you would likely be saving this information to a database somewhere.

๐Ÿš€ Quick Start

  1. Clone & install
pnpm install # or npm i / yarn
  1. Environment

Create a .env file in the project root:

# Browserbase / Stagehand
BROWSERBASE_API_KEY="your-api-key"
BROWSERBASE_PROJECT_ID="your-project-id"
  1. Run dev server
pnpm dev            # http://localhost:3000

Scripts: pnpm build, pnpm start, pnpm lint.


๐Ÿ”Œ API

POST /api/extract-company-info

{
  "url": "https://example.com"
}

Returns (validated with zod):

{
  "title": "Example Inc.",
  "faviconUrl": "https://example.com/favicon.ico",
  "bannerUrl": "https://example.com/og.png"
}

๐Ÿ›  Tech Stack

โ€ข Next.js 15 ยท React 19 ยท TypeScript 5
โ€ข Stagehand 2.4 (Browserbase)
โ€ข Zustand for client state
โ€ข zod for runtime validation
โ€ข Tailwind CSS 4 + Radix primitives + Lucide icons


โš™๏ธ Security & Best Practices

  • Secrets are never sent to the client โ€“ Browserbase credentials live in server env.
  • All external input is validated with zod.
  • No SQL/db layer here, but in real apps use parameterised queries / ORM.
  • Safe headers / CSP should be enabled at the platform (Vercel) level.

๐Ÿ“„ License

MIT


Credit

Demo inspired by Resend onboarding.

0 AIs selected
Clear selection
#
Name
Task