Hub/Docs

Database

Turso cloud SQLite — schema, categories, edge types, and search indexes.

Turso

Cloud-hosted libSQL (SQLite fork) with native vector search. Single database shared by the web app, bot, and MCP server.

DetailValue
ProviderTurso
Client@libsql/client
VectorNative F32_BLOB columns + vector_top_k()
Full-textFTS5 virtual tables with auto-sync triggers

Categories

10 node types stored as node_type on the nodes table.

Categorynode_typeDescriptionSort
PodcastpodcastLatent Space episodes with full transcriptsRecent
Articlearticlelatent.space Substack postsRecent
AI NewsainewsDaily AINews digests from smol.aiRecent
Builders Clubbuilders-clubCommunity meetup recordingsRecent
Paper Clubpaper-clubDeep-dive paper discussionsRecent
WorkshopworkshopConference talks, tutorialsRecent
GuestguestPeople — guests, speakers, authorsMost connected
EntityentityOrganizations and technical topicsMost connected
HubhubInternal structural anchors (hidden)
MembermemberDiscord community member profiles

Schema

Schema Diagram

nodes

The central table. Every piece of content, person, organization, and topic.

ColumnTypeDescription
idINTEGER PKAuto-incrementing
titleTEXT NOT NULLNode title
descriptionTEXTOne-sentence summary
linkTEXTSource URL
node_typeTEXTCategory
event_dateTEXTISO 8601 date
chunkTEXTRaw source text
embeddingF32_BLOB(1536)Node-level vector
metadataJSONType-specific metadata
notesTEXTUser notes / analysis

chunks

Chunked text for semantic search.

ColumnTypeDescription
node_idINTEGER FKParent node
chunk_idxINTEGERPosition in sequence
textTEXT NOT NULL~2000 chars
embeddingF32_BLOB(1536)Vector embedding

edges

Directed relationships between nodes.

ColumnTypeDescription
from_node_idINTEGER FKSource node
to_node_idINTEGER FKTarget node
contextJSONType, confidence, explanation
sourceTEXTHow edge was created

dimensions

Tags/categories. Many-to-many with nodes via node_dimensions join table.

chats

Discord bot interaction traces. Full MCP tool call logs, timing, Discord context.

Edge Types

14 relationship types stored in edges.context:

TypeDirectionExample
created_byContent → CreatorArticle → Author
featuresWhole → PartEpisode → Guest
appeared_onPerson → ContentGuest → Episode
covers_topicContent → TopicEpisode → "RAG"
affiliated_withPerson → OrgResearcher → OpenAI
expert_inPerson → TopicEngineer → "agents"
part_ofPart → WholeTalk → Conference
citesContent → SourceArticle → Paper
related_toAny ↔ AnyGeneral connection
interested_inMember → TopicUser → "agents"
extendsWork → PriorPaper → Earlier paper
supportsEvidence → ClaimStudy → Hypothesis
contradictsCounter → ClaimFinding → Earlier claim
source_ofDerivative → SourceSummary → Original

Indexes

B-tree

node_type, event_date, updated_at, from_node_id, to_node_id, node_id (chunks), thread_id (chats)

Vector

libsql_vector_idx on chunks.embedding — 1536d, cosine metric, compressed neighbors (float8), max 20 neighbors

Full-text

chunks_fts virtual table on chunks.text — auto-synced via SQL triggers on insert/update/delete