
Security News
gem.coop Tests Dependency Cooldowns as Package Ecosystems Move to Slow Down Attacks
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.
Standardized API response and error handling toolkit with async handler, requestId, logging, and configurable formats.
A lightweight toolkit for standardizing API responses and improving developer experience in Node.js applications.
Includes async handler, configurable response formats, error normalization, request ID injection, and more, all customizable with api-stds.config.json.
api-stds.config.json.npx api-stds init.npm i api-stds
Run once per project:
npx api-stds init
This will:
api-stds.config.jsonrequestId)api-stds if not already installedimport express from "express";
import { asyncHandler, stdResponse } from "api-stds";
const app = express();
app.get(
"/user",
asyncHandler(async (req, res) => {
const user = { id: 1, name: "Captain" };
res.json(stdResponse.success(user));
})
);
app.get(
"/error",
asyncHandler(async () => {
throw new Error("Something went wrong!");
})
);
app.listen(3000, () => console.log("Server running on port 3000"));
{
"status": "success",
"data": {
"id": 1,
"name": "Captain"
},
"requestId": "3f2d8a17-9d34-4c8c-8f2b-9a123c4c5a90"
}
{
"status": "error",
"message": "Something went wrong!",
"code": "INTERNAL_SERVER_ERROR",
"requestId": "3f2d8a17-9d34-4c8c-8f2b-9a123c4c5a90"
}
api-stds.config.json (auto-generated with npx api-stds init):
{
"useRequestId": true,
"responseFormat": {
"successKey": "data",
"errorKey": "message",
"includeTimestamp": true
}
}
npm run build # compile TypeScript → dist
npm run test # run unit tests
npm run lint # lint with ESLint
npm run format # format with Prettier
FAQs
Standardized API response and error handling toolkit with async handler, requestId, logging, and configurable formats.
The npm package api-stds receives a total of 7 weekly downloads. As such, api-stds popularity was classified as not popular.
We found that api-stds demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.