First Baptist Church Wimberley website rebuild with SvelteKit.
For the best results when using AI tools to work in this repo, install Brain first. This project keeps shared repo context in Brain, and agents work better here when they can read and search that context instead of relying only on ad hoc prompts.
Unix shell:
curl -fsSL https://raw.githubusercontent.com/JimmyMcBride/brain/main/scripts/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/JimmyMcBride/brain/main/scripts/install.ps1 | iexFrom the repo root:
brain skills install --scope local --agent codex --agent claude --project .brain doctor --project .
brain find --project . fbcwimberley
brain search --project . "fbcwimberley homepage events ministries"- Marketing-style church website with custom themed sections (home, about, connect, ministries, serve, watch)
- Internal events page (
/events) backed by the Planning Center Registrations API - Responsive header with dropdown navigation and mobile drawer
- Light/dark theme toggle with persisted preference
- Embedded livestream page (
/watch) - Newsletter signup flow backed by Mailchimp (
POST /api/newsletter) - Image localization/conversion scripts for remote assets
- SvelteKit 2 + Svelte 5 (TypeScript)
- Vite 7
- Tailwind CSS v4 (
@tailwindcss/vite) plus custom global CSS variables - Adapter:
@sveltejs/adapter-auto
bun installCreate .env.local from .env.example, then replace the placeholders with real values:
cp .env.example .env.localThe required variables are:
MAILCHIMP_API_KEY=your-key-usXX
MAILCHIMP_AUDIENCE_ID=your-audience-id
PLANNINGCENTER_CLIENT_ID=your-client-id
PLANNINGCENTER_PAT=your-personal-access-token
# Optional legacy fallback name used by the API route:
# MAILCHIMP_LIST_ID=your-audience-idThe newsletter endpoint needs one Mailchimp Marketing API key and the ID of the audience that should receive website signups.
- In Mailchimp, open Audience, select the audience, choose More options → Audience settings, and copy Audience ID.
- Open your profile, choose Profile → Extras → API keys, select Create A Key, and copy the new key immediately. The key includes a data-center suffix such as
-us21; the endpoint uses that suffix to select the Mailchimp API region. - In the Vercel project, open Settings → Environment Variables and add
MAILCHIMP_API_KEYandMAILCHIMP_AUDIENCE_ID. Apply them to Production and Preview as needed, then redeploy. Environment variable changes do not affect an existing deployment until it is redeployed.
Never commit .env.local or paste the API key into source control. If a key is lost, generate a new one in Mailchimp and replace the Vercel value.
bun run devOpen http://localhost:5173.
bun run dev- start local dev serverbun run build- production buildbun run preview- preview production buildbun run check- Svelte + TypeScript checksbun run check:watch- watch mode checksbun run localize:images- download externally hosted image URLs intostatic/images/remoteand rewrite references in source files
Additional utility script:
node scripts/convert-images-to-webp-ffmpeg.mjs- convert JPG/PNG/GIF instatic/imagesto WebP, rewrite references, and remove original files (requiresffmpeg)
src/routes- page routes and API endpointssrc/lib/components- reusable UI sections and layout componentssrc/lib/server/planningCenter.ts- Planning Center API helpers for event pagessrc/lib/stores/theme.ts- theme preference and DOM application logicstatic/images- local static image assets (including localized remote images)scripts- one-off content/image maintenance tooling
- Header/footer are shared through
src/routes/+layout.svelte. - Newsletter form in
src/lib/components/Newsletter.svelteposts to/api/newsletter. - Events content is loaded from Planning Center and surfaced internally at
/events. - Several nav links still point to external ChurchCenter/Realm destinations by design.

