This is a monorepo containing the Local First Chat website and @miguelspizza/use-prompt-api hooks.
It also contains a Chrome-ai Vercel AI SDK provider for the prompt api a
pnpm dev # Builds and watches hooks, starts web app
pnpm deploy:local # a functional self host of the app to a local port
local-first-chat/
- Web applicationuse-prompt-api/
- NPM package for AI API hooks
pnpm dev
- Development modepnpm deploy:local
- Build and test offline mode locallypnpm lint
- Run ESLintpnpm format
- Format code with Prettier
- Node.js >= 18.16.1
- PNPM package manager
- Self-hosting support for sync service
- Migration to PGlite and RAG support
- Currently uses WASM SQLite for client-side DB
- PGlite will enable Postgres vector store capabilities
- ElectricSQL with Cloudflare Durable Objects for sync
- Replacing PowerSync due to PGlite compatibility
- Chrome Extension Polyfill
- Enables bringing custom models while maintaining offline chat storage
- Add window.ai support for the vercel-ai-sdk
Contributions are welcome, especially for additional AI API hooks!
-
local-first-chat: AGPL
-
hooks: MIT