NeuronIP is the AI-native intelligence and automation layer for PostgreSQL. It turns your database into an enterprise brain.
Five core capabilities unified into one platform: Semantic Knowledge Search, Data Warehouse Q&A, Customer Support Memory, Compliance & Audit Analytics, and Agent Workflows.
Tip
New here? Start with the Quick Start section or jump to What You Can Build.
Get NeuronIP running in under a minute:
# 1. Start NeuronIP with Docker Compose
docker compose up -d
# Wait for services to be healthy (about 30-60 seconds)
docker compose ps
# 2. Verify API is running
curl http://localhost:8082/health
# 3. Test semantic search (requires API key)
curl -X POST http://localhost:8082/api/v1/semantic/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "machine learning algorithms",
"limit": 10
}'Expected output:
{
"status": "ok",
"timestamp": "2024-01-01T00:00:00Z"
}[!SECURITY] The default credentials are for development only. Always change them in production by setting environment variables in your
.envfile. See Service URLs & ports for connection details.
- What You Can Build
- What Makes NeuronIP Different
- Architecture
- Installation
- Service URLs & ports
- Configuration
- API Documentation
- Documentation
- Repo layout
- Contributing / security / license
- Project statistics
NeuronIP enables you to build powerful AI applications directly on top of PostgreSQL:
🔍 Semantic Knowledge Search
Search your entire knowledge base by meaning, not just keywords:
curl -X POST http://localhost:8082/api/v1/semantic/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "How do I configure authentication?",
"collection_id": "docs",
"limit": 5
}'Use cases:
- Document search with semantic understanding
- Knowledge base Q&A
- Content discovery and recommendations
- Intelligent document retrieval
📊 Data Warehouse Q&A
Ask questions in natural language and get SQL + charts + explanations:
curl -X POST http://localhost:8082/api/v1/warehouse/query \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"question": "What are the top 5 products by revenue this month?",
"schema_id": "sales"
}'Use cases:
- Natural language to SQL conversion
- Business intelligence queries
- Data exploration and analysis
- Automated report generation
🤖 Customer Support Memory
Automate support with AI agents and long-term memory:
curl -X POST http://localhost:8082/api/v1/support/tickets \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject": "Password reset issue",
"description": "User cannot reset password",
"priority": "high"
}'Use cases:
- Automated customer support
- Ticket routing and classification
- Similar case retrieval
- Support agent assistance
🛡️ Compliance & Audit Analytics
Policy matching, anomaly detection, and semantic filtering:
curl -X POST http://localhost:8082/api/v1/compliance/check \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"policy_id": "gdpr-compliance",
"data_source_id": "customer-db"
}'Use cases:
- Regulatory compliance checking
- Anomaly detection in data access
- Audit trail analysis
- Policy enforcement automation
⚙️ Agent Workflows
Long-term memory and workflow execution powered by NeuronDB:
curl -X POST http://localhost:8082/api/v1/workflows/{id}/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"task": "analyze sales data",
"parameters": {}
}
}'Use cases:
- Automated workflow execution
- Multi-step data processing
- Agent orchestration
- Business process automation
📊 Feature Comparison
| Feature | NeuronIP | Typical Alternatives |
|---|---|---|
| Semantic Search | ✅ Built-in with NeuronDB | ❌ External vector DB required |
| Warehouse Q&A | ✅ Natural language to SQL | ❌ Manual SQL writing |
| Support Memory | ✅ Long-term agent memory | ❌ Stateless agents |
| Compliance Analytics | ✅ Policy matching + anomaly detection | ❌ Separate tools needed |
| Agent Workflows | ✅ Integrated with NeuronDB | ❌ External orchestration |
| Unified Platform | ✅ All features in one system | ❌ Multiple tools required |
| PostgreSQL Native | ✅ Direct database integration | ❌ External services |
🎯 Key Advantages
- Complete platform - All five core capabilities in one system
- PostgreSQL native - Direct integration with your existing database
- Production features - Monitoring, authentication, RBAC, audit logging
- Scalability - Built for enterprise workloads
- REST API - Clean, well-documented endpoints
- Modern stack - Go backend, Next.js frontend
- Docker support - Easy deployment and development
- Comprehensive docs - Clear examples and guides
- Unified intelligence - One platform for all AI needs
- Cost effective - No need for multiple specialized tools
- Fast time to value - Quick setup and deployment
- Extensible - Easy to customize and extend
flowchart LR
subgraph Frontend["NeuronIP Frontend"]
UI["Next.js UI"]
end
subgraph Backend["NeuronIP API"]
API["Go REST API"]
end
subgraph Database["PostgreSQL"]
PG["PostgreSQL 16+"]
EXT["NeuronDB Extension"]
end
subgraph Integrations["External Services"]
AG["NeuronAgent"]
MCP["NeuronMCP"]
end
UI -->|HTTP| API
API -->|SQL| PG
PG --> EXT
API -->|REST/WebSocket| AG
API -->|MCP Protocol| MCP
AG -->|SQL| PG
MCP -->|Tools| PG
Note
NeuronIP integrates with the NeuronDB ecosystem (NeuronAgent, NeuronMCP) but can also run standalone. The docker-compose.yml can be configured to include or exclude these services.
Option 1: Use Docker Compose (recommended)
Start all NeuronIP services:
# Start all services
docker compose up -d
# Wait for services to be healthy (30-60 seconds)
docker compose ps
# Verify API is running
curl http://localhost:8082/health
# Access the application
# Frontend: http://localhost:3001
# Backend API: http://localhost:8082What you'll see:
- 3 services starting:
neuronip-init,neuronip-api,neuronip-frontend - Database initialization with schema
- All services should show "healthy" status after initialization
Tip
Make sure you have a PostgreSQL instance with NeuronDB extension running. You can use the NeuronDB Docker setup or your own PostgreSQL instance.
Option 2: Build from source
# Build and start all services
docker compose up -d --build
# Monitor build progress (first time takes 5-10 minutes)
docker compose logs -f
# Once built, wait for services to be healthy
docker compose ps
# Verify all services are running
curl http://localhost:8082/healthBuild time: First build takes 5-10 minutes depending on your system. Subsequent starts are 30-60 seconds.
Prerequisites checklist
- Docker 20.10+ installed
- Docker Compose 2.0+ installed
- PostgreSQL 16+ with NeuronDB extension
- 4 GB+ RAM available
- Ports 3001, 8082 available
Important
Production Security: The default credentials shown in examples are for development only. Always use strong, unique passwords in production. Set environment variables via .env file or Docker secrets.
Install NeuronIP components directly on your system without Docker.
Prerequisites:
- Go 1.24+ installed
- PostgreSQL 16+ with NeuronDB extension
- Database user with CREATE privileges
Installation:
cd api
# Install dependencies
go mod download
# Set environment variables
export DB_HOST=localhost
export DB_PORT=5432
export DB_USER=neuronip
export DB_PASSWORD=your_password
export DB_NAME=neuronip
export SERVER_PORT=8082
# Initialize database
psql -d neuronip -f ../neuronip.sql
# Run server
go run cmd/server/main.goBuild binary:
# Build for your platform
go build -o neuronip-api cmd/server/main.go
# Run the binary
./neuronip-apiPrerequisites:
- Node.js 18+ installed
- npm or yarn
Installation:
cd frontend
# Install dependencies
npm install
# Set environment variables
export NEXT_PUBLIC_API_URL=http://localhost:8082/api/v1
# Run development server
npm run dev
# Build for production
npm run build
# Start production server
npm startFor detailed manual setup instructions, see the Configuration section below.
| Service | How to reach it | Default credentials | Notes |
|---|---|---|---|
| NeuronIP Frontend | http://localhost:3001 |
No auth (development mode) | Container: neuronip-frontend, Service: neuronip-frontend |
| NeuronIP API | http://localhost:8082/health |
Health: no auth. API: API key required | Container: neuronip-api, Service: neuronip-api |
| PostgreSQL | postgresql://neuronip:neuronip@localhost:5432/neuronip |
User: neuronip, Password: neuronip |
Requires NeuronDB extension |
Warning
Production Security: The default credentials shown above are for development only. Always use strong, unique passwords in production. Set POSTGRES_PASSWORD and other secrets via environment variables or a .env file.
See api/internal/config/config.go for all configuration options.
Database:
DB_HOST- Database host (default: localhost)DB_PORT- Database port (default: 5432)DB_USER- Database user (default: neuronip)DB_PASSWORD- Database passwordDB_NAME- Database name (default: neuronip)
Server:
SERVER_PORT- API server port (default: 8082)LOG_LEVEL- Logging level (default: info)LOG_FORMAT- Log format: json or text (default: json)
NeuronDB Integration:
NEURONDB_HOST- NeuronDB hostNEURONDB_PORT- NeuronDB portNEURONDB_DATABASE- NeuronDB database name
NeuronAgent Integration:
NEURONAGENT_ENDPOINT- NeuronAgent API endpoint (default: http://localhost:8080)NEURONAGENT_API_KEY- NeuronAgent API key
NeuronMCP Integration:
NEURONMCP_BINARY_PATH- Path to NeuronMCP binaryNEURONMCP_TOOL_CATEGORIES- Comma-separated tool categories
curl http://localhost:8082/healthMost endpoints require an API key. Include it in the Authorization header:
curl -H "Authorization: Bearer YOUR_API_KEY" http://localhost:8082/api/v1/...curl -X POST http://localhost:8082/api/v1/semantic/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "machine learning algorithms",
"collection_id": "docs",
"limit": 10
}'curl -X POST http://localhost:8082/api/v1/warehouse/query \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"question": "What are the top products by revenue?",
"schema_id": "sales"
}'curl -X POST http://localhost:8082/api/v1/support/tickets \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject": "Issue description",
"description": "Detailed issue description",
"priority": "high"
}'curl -X POST http://localhost:8082/api/v1/compliance/check \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"policy_id": "gdpr-compliance",
"data_source_id": "customer-db"
}'curl -X POST http://localhost:8082/api/v1/workflows/{id}/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"task": "analyze data",
"parameters": {}
}
}'- Getting Started: This README provides a quick start guide
- API Reference: See API Documentation section above
- Configuration: See
api/internal/config/config.gofor all configuration options - Database Schema: See
neuronip.sqlfor database schema - Contributing: See CONTRIBUTING.md for contribution guidelines
- Backend API: Go-based REST API in
api/directory - Frontend UI: Next.js application in
frontend/directory - Database: PostgreSQL schema and migrations in
neuronip.sqlandapi/migrations/
| Component | Path | What it is |
|---|---|---|
| API Backend | api/ |
Go-based REST API with handlers, services, middleware, and database models |
| Frontend | frontend/ |
Next.js 14 application with TypeScript, React components, and UI libraries |
| Database Schema | neuronip.sql |
Complete database schema with tables, indexes, and functions |
| Migrations | api/migrations/ |
Database migration scripts |
| Docker | docker-compose.yml |
Docker Compose configuration for all services |
| Documentation | docs/ |
Additional documentation files |
Backend (api/):
cmd/server/- Main application entry pointinternal/handlers/- HTTP request handlersinternal/services/- Business logic servicesinternal/db/- Database models and queriesinternal/middleware/- HTTP middleware (auth, CORS, logging, etc.)internal/config/- Configuration management
Frontend (frontend/):
app/- Next.js app router pages and layoutscomponents/- React components organized by featurelib/- Utilities, hooks, API clients, and theme configuration
- Contributing: CONTRIBUTING.md - Guidelines for contributing to NeuronIP
- Security: SECURITY.md - Report security issues
- License: LICENSE - See LICENSE file for license information
- Changelog: CHANGELOG.md - See what's new
Stats snapshot
- 5 core capabilities unified in one platform
- 50+ API endpoints across all features
- 2 main components (Backend API + Frontend UI)
- PostgreSQL 16+ supported
- Go 1.24+ for backend
- Next.js 14 for frontend
- TypeScript throughout frontend codebase
Platform & version coverage
| Category | Supported Versions |
|---|---|
| PostgreSQL | 16, 17, 18 |
| Go | 1.24+ |
| Node.js | 18 LTS, 20 LTS, 22 LTS |
| Operating Systems | Linux, macOS, Windows (via Docker) |
| Architectures | linux/amd64, linux/arm64, darwin/amd64, darwin/arm64 |