
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
HTTP Reqest = TypeScript Class
A reusable, declarative, type-safe, and extendable HTTP request library.
Why jin-frame?
| Direct usage | Jin-Frame |
|---|---|
![]() | ![]() |
| axios svg | jin-frame svg |
npm install jin-frame --save
yarn add jin-frame --save
pnpm add jin-frame --save
This is simple example of pokeapi.co.
import { Get, Param, Query, JinFrame } from 'jin-frame';
import { randomUUID } from 'node:crypto';
@Get({
host: 'https://pokeapi.co',
path: '/api/v2/pokemon/:name',
})
export class PokemonFrame extends JinFrame {
@Param()
declare public readonly name: string;
@Query()
declare public readonly tid: string;
}
(async () => {
const frame = PokemonFrame.of({
name: 'pikachu',
tid: randomUUID(),
});
const reply = await frame.execute();
// Show Pikachu Data
console.log(reply.data);
})();
Retry and Timeout can be easily applied without installing additional packages.
import { Param, Query, Retry, Timeout, JinFrame } from 'jin-frame';
@Timeout(2000) // Timeout after 2000ms
@Retry({ max: 5, interval: 1000 }) // Retry up to 5 times with 1000ms interval
@Get({
host: 'https://pokeapi.co',
path: '/api/v2/pokemon/:name',
})
export class PokemonFrame extends JinFrame {
@Param()
declare public readonly name: string;
@Query()
declare public readonly tid: string;
}
import { Get, Param, Query } from 'jin-frame';
@Get({
host: 'https://pokeapi.co'
path: '/api/v2/pokemon/:name'
authorization: process.env.YOUR_KEY_HERE
})
export class PokemonFrame extends JinFrame {
@Param()
declare public readonly name: string;
@Query()
declare public readonly tid: string;
}
tsconfig.json{
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
// enable experimentalDecorators, emitDecoratorMetadata for using decorator
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
},
}
| jin-frame | axios |
|---|---|
| 2.x | <= 0.27.x |
| 3.x | >= 1.1.x |
| 4.x | >= 1.4.x |
You can find more examples in examples directory.
This software is licensed under the MIT.
FAQs
Reusable HTTP API request definition library
We found that jin-frame 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.