How neondatabase/examples works
This repository is a collection of independent Neon example applications and starter projects, not one unified runtime. A developer chooses an example, configures its database connection, and runs that application. The graph preserves the README’s AI, bot, and getting-started branches, while sampled realtime examples show more detailed paths for collaborative chat, live todos, and MCP contacts. Edges are limited to relationships visible in excerpts, the source index, or the README; unsampled internals are represented at their enclosing directories.
Main entry points: backend/server.ts Chat API · main.tsx Chat app startup · src/server.ts Todo API · api.ts Chat API client
Components 20
Example starters
- Neon getting started
neon-getting-started - Contacts MCP
with-mcp/src/index.ts - Contacts database
with-mcp/src/db/schema.ts
Realtime apps
- Chat interface
realtime/guides-chat-app/frontend/ChatApp.tsx - Chat app startup
realtime/guides-chat-app/frontend/main.tsx - Chat API client
realtime/guides-chat-app/frontend/api.ts - Message collection
realtime/guides-chat-app/frontend/collections.ts - Chat API
realtime/guides-chat-app/backend/server.ts - Chat authentication
realtime/guides-chat-app/backend/auth.ts - Chat live queries
realtime/guides-chat-app/backend/queries.ts - Realtime service setup
realtime/guides-chat-app/backend/realtime.ts - Chat database access
realtime/guides-chat-app/backend/db.ts - Chat data model
realtime/guides-chat-app/backend/schema.ts - Live todo interface
realtime/with-react/web/src/App.tsx - Todo API
realtime/with-react/src/server.ts - Todo database access
realtime/with-react/src/db.ts - Todo data model
realtime/with-react/src/schema.ts
AI applications
Messaging bots
Other components
- Developer
Connections 22
- Developer → Neon getting started: chooses example
README.md - Developer → Search and RAG starters: chooses example
README.md - Developer → Messaging bot starters: chooses example
README.md - Developer → Contacts MCP: uses starter
- Developer → Chat interface: uses app
- Chat app startup → Chat interface: renders
realtime/guides-chat-app/frontend/main.tsx - Chat app startup → Chat API client: fetches queries
realtime/guides-chat-app/frontend/main.tsx - Chat app startup → Message collection: creates collection
realtime/guides-chat-app/frontend/main.tsx - Message collection → Chat API client: calls mutations
realtime/guides-chat-app/frontend/collections.ts - Chat API client → Chat API: sends requests
realtime/guides-chat-app/frontend/api.ts - Chat API → Chat authentication: checks identity
realtime/guides-chat-app/backend/server.ts - Chat API → Chat live queries: seals queries
realtime/guides-chat-app/backend/server.ts - Chat API → Realtime service setup: seals queries
realtime/guides-chat-app/backend/server.ts - Chat API → Chat database access: reads and writes
realtime/guides-chat-app/backend/server.ts - Chat API → Chat data model: queries tables
realtime/guides-chat-app/backend/server.ts - Chat live queries → Chat database access: queries
realtime/guides-chat-app/backend/queries.ts - Chat database access → Chat data model: loads schema
realtime/guides-chat-app/backend/db.ts - Live todo interface → Todo API: sends mutations
realtime/with-react/web/src/App.tsx - Todo API → Todo database access: reads and writes
realtime/with-react/src/server.ts - Todo API → Todo data model: queries todos
realtime/with-react/src/server.ts - Todo database access → Todo data model: loads schema
realtime/with-react/src/db.ts - Contacts MCP → Contacts database: reads and writes
with-mcp/src/index.ts