
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.
A simple, angular based and typed framework for RestAPIs with node.
$ npm install thints --save
Quick example.
import {MainApplication, MainApplicationConfig, ThModule, ThController, ThRouter, GET} from "thints";
@ThController()
class ExampleController {
private name = 'ThinTS';
getMyName() {
return this.name;
}
}
@ThRouter('/name')
class ExampleRouter {
constructor(private exampleCtrl: ExampleController) {}
@GET('/') myname(req: Request, res: Response) {
const myname = this.exampleCtrl.getMyName();
res.json({myname});
}
}
@ThModule({
basePath: '/api',
controllers: [ ExampleController ],
routers: [ ExampleRouter ]
})
class MyApiModule {}
const config: MainApplicationConfig = {
http: {
autostart: true, // default true
port: 8000, // default 80
host: "localhost" // default "localhost"
},
https: {
autostart: true, // default false
port: 8443, // default 443
host: "localhost", // default "localhost"
credentials: {
keyUrl: "my/key/url.key",
certificateUrl: "my/cert/url.cert"
}
}
};
bootstrap(MyApiModule, config);
A GET request to 'url/api/name' call ExampleRouter and return:
{ "myname": "ThinTs" }
ThinTS start point, responsible to bootstrap your module and create initial depedenct tree with essentials imports.
MainApplication.bootstrap(MyModule);
Module is responsible to create scopes and declare components.
FAQs
A simple, angular based and typed framework for RestAPIs with node.
We found that thints demonstrated a not healthy version release cadence and project activity because the last version was released 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.