The Instant Graph Database for Modern Apps
This repository contains comprehensive code samples and projects demonstrating quick integration with RushDB across various use cases and programming languages.
RushDB transforms how you work with graph data โ no schema required, no complex queries, just push your data and go. Built on top of Neo4j, RushDB provides:
- ๐ Instant Setup: Be productive in seconds, not days
- ๐ Push Any JSON: Nested objects are automatically normalized into a graph
- ๐ Fractal API: Same query syntax everywhere - learn once, use everywhere
- ๐ Vector Search: Comprehensive similarity search for AI-powered applications
- โก Zero Schema Headaches: We handle the data structure so you can focus on building
- ๐ Website
- ๐ Documentation
- โ๏ธ Cloud Platform
- ๐ GitHub Repository
- ๐ฆ Follow on X (Twitter)
Before running any examples, you'll need to obtain a RushDB API token:
-
Sign up for RushDB Cloud (Free tier available):
- Visit app.rushdb.com
- Create a new account or sign in with Google OAuth
- Navigate to your workspace dashboard
-
Create API Token:
- Go to your workspace settings
- Generate a new API token
- Copy the token (format:
rushdb_***
)
-
Set Environment Variable:
export RUSHDB_API_TOKEN="your_token_here"
Or create a
.env
file in your project:RUSHDB_API_TOKEN=your_token_here
If you prefer to self-host RushDB:
docker run -p 3000:3000 \
--name rushdb \
-e NEO4J_URL='neo4j+s://your-instance.neo4j.io' \
-e NEO4J_USERNAME='neo4j' \
-e NEO4J_PASSWORD='password' \
rushdb/platform
Requirements for self-hosting:
- Neo4j version 5.25.1 or higher
- APOC Plugin (required)
- Graph Data Science Plugin (for vector search)
-
Express REST API | ๐ README
Complete REST API built with Express and TypeScript showcasing RushDB SDK integration. Features hierarchical data modeling (Company โ Department โ Employee), CRUD operations, advanced aggregation queries, and comprehensive endpoint examples with Postman collection.
-
Next.js Dynamic Filters Demo | ๐ README
Interactive Next.js application demonstrating dynamic UI components with RushDB integration. Features real-time filtering, search functionality, server-side pagination, data grid visualization, and debug tools for tracking RushDB operations.
-
Content Management System built with Next.js and RushDB. Features page management, post creation, media handling, and administrative dashboard functionality.
-
Next.js Simple Waitlist | ๐ README
Clean and responsive waitlist application built with Next.js and RushDB. Features email validation, duplicate prevention, RushDB integration for data storage.
-
Professional registration form built with Vite, React, and TypeScript using React Hook Form and Zod validation. Features comprehensive form validation, dynamic skill management, complex nested data structures, mock data filling, and seamless RushDB integration for data storage.
-
Simple Python RAG | ๐ README
Minimal RAG (Retrieval-Augmented Generation) implementation using RushDB for vector storage. Features document ingestion, automatic chunking, vector embeddings with sentence transformers, semantic search, and FastAPI interface.
-
Generic Books RAG API | ๐ README
Advanced RAG system for processing any text records in RushDB. Features generic record vectorization, embedding integration directly into existing records, vector similarity search, and scalable FastAPI architecture.
-
Python CSV Import | ๐ README
Simple utility for importing CSV data into RushDB. Demonstrates bulk data import functionality and basic RushDB Python SDK usage.
- Backend: TypeScript, JavaScript, Python
- Frontend: Next.js, React, Vite
- API: Express.js, FastAPI, REST APIs
- Database: RushDB (Neo4j-based Graph Database)
- ๐ CRUD Operations: Complete Create, Read, Update, Delete workflows
- ๐ Vector Search: AI-powered similarity search and embeddings
- ๐ค RAG Systems: Retrieval-Augmented Generation implementations
- ๐ Data Import: Bulk data import and CSV processing
- โก Real-time Filtering: Dynamic UI components with live data
- โ Form Validation: React Hook Form with Zod schema validation
- ๐ Content Management: Full CMS with page and post management
- SDKs: @rushdb/javascript-sdk, rushdb-python
- Testing: Postman Collections included
- Package Management: npm, pnpm, UV Package Manager
- Validation: React Hook Form, Zod
- AI/ML: Sentence Transformers, Vector Embeddings
- UI: Tailwind CSS, shadcn/ui components
Here's how simple it is to get started with RushDB:
import RushDB from "@rushdb/javascript-sdk";
const db = new RushDB(process.env.RUSHDB_API_TOKEN);
// Push nested JSON - auto-normalized into graph
await db.records.createMany({
label: "COMPANY",
payload: {
name: "Tech Corp",
DEPARTMENT: [
{
name: "Engineering",
EMPLOYEE: [
{
name: "Alice Smith",
role: "Senior Developer",
},
],
},
],
},
});
// Query with relationship traversal
const developers = await db.records.find({
labels: ["EMPLOYEE"],
where: {
role: { $contains: "Developer" },
DEPARTMENT: { COMPANY: { name: "Tech Corp" } },
},
});
from rushdb import RushDB
db = RushDB(os.getenv("RUSHDB_API_TOKEN"))
# Same data structure, same simplicity
db.records.create_many("COMPANY", {
"name": "Tech Corp",
"DEPARTMENT": [{
"name": "Engineering",
"EMPLOYEE": [{
"name": "Alice Smith",
"role": "Senior Developer"
}]
}]
})
# Consistent query syntax across languages
developers = db.records.find({
"labels": ["EMPLOYEE"],
"where": {
"role": {"$contains": "Developer"},
"DEPARTMENT": {"COMPANY": {"name": "Tech Corp"}}
}
})
Each example includes its own README with detailed setup instructions, API documentation, and usage examples. Most examples include:
- ๐ Prerequisites: Required dependencies and environment setup
- โ๏ธ Environment Configuration:
.env
file templates and variable explanations - ๐ฆ Installation Instructions: Step-by-step dependency installation
- ๐ Usage Guides: How to run and test the application
- ๐ API Documentation: Endpoint descriptions and request/response examples
- ๐ฎ Postman Collections: Ready-to-import API testing collections (where applicable)
- ๐ฏ Sample Data: Test datasets and example records for immediate experimentation
- Start Simple: Begin with Python CSV Import to understand basic RushDB operations
- Build APIs: Explore Express REST API for comprehensive backend development
- Create UIs: Try Next.js Dynamic Filters for interactive frontend development
- Add AI: Implement Python RAG Systems for AI-powered applications
- Go Advanced: Build a complete CMS or complex forms
-
Clone the repository:
git clone https://github.com/rush-db/examples.git cd examples
-
Navigate to your chosen example:
cd express-rushdb-sdk # or any other example
-
Follow the example-specific README for detailed setup instructions
- ๐ Documentation: docs.rushdb.com
- ๐ฌ Community: GitHub Discussions
- ๐ Issues: Report bugs or request features
- ๐ง Support: Contact support through app.rushdb.com
Feel free to explore each example to see how RushDB can simplify data modeling, querying, and AI-powered applications for modern development.