
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.
CrabJS is a powerful API Framework that works with a lot of outstanding modules and is fully configured by annotations.
CrabJS is a powerfull API Framework that works with a lot of outstanding modules and is fully configured by annotations.
To install, run:
npm install -g crabjs
If you want to see available options con cjs, you can see the help.
cjs -h or
cjs --help
To create / initiate a project, just type inside the directory:
cjs init
With CrabJS cli, you can easily create API controllers and entities for your backend. When you initiate a project, you will receive your first credentials to your API. CrabJS uses Express to route paths and it is so easy to create an example controller. To do this, just type:
cjs create mycontroller
As we use annotations to perform api settings, you need to specify the paths you want to map. After you create an controller, you will see this content on controller file:
/**
* @Controller
* @route('/mycontroller')
*/
function mycontroller() {
/**
* @route('/')
* @method('GET')
*/
this.get = function (req, res) {
res.send("alive");
}
}
module.exports = mycontroller;
The routes for controller are specified with annotations. To test this controller, you just need run the ptoject and do a request (GET method) for your project url:
Run:
npm start or
node app.js
Url to do the request:
http://your_api_url/mycontroller
FAQs
CrabJS is a powerful API Framework that works with a lot of outstanding modules and is fully configured by annotations.
We found that crabjs 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.