MCPcopy Index your code
hub / github.com/alanagoyal/docbase

github.com/alanagoyal/docbase @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
205 symbols 680 edges 117 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Docbase

Docbase is an all-in-one Docsend alternative.

Getting Started

Clone the repository

git clone https://github.com/alanagoyal/docbase

Install Dependencies

npm install

Supabase

Create a new Supabase project, enter your project details, and wait for the database to launch. Follow the docs for local development using the migration in the repo. Note that you will need to create the storage bucket locally.

Braintrust

This project uses Braintrust to store prompts, log responses, and run evaluations. You can sign up for a free account here and run the following command to set up the prompts:

npx braintrust push braintrust/docbase.ts

Resend

This project uses Resend to send emails. You can sign up for an account here and retrieve your API key from the dashboard.

OpenAI

This project uses OpenAI's API to generate responses to user prompts. You can sign up for an API key here.

Google Maps

This project uses Google Maps for location autocomplete. You can sign up for an API key here.

Environment Variables

Create a .env file in the root directory with the following variables:

NEXT_PUBLIC_SITE_URL="<your-base-url>"
NEXT_PUBLIC_SUPABASE_URL="<your-supabase-url>"
NEXT_PUBLIC_SUPABASE_ANON_KEY="<your-supabase-anon-key>"
SUPABASE_SERVICE_ROLE_KEY="<your-service-role-key>"
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY="<your-google-maps-api-key>"
RESEND_API_KEY="<your-resend-api-key>"
OPENAI_API_KEY="<your-openai-api-key>"
BRAINTRUST_API_KEY="<your-braintrust-api-key>"

Run

Run the application in the command line and it will be available at http://localhost:3000.

npm run dev

Deploy

Deploy using Vercel

License

Licensed under the MIT license.

Extension points exported contracts — how you extend this code

NavItem (Interface)
(no doc)
types/nav.ts
GroupsDialogProps (Interface)
(no doc)
components/groups-form.tsx
LoginFormData (Interface)
(no doc)
components/login-form.tsx
NewMessageProps (Interface)
(no doc)
components/message-form.tsx
StyledQuillEditorProps (Interface)
(no doc)
components/quill-editor.tsx
SafeHtmlProps (Interface)
(no doc)
components/safe-html.tsx
SignupFormData (Interface)
(no doc)
components/signup-form.tsx
PlacesAutocompleteProps (Interface)
(no doc)
components/places-autocomplete.tsx

Core symbols most depended-on inside this repo

cn
called by 92
lib/utils.ts
toast
called by 55
components/ui/use-toast.ts
createClient
called by 17
utils/supabase/server.ts
createClient
called by 16
utils/supabase/client.ts
dispatch
called by 5
components/ui/use-toast.ts
useFormField
called by 4
components/ui/form.tsx
isTyping
called by 4
utils/is-typing.ts
shouldLog
called by 4
lib/logger.ts

Shape

Function 180
Interface 25

Languages

TypeScript100%

Modules by API surface

components/account-form.tsx10 symbols
components/ui/use-toast.ts9 symbols
components/groups-form.tsx9 symbols
components/places-autocomplete.tsx7 symbols
components/documents.tsx7 symbols
components/signup-form.tsx6 symbols
components/login-form.tsx6 symbols
components/links.tsx6 symbols
components/messages.tsx5 symbols
components/message-form.tsx5 symbols
components/link-form.tsx5 symbols
components/contacts.tsx5 symbols

For agents

$ claude mcp add docbase \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact