add-api-railway

add-api-railway is a command for Claude Code from Ashikparvez89/larouex-fullstack-plugin. It costs 0 tokens per session (130 once invoked), scanned A, a copy of add-api-railway, MIT.

A new Express API endpoint with validation, error handling, database access, and a Next.js client for calling it. An API endpoint is a server URL that receives requests and returns data or performs an action.

In plain words
What is it for?
Use it to add operations such as creating accounts, saving records, or retrieving data. It includes TypeScript request and response types, environment settings, example usage, and API documentation.
Why use it?
It removes the repeated setup needed to connect a frontend to a backend safely. It also provides a structure for checking input, handling authentication, logging requests, and returning consistent errors.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the larouex-fullstack-builder plugin — 80 commands shipped together

Good fit Use it to add operations such as creating accounts, saving records, or retrieving data. It includes TypeScript request and response types, environment settings, example usage, and API documentation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ashikparvez89/larouex-fullstack-plugin/add-api-railway
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Ashikparvez89/larouex-fullstack-plugin

Made for: Claude Code.

Or install larouex-fullstack-builder, the plugin that ships this one along with the rest of its 80 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-api-railway

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashikparvez89/larouex-fullstack-plugin/add-api-railway/github.svg)](https://agentmods.dev/commands/ashikparvez89/larouex-fullstack-plugin/add-api-railway)
Your own site
<a href="https://agentmods.dev/commands/ashikparvez89/larouex-fullstack-plugin/add-api-railway"><img src="https://agentmods.dev/badge/commands/ashikparvez89/larouex-fullstack-plugin/add-api-railway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-api-railway

Your own site · 80×15
<a href="https://agentmods.dev/commands/ashikparvez89/larouex-fullstack-plugin/add-api-railway"><img src="https://agentmods.dev/badge/commands/ashikparvez89/larouex-fullstack-plugin/add-api-railway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 130 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00130
Opus 5.5 $0.00000 $0.00052
Sonnet 5.5 $0.00000 $0.00026
Haiku 4.5 $0.00000 $0.00013

Measured 1mo ago against content hash 357b1233a4a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-api-railway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to add-api-railway — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/add-api-railway.md · 16 lines

What it actually says

Create a new Express API endpoint with full integration.

Generate:

  • Express route handler in /server/api with TypeScript
  • Input validation using express-validator or Zod
  • Comprehensive error handling middleware
  • CORS configuration in Express app
  • Database integration with Prisma ORM
  • Request/response TypeScript interfaces
  • API client code in Next.js (/lib/api) for calling the endpoint
  • Environment variable configuration
  • Example usage in a Next.js component
  • API documentation comments

Include proper middleware chain (validation, authentication, error handling), logging, security headers, and RESTful conventions. Ensure rate limiting and request validation are in place.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 16 lines · 0 tokens per session scan A 357b1233a4a0

Subscribe to this mod's changes

add-api-railway is a command published in the GitHub repository Ashikparvez89/larouex-fullstack-plugin (3 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 130 tokens. A static security scan graded it A with 0 findings. It is 100% identical to add-api-railway, differing in 0 lines, and is treated as a copy.

Related

Other commands, from other repositories

scaffold-azure-functions

Create an Azure Functions v4 project with TypeScript.

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-api-azure

Create a new Azure Function HTTP endpoint with full integration.

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-api-railway

Create a new Express API endpoint with full integration.

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-cron-railway

Create scheduled jobs on Railway using node-cron or external cron services. Implement cron scheduler in Express application with node-cron. Add job management API for listing, triggering, and monitoring jobs. Implement comprehensive job logging with timestamps and status. Handle job failures with retry logic and…

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-email-azure

Integrate email functionality using Azure Communication Services or SendGrid. Create Azure Function for sending emails with HTTP trigger. Design email templates using HTML/Handlebars. Implement email validation and sanitization. Handle delivery failures with retry logic and error logging. Create email queue for bulk…

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-email-railway

Integrate email functionality using Nodemailer or Resend API. Set up SMTP configuration with environment variables. Create email templates using React Email for type-safe component-based emails. Implement send email API endpoint in Express. Add email validation and rate limiting. Handle delivery failures with retry…

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens