nile

Build TypeScript backends with Zod-validated service actions and a single POST endpoint.

22|2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/nile-js/nile --skill nile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nile
Source: https://github.com/nile-js/nile/tree/main/packages/nile
Command: npx skills add https://github.com/nile-js/nile --skill nile

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nile replaces ad-hoc routing with a unified service-action model, delivering a type-safe, scalable backend framework that integrates validation, discovery, and AI-ready tooling.

Core Features & Use Cases

  • Action-first developer experience: define actions with Zod validation, Ok/Err results, and compose them into services exposed via a single POST endpoint.
  • AI-ready discovery: automatic JSON Schema exports for actions to empower agents and tool-calling workflows.
  • Extensible runtime: integrates with Drizzle ORM, hooks, logging, CORS, uploads, and per-request context for robust production backends.

Quick Start

Boot a Nile server and start defining services and actions using the provided examples.

Frequently Asked Questions about nile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a type-safe backend with an action-driven design in TypeScript?

Build a type-safe backend by defining actions with Zod validation and Ok/Err Result patterns, composing them into services exposed via a single POST endpoint for unified orchestration and strict contracts.

What is the service-action model for backend orchestration and how does it work?

The service-action model for backend orchestration replaces ad-hoc routing by enforcing strict action contracts with Zod validation and the Ok/Err Result pattern, exposing a single POST endpoint for all service interactions.

Can I use Drizzle ORM and Zod validation together in a TypeScript backend framework?

Yes, you can use Drizzle ORM and Zod validation together in a TypeScript backend framework that integrates extensible runtime features like hooks, logging, CORS, and per-request context for robust production environments.

How do I make my backend actions discoverable for AI agents and tool-calling workflows?

Make backend actions discoverable for AI agents by utilizing automatic JSON Schema exports for actions, empowering tool-calling workflows and agents to seamlessly interact with your defined service contracts.

What is the best way to replace ad-hoc API routing with a unified endpoint in a TypeScript backend?

The best way to replace ad-hoc API routing is adopting a unified service-action model that exposes a single POST endpoint for orchestration, delivering type-safe, scalable backend architecture with integrated validation.

Does the Nile framework provide a typed client SDK for interacting with backend services?

Yes, the Nile framework provides a typed client SDK to interact with services and actions, ensuring end-to-end type safety between the frontend client and the backend action contracts.