Single endpoint, instant results

Constant Case API - Convert Text to UPPER_SNAKE_CASE

Convert any text to CONSTANT_CASE (UPPER_SNAKE_CASE). Perfect for environment variables, configuration keys, and SQL column names. Free: 1,000 requests/day.

POST https://textforge.co/v1/run
{
  "input": "Hello World!",
  "pipeline": [
    "constantcase"
  ]
}

Response:

{
  "success": true,
  "input": "Hello World!",
  "pipeline": [
    "constantcase"
  ],
  "result": "hello-world",
  "steps": [
    {
      "step": 1,
      "action": "constantcase",
      "result": "hello-world",
      "execution_time_ms": 1
    }
  ],
  "execution_time_ms": 4
}

Use Case: Environment Variables

Generate CONSTANT_CASE environment variable names from descriptive phrases.

Example: Convert any text to CONSTANT_CASE (UPPER_SNAKE_CASE). Perfect for environment variables, configuration keys, and SQL column names. Free: 1,000 requests/day.

Quick Start

cURL
curl -X POST https://textforge.co/transform   -H "Content-Type: application/json"   -d '{"text":"Hello World!","action":"constantcase"}'
Node.js
fetch("https://textforge.co/transform", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ text: "Hello World!", action: "constantcase" })
}).then(r => r.json()).then(console.log);
Python
import requests

payload = { "text": "Hello World!", "action": "constantcase" }
response = requests.post("https://textforge.co/transform", json=payload)
print(response.json())
PHP
<?php
$payload = json_encode([ "text" => "Hello World!", "action" => "constantcase" ]);
$ch = curl_init("https://textforge.co/transform");
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
echo $response;
?>

Why use the API?

Sub-5ms latency

p95 response time, no cold starts

🔗

Composable pipelines

Chain transforms in one request

🛡️

Fair free tier

1,000 requests/day, no credit card

🌐

Works everywhere

curl, Python, JS, PHP - no SDK needed

📊

Built-in analytics

Usage tracking, rate limit headers

🔒

HTTPS only

CORS enabled, production ready

All 28 Transforms