---
title: "Deploy lsp-indexer"
description: "A template for the LSP Indexer. Get data availability right now."
category: "Other"
url: https://railway.com/deploy/lsp-indexer
---

# Deploy lsp-indexer

A template for the LSP Indexer. Get data availability right now.

**[Deploy lsp-indexer on Railway](https://railway.com/template/lsp-indexer)**

- **Creator:** b00ste.lyx's Projects
- **Category:** Other
- **Total deploys:** 6

## Template content

### lsp-indexer https://github.com/chillwhales.png

- **Source:** chillwhales/lsp-indexer

### Hasura https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/hasura.png

- **Image:** hasura/graphql-engine:v2.46.0
- **Health check:** /healthz
- **Public domain:** Yes

### Data Connector Agent https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/hasura.png

- **Image:** hasura/graphql-data-connector:v2.46.0

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

## Documentation

# Deploy and Host lsp-indexer on Railway

The LSP Indexer is an open-source tool that monitors the LUKSO blockchain, capturing key events like `DataChanged`, `UniversalReceiver`, and `Transfer`. It extracts and indexes data such as LSP3Profile and LSP4Metadata for easy querying and analysis, supporting developers and applications in the LUKSO ecosystem.

## About Hosting lsp-indexer

Hosting lsp-indexer on Railway involves cloning the repository, installing dependencies with pnpm, and configuring environment variables like `DB_URL`, `RPC_URL`, and `IPFS_GATEWAY`. Build the project with `pnpm build`, apply database migrations, and start the indexer with `pnpm start`. Railway simplifies deployment by managing infrastructure, scaling, and database connectivity, ensuring seamless operation. A PostgreSQL database is required for data storage, and proper rate-limiting (`RPC_RATE_LIMIT`) prevents RPC overload. The monorepo structure, managed by pnpm workspaces, organizes packages for efficient event processing and indexing.

## Common Use Cases

- **Real-time Event Monitoring**: Track LUKSO blockchain events like `Follow`, `Unfollow`, or `Transfer` for live analytics or notifications.
- **Data Analysis for DApps**: Index LSP3Profile and LSP4Metadata to power decentralized applications with structured blockchain data.
- **Smart Contract Interaction Tracking**: Monitor `Executed` and `UniversalReceiver` events to analyze contract interactions and user activity.

## Dependencies for lsp-indexer Hosting

- **Node.js**: Required for running the indexer and managing pnpm dependencies.
- **PostgreSQL**: Stores indexed blockchain data, configured via `DB_URL`.
- **pnpm**: Manages the monorepo and dependencies across `abi`, `indexer`, and `typeorm` packages.

### Deployment Dependencies

- [LSP Indexer GitHub Repository](https://github.com/chillwhales/lsp-indexer)
- [Railway Documentation](https://docs.railway.app/)
- [LUKSO RPC Endpoint](https://rpc.lukso.sigmacore.io)
- [Subsquid Gateway](https://v2.archive.subsquid.io/network/lukso-mainnet)
- [IPFS Gateway](https://api.universalprofile.cloud/ipfs/)

### Implementation Details

To deploy on Railway, set up a new project, link the GitHub repository, and configure environment variables as per `.env.example`. Example `.env` setup:

```env
DB_URL=postgresql://postgres:password@host:5432/postgres
RPC_URL=https://rpc.lukso.sigmacore.io
SQD_GATEWAY=https://v2.archive.subsquid.io/network/lukso-mainnet
IPFS_GATEWAY=https://api.universalprofile.cloud/ipfs/
RPC_RATE_LIMIT=10
FINALITY_CONFIRMATION=75
FETCH_LIMIT=10000
FETCH_BATCH_SIZE=1000
FETCH_RETRY_COUNT=5
```

Run `pnpm build`, `pnpm migration:generate`, and `pnpm migration:apply` during deployment setup. Railway automates scaling and database provisioning.

## Why Deploy lsp-indexer on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying lsp-indexer on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/lsp-indexer
