---
title: "Deploy Text Line Diff"
description: "Compare two text snippets line by line"
category: "Automation"
url: https://railway.com/deploy/text-line-diff
---

# Deploy Text Line Diff

Compare two text snippets line by line

**[Deploy Text Line Diff on Railway](https://railway.com/template/text-line-diff)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/text-line-diff/manifest.json

- **Creator:** dankeewithtwoes's Projects
- **Category:** Automation

## Template content

### Tool

- **Image:** python:3.13-slim
- **Start command:** `python -c "import base64,os;exec(compile(base64.b64decode(os.environ['TOOL_CODE']),'tool.py','exec'))"`
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host Text Line Diff on Railway

Compare two text snippets line by line.

## About Hosting Text Line Diff

This is a stateless JSON tool. Deploy it, copy TOOL_TOKEN from service variables and send it as an Authorization: Bearer header on POST /run. The /health endpoint is public and returns readiness only. Inputs are limited to 64 KiB. The application does not store requests or call a model.

## Why Deploy Text Line Diff

Call a deterministic operation from an agent, workflow or application without an LLM API key.

## Common Use Cases

- Compare two text snippets line by line.
- Insert a deterministic check or transformation in a workflow.
- Repeat the documented example in a regression check.

## Dependencies for Text Line Diff

- Python 3.13 container and a Railway project.
- An HTTP client with your generated bearer token.

### Example input for POST /run

```json
{"before": "a", "after": "a"}
```

### Expected response

```json
{"result": []}
```

The single process is intended for small internal workloads. Set concurrency and load limits upstream before serving high volume traffic.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/text-line-diff
