
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
douhdouh is node.js server framework. super slow and heavy. but want to be fast and light. Contributions are always welcome!
$ npm install douh
when return, douh will send response body.
import App from 'douh';
const app = new App();
app.use(() => {
return 'hello world!';
});
app.listen(3000);
douh supports async middleware.
app.use(async (req, res, next) => {
console.time('start');
await next();
console.timeEnd('end');
});
import App, { Router } from 'douh';
const app = new App();
const router = new Router();
router.get('/ping', (req, res, next) => {
return 'pong';
});
app.use(router.middleware());
app.listen(3000);
you can use bodyParser middleware.
import App, { bodyParser, Router } from 'douh';
const app = new App();
const router = new Router();
router.post('/ping', (req, res, next) => {
console.log(req.body);
console.log(req.files); // when content type is multipart/form-data
return 'pong';
});
app.use(bodyParser);
app.use(router.middleware());
app.listen(3000);
you can use service with @Service decorator.
access service with req.service.
import App, { Service } from 'douh';
@Service()
class DouhService {
public hello(name: string) {
return `hello ${name}`;
}
}
const app = new App();
app.use(async (req, res) => {
const result = req.service.userService.hello('douh');
return result; // hello douh
});
you can use repository with @Repository decorator.
access repository in service constructor.
@Repository()
class DouhRepository {
hello(name) {
return `hello ${name}`;
}
}
@Service()
class DouhService {
constructor(private readonly douhRepository: DouhRepository) {}
hello(name: string) {
return this.douhRepository.hello(name);
}
}
const app = new App();
app.use(async (req, res) => {
const result = req.service.douhService.hello('douh');
return result; // hello douh
});
you can use file service with middleware.
import App, { serveStatic } from 'douh';
const app = new App();
app.use(serveStatic('public')); // it must be placed before bodyParser
app.use(bodyParser);
app.listen(3000);
FAQs
http based node.js web server framework
The npm package douh receives a total of 2 weekly downloads. As such, douh popularity was classified as not popular.
We found that douh demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

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.