Skip to content

murabcd/docufy

Repository files navigation

Notion-like Platform Built with TanStack Start, TanStack AI and Convex.

Notion-like Platform Built with TanStack Start, TanStack AI and Convex.

  • Persistent AI memory that stores user preferences and facts, with contextual retrieval during conversations
  • Real-time web search powered by Jina AI for up-to-date information retrieval
  • AI-powered search, retrieval, and editing of workspace documents through natural language

Features · Model providers · Deploy your own · Running locally


Features

  • TanStack Start
    • File-based routing, type-safe from server to client
    • Built on Vite for a lightning-fast HMR development experience
  • TanStack AI
    • AI integration with OpenAI adapter
    • Server-sent events for streaming responses
  • Jina
    • Web search API for up-to-date information retrieval
    • Integrated with AI tools for real-time web search capabilities
  • Tiptap v3
    • Modern rich text editor framework
    • Extensible with custom extensions (code blocks, emojis, slash commands, etc.)
  • Convex
  • Better Auth
  • Vercel Blob
    • Scalable file storage for images, documents, and other media
    • Built on Amazon S3 with 99.99% availability and global CDN distribution
  • Shadcn/UI

Model provider

This app ships with OpenAI provider as the default. However, with the Tanstack AI, you can switch LLM providers to Anthropic, Ollama, Gemini, and many more with just a few lines of code.

  • GPT-4.1 (gpt-4.1): Excelling in instruction following and tool calling
  • GPT-4.1 mini (gpt-4.1-mini): Faster version designed for efficiency without compromising performance
  • GPT-4.1 nano (gpt-4.1-nano): Most cost-effective and fastest model

Deploy your own

You can deploy your own version of Docufy to Vercel with one click:

Deploy with Vercel

Running locally

You will need to use the environment variables defined in .env.example to run Docufy. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.

Note: You should not commit your .env file or it will expose secrets that will allow others to control access to your various OpenAI and authentication provider accounts.

GitHub authentication

  • Set BETTER_AUTH_SECRET, GITHUB_CLIENT_ID, and GITHUB_CLIENT_SECRET in your Convex environment.
  • For local development, configure your GitHub OAuth callback URL as ${VITE_SITE_URL}/api/auth/callback/github so the OAuth state cookie is set and read on the same origin.
  1. Install Vercel CLI: npm i -g vercel
  2. Link local instance with Vercel and GitHub accounts (creates .vercel directory): vercel link
  3. Download your environment variables: vercel env pull
bun install
bun dev
bun convex dev

Your app should now be running on localhost:3000.

About

Notion-like Platform Built with TanStack Start, TanStack AI and Convex

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published