Portlane is a calm home for freelance client work: projects, hours, and invoices in one place.
Live demo: https://portlane.vercel.app
Freelancers and small studios use it to keep clients up to date without a pile of spreadsheets and email threads. Clients get their own login, where they can follow progress, grab files, comment, and approve work.
- Projects with milestones, due dates, and a clear status
- Time entries that add up per project and export in a click
- Invoices with Stripe checkout and polite overdue reminders
- A client list, plus a dashboard with revenue and invoice totals
The /portal view is separate from your dashboard. Clients sign in to see their projects, download deliverables, leave comments, and approve finished work. They can also pay an invoice right there.
Bun, a Postgres database, and an S3-compatible bucket are required. Postgres and storage are set up for Neon, auth uses Better Auth, and Stripe handles payments.
bun install
cp .env.example .env
bun run db:migrate
bunx vite devFill in .env before the migration: database URL, auth secret, storage keys, and Stripe keys. In development, Resend and Sentry are optional and auth links are printed to the console instead of sent.
The default dev script runs through Doppler. Without it, export the variables from .env and use bunx vite dev. Builds read PUBLIC_APP_URL at build time, so use doppler run -- bun run build or export it first.
- Apply migrations with
bun run db:migrate. Never usedrizzle-kit pushagainst a real database. - Set
PUBLIC_APP_URLat build time; SvelteKit inlines it. It must be the canonicalhttps://origin. BETTER_AUTH_SECRETmust be at least 32 characters. Generate one withopenssl rand -base64 32.- Email is required in production: set
RESEND_API_KEYand anEMAIL_FROMon a verified domain. Startup fails otherwise, because sign-up and client invites depend on verification and password-setup emails. - Set
CRON_SECRETso Vercel's cron requests can authenticate. Vercel sends it automatically asAuthorization: Bearer $CRON_SECRET. SENTRY_DSNandPUBLIC_SENTRY_DSNare optional, but recommended.
The first request fails fast if required configuration is missing, and /api/health reports database connectivity for uptime checks.
MIT