
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@g1suite/api-framework
Advanced tools
Minimal Node HTTP router with method-aware dispatch, dynamic params, and a directory loader.
Minimal Node HTTP router with method-aware dispatch, dynamic params, and a directory loader.
import { createRouter } from '@g1suite/api-framework';
const router = createRouter();
router.get('/hello', (req, res, ctx) => ctx?.json({ ok: true }));
:param:router.get('/users/:id', (req, res, ctx) => {
ctx?.json({ id: ctx?.params.id });
});
router.use((req, res, next) => { /* auth, logging, etc */ next(); });
Handlers receive a ctx with:
url, methodparams from dynamic segmentsquery as an object (multi-values grouped)json(data, status?) and text(body, status?)Auto-register route modules from a directory:
import { loadRoutesFromDir } from '@g1suite/api-framework';
await loadRoutesFromDir(router, 'src/routes');
src/routes/hello.ts -> GET /hellosrc/routes/users/list.js -> GET /users/listsrc/routes/users/[id].ts -> /users/:idGET, POST, PUT, PATCH, DELETE, OPTIONS) are registered per method; otherwise a default export is treated as GET.GET fallback when only GET is registered.GET fallback is allowed when the exact method is not found.import http from 'node:http';
import { createRouter, loadRoutesFromDir } from '@g1suite/api-framework';
const router = createRouter();
await loadRoutesFromDir(router, 'src/routes');
http.createServer(router.listener()).listen(3000);
FAQs
Minimal Node HTTP router with method-aware dispatch, dynamic params, and a directory loader.
We found that @g1suite/api-framework 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.