Production-ready templates to jumpstart your project. Clone, customize, and ship.
AI-powered search and Q&A application built with SymbioseDB and Next.js 14.
git clone https://github.com/501336North/ORG-SymbioseDB
cd SymbioseDB/templates/nextjs-rag-app
npm install
npm run dev
Navigate to http://localhost:3000
That's it! Sample documents are automatically indexed on first run.
Documents in data/sample-docs.ts are automatically:
The search interface uses Reciprocal Rank Fusion (RRF):
The Q&A interface:
MIT
SymbioseDB starter template with all 4 database types unified in one API.
git clone https://github.com/501336North/ORG-SymbioseDB
cd SymbioseDB/templates/multi-db-app
npm install
cp .env.example .env
# Edit .env with your database URLs
npm test
All tests should pass. This validates your setup is correct.
npm run dev
Open http://localhost:3000 to see your app.
import { db, initializeDatabase, generateEmbedding } from '@/lib/symbiosedb';
// Initialize connections
await initializeDatabase();
// Create an entity across all 4 databases
const user = await db.create({
type: 'User',
sql: {
tableName: 'users',
data: { email: 'john@example.com', name: 'John Doe' }
},
vector: {
collectionName: 'user_embeddings',
embedding: await generateEmbedding('John Doe'),
metadata: { name: 'John Doe' }
},
graph: {
nodeLabel: 'User',
properties: { name: 'John Doe' },
relationships: []
},
blockchain: {
action: 'USER_CREATED',
data: { userId: user.id, timestamp: Date.now() }
}
});
This template includes complete Jest setup with all necessary polyfills and mocks.
npm test # Run all tests
npm run test:watch # Watch mode
npm test -- --coverage # With coverage
MIT
Decentralized voting system with blockchain verification, immutable audit trails, and transparent governance.
git clone https://github.com/501336North/ORG-SymbioseDB
cd SymbioseDB/templates/dao-voting
npm install
cp .env.example .env
# Edit .env with your blockchain RPC URL and contract address
npm run dev
Open http://localhost:3000 to see your app.
import { db } from '@/lib/symbiosedb';
// Cast a vote with blockchain attestation
const vote = await db.blockchain.attest({
action: 'VOTE_CAST',
data: {
proposalId,
voter: walletAddress,
choice: 'YES',
weight: votingPower,
timestamp: Date.now()
}
});
// Verify vote on-chain
const isValid = await db.blockchain.verify(vote.attestationId);
// Get all votes for a proposal (verifiable)
const votes = await db.blockchain.query({
action: 'VOTE_CAST',
filter: { proposalId }
});
MIT
Full-featured e-commerce with semantic product search, personalized recommendations, and order management.
git clone https://github.com/501336North/ORG-SymbioseDB
cd SymbioseDB/templates/ecommerce-platform
npm install
cp .env.example .env
# Edit .env with your database URLs and Stripe keys
npm run dev
Open http://localhost:3000 to see your app.
import { db, generateEmbedding } from '@/lib/symbiosedb';
// Add product with embedding for semantic search
const product = await db.create({
type: 'Product',
sql: {
tableName: 'products',
data: {
name: 'Wireless Headphones',
description: 'Premium noise-canceling headphones',
price: 299.99,
stock: 50
}
},
vector: {
collectionName: 'products',
embedding: await generateEmbedding('wireless headphones'),
metadata: { productId: product.id }
}
});
// Semantic product search
const results = await db.vector.search({
collection: 'products',
query: await generateEmbedding('comfortable headphones for work'),
topK: 10
});
MIT
Analytics dashboard with live WebSocket updates, time-series visualization, and interactive charts.
git clone https://github.com/501336North/ORG-SymbioseDB
cd SymbioseDB/templates/realtime-dashboard
npm install
cp .env.example .env
# Edit .env with your database URL and WebSocket settings
npm run dev
Open http://localhost:3000 to see your app.
import { db } from '@/lib/symbiosedb';
import { useRealtime } from '@/lib/websocket';
// Record a metric
await db.sql.insert('metrics', {
name: 'page_views',
value: 1523,
timestamp: Date.now()
});
// Subscribe to real-time updates
const { data, isConnected } = useRealtime('metrics', {
filter: { name: 'page_views' },
onUpdate: (newMetric) => {
console.log('New metric:', newMetric);
}
});
MIT
SaaS boilerplate with tenant isolation, billing integration, authentication, and admin dashboard.
git clone https://github.com/501336North/ORG-SymbioseDB
cd SymbioseDB/templates/multi-tenant-saas
npm install
cp .env.example .env
# Edit .env with your database URL, Clerk keys, and Stripe keys
npm run db:migrate
npm run dev
Open http://localhost:3000 to see your app.
import { db, withTenant } from '@/lib/symbiosedb';
// All queries automatically scoped to tenant
const client = withTenant(db, tenantId);
// Create a resource (tenant_id automatically added)
const project = await client.sql.insert('projects', {
name: 'My Project',
description: 'A new project'
});
// Query only returns tenant's data
const projects = await client.sql.query('SELECT * FROM projects');
// Only returns projects where tenant_id = tenantId
MIT
Social Graph
Social Graph App
Build social networks with graph traversal, friend recommendations, and relationship analysis using Apache AGE.
Features
Quick Start
1. Clone and Install
2. Configure Environment
3. Run Development Server
Open http://localhost:3000 to see your app.
Using Graph Queries
Performance
License
MIT