Skip to content

MiguelsPizza/prompt-api-consumers

Repository files navigation

Local First Chat Monorepo

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

Quick Start

pnpm dev # Builds and watches hooks, starts web app
pnpm deploy:local # a functional self host of the app to a local port

Project Structure

  • local-first-chat/ - Web application
  • use-prompt-api/ - NPM package for AI API hooks

Scripts

  • pnpm dev - Development mode
  • pnpm deploy:local - Build and test offline mode locally
  • pnpm lint - Run ESLint
  • pnpm format - Format code with Prettier

Requirements

  • Node.js >= 18.16.1
  • PNPM package manager

Roadmap

  • 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

Contributing

Contributions are welcome, especially for additional AI API hooks!

License

  • local-first-chat: AGPL

  • hooks: MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published