backend

Develop server-side API routes for Astro applications using TypeScript.

Updated May 26, 2026
One-click install
npx skills add https://github.com/ngocnhanvo/temp-03-xehoihonda --skill backend-ngocnhanvo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend
Source: https://github.com/ngocnhanvo/temp-03-xehoihonda/tree/main/.emdash/skills/backend
Command: npx skills add https://github.com/ngocnhanvo/temp-03-xehoihonda --skill backend-ngocnhanvo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @wix/astro, and includes scripts (resource) components.

What problem does it solve?

This Skill provides server-side API routes and backend logic for Astro applications, enabling the creation of API endpoints, server routes, handling form submissions server-side, building REST APIs, and any backend logic that runs on the server under src/pages/.

Core Features & Use Cases

  • API Routes: Develop server-side API routes using TypeScript and Astro's APIRoute interface.
  • Server-Side Logic: Handle form submissions, create REST APIs, and execute backend logic.
  • Use Case: Use this Skill to build a full-stack application with Astro, leveraging its server-side capabilities to handle complex backend operations.

Quick Start

Create a new API route in 'src/pages/api' to handle GET requests for a specific resource.

Frequently Asked Questions about backend

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

FAQPage Schema
How do I create server-side API routes in Astro?

Server-side API routes in Astro are created under the 'src/pages/api' directory. You define endpoints using TypeScript and Astro's APIRoute interface to handle HTTP requests and execute backend logic.

Can I handle form submissions server-side with Astro?

Yes, you can handle form submissions server-side with Astro. This Skill enables you to process form data, execute backend logic, and manage server-side operations directly within your Astro application routes.

Does this backend Skill support different HTTP methods for REST APIs?

This backend Skill supports multiple HTTP methods for REST APIs, including GET, POST, PUT, DELETE, and PATCH. It leverages Astro's APIRoute interface to route and handle these specific server-side requests.

Do I need TypeScript to build backend logic in Astro?

TypeScript is fully supported and utilized for building backend logic in Astro. This Skill develops server-side API routes using TypeScript, ensuring type safety when defining endpoints and handling server-side data operations.

Can I integrate Wix SDKs into Astro server-side rendering?

Yes, you can integrate Wix SDKs into Astro server-side rendering. This Skill handles data operations and authentication by connecting your Astro backend logic with Wix SDKs for comprehensive server-side management.

What is the best way to structure backend operations in a full-stack Astro app?

The best way to structure backend operations in a full-stack Astro app is by placing server-side logic in 'src/pages/api'. This approach centralizes REST API endpoints and form handlers using Astro's APIRoute interface.