
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.
Lork is a lightweight and flexible Node.js framework designed for building backend applications. It provides essential features like routing, session management, and authentication, all while giving you the freedom to implement custom logic.
To install Lork, use npm:
npm install lork
Here's a simple example to get you started:
const { Lork } = require('lork');
const app = new Lork();
app.get('/', (req, res) => {
console.log(req.fields); // your body fields are stored here.
console.log(req.files); // your files are stored here.
res.send('Hello, world!');
});
app.listen(3000, () => {
console.log('Server is running on http://localhost:3000');
});
To use session management:
const { session } = require('lork');
app.use(session({
cookie: {
key: 'connect.sid',
secretKey: 'your-secret-key',
maxAge: 3600000, // 1 hour
},
store: /* your store options here */
}));
const { LocalAuth } = require("lork");
const User = require("path/to/your/user/model");
const auth = LocalAuth({User: User});
app.post("/login", auth.authenticate(), (req, res) => {
if(req.session.userId){
res.json({msg: "successfully authenticated"});
}else{
res.status(400).json({msg: "bad request"});
}
});
Lork provides several methods for response handling:
res.send(data): Send plain text response.res.json(data): Send JSON response.res.render(fileName): Render an HTML file from the views directory.res.status(statusCode): Set response status code.res.redirect(url): Redirect to a different URL.res.cookie(options): Set a cookie.res.signedCookie(options): Set a signed cookie.res.deleteCookie(cookieName): Delete a cookie.Contributions are welcome! This software needs some improvements. Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Thanks to allah and to the open-source community for inspiration and resources
FAQs
A framework for building backend applications
We found that lork demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.