Getting Started
Installation
Detailed installation guide for textrawl
System Requirements
| Requirement | Minimum | Recommended |
|---|---|---|
| Node.js | 22.0.0 | 22.x LTS |
| pnpm | 9.0.0 | 9.x |
| RAM | 512 MB | 1 GB+ |
| Disk | 100 MB | 1 GB+ |
Installation Methods
pnpm (Recommended)
Docker
Docker (Local Stack)
For a fully self-hosted setup with local PostgreSQL and Ollama:
Database Setup
textrawl requires PostgreSQL with the pgvector extension. Use a managed Postgres provider with pgvector (Neon recommended — pgvector is included on all Neon tiers, including Free), or self-host.
For compute tier recommendations and storage estimates, see the Database Requirements guide.
Option 1: Neon (Recommended)
- Create a project at neon.tech. From the project dashboard, copy the pooled connection string.
- Set
DATABASE_URLso the followingpsqlcommands (and the textrawl server) can pick it up — either export it in your shell or persist it in.env:
- Run the schema setup that matches your chosen embedding provider:
⚠️ You MUST match the schema to your
OLLAMA_MODEL:
nomic-embed-text→setup-db-ollama.sql(1024d)nomic-embed-text-v2-moe→setup-db-ollama-v2.sql(768d)Using the wrong schema causes dimension mismatch errors.
- Run security hardening:
Option 2: Self-Hosted PostgreSQL
Option 3: Other Providers
Any Postgres 15+ with the pgvector extension works. Set DATABASE_URL to a pooled connection string and run the same psql … -f scripts/setup-db*.sql commands shown above.
- Supabase — copy the Connection pooling URL from Settings → Database into
DATABASE_URL. Run the schema viapsqlor paste it into the SQL Editor. - AWS RDS / Azure Database for PostgreSQL / GCP Cloud SQL — enable the
vectorextension on the instance, then copy the connection string.
Environment Configuration
Copy the example and configure:
Required Variables
Optional Variables
Verify Installation
Next Steps
- Configuration - All environment options
- Quick Start - Connect to Claude Desktop
- CLI Tools - Import your documents