Skip to content

sofvanh/ca-magic-search

Repository files navigation

Magic Search for X Community Archive

WIP. More info: https://x.com/sofvanh/status/1962519165513748601

Dev info

Start a development server (sveltekit)

npm install then npm run dev

Build a production version

npm run build

Preview with npm run preview

Deploy on Google Cloud

Create .env.yaml with env vars using NAME: KEY format. Then deploy by running ./scripts/deploy.sh. Make sure your firestore is setup.

Index users

Navigate to /admin

Env vars

  • SUPABASE_ANON_KEY (See Community Archive docs)
  • OPENAI_API_KEY
  • ADMIN_PASSWORD (for indexing users)
  • DEBUG (optional)

Relevant links