Skip to content
Back to skills

Node Api

ASecurity

Node.js or Express backend, REST APIs, npm scripts. Async-safe and testable on-device.

  • 42 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
ai-agentsgoshellreactnodeexpressapifrontendbackend

Works with

  • terminal
  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 27, 2026

npx -y skills add aether-aiagent/aether --skill node-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Node Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Node Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aether-aiagent-node-api/badge)](https://www.skillsdirectory.com/skills/aether-aiagent-node-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: node-api
description: Node.js or Express backend, REST APIs, npm scripts. Async-safe and testable on-device.
category: web-dev
---

# Node API

Correct async, validated inputs, and an endpoint you actually curl before claiming done.

## When to use
- REST API, Express/Fastify server, webhook receiver, cron job
- User says backend, API, server, endpoints, Node

## When not to use
- Frontend-only work (react-frontend or web-design)

## Procedure
1. `env_status` once. If node/npm are missing, the user installs the Linux environment from Settings -> Terminal; stop after saying so.
2. Scaffold: `npm init -y` then only the packages the task needs (`npm i express`). List what you installed.
3. Structure small: `server.js` entry, `routes/`, one module per resource. No frameworks beyond what was asked.
4. Async rules: wrap awaits in try/catch or an Express error middleware (async throws do not reach the default handler). Never use sync fs calls inside request handlers. Handle unhandledRejection explicitly.
5. Validate inputs at the boundary; return 400 with a short JSON error shape the client can render.
6. Run: start with the Aether background shell (`shell_background` or `node server.js &`), bind 0.0.0.0 so the phone's own Chrome can open http://localhost:PORT.
7. Verify with `curl -s localhost:PORT/path` for one happy case and one bad input. Paste both outputs.

## Pitfalls
- Claiming the API works without curling it.
- Port 3000 already taken by a previous bg process; kill it first (bg_list/bg_kill).
- Secrets in code; read them from env vars.

## Verification
Two curls shown (success + failure case), server still running, no unhandled rejection warnings.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.