
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@reframe/koa
Advanced tools
@reframe/koaUse Reframe with Koa.
Add @reframe/koa to your reframe.config.js:
module.exports = {
$plugins: [
require('@reframe/react-kit'),
require('@reframe/koa')
]
};
Then eject the server code:
$ reframe eject server
Example of a reframe app with ejected Koa server code.
// /plugins/koa/example/server/start.js
const Koa = require('koa')
const Router = require('koa-router');
const config = require('@brillout/reconfig').getConfig({configFileName: 'reframe.config.js'});
const {symbolSuccess, colorEmphasis} = require('@brillout/cli-theme');
const KoaAdapter = require('@universal-adapter/koa');
module.exports = start()
async function start () {
const server = new Koa();
server.listen(3000);
server.use(
// We use https://github.com/brillout/universal-adapter to integrate Reframe with Koa
new KoaAdapter([
// Run `$ reframe eject server-rendering` to eject the server rendering code
config.ServerRendering,
// Run `$ reframe eject server-assets` to eject the static asset serving code
config.StaticAssets,
])
);
const router = new Router();
router.get('/hello-from-koa', (ctx, next) => {
ctx.body = 'Hello from Koa';
});
server.use(router.routes());
const env = colorEmphasis(process.env.NODE_ENV||'development');
console.log(symbolSuccess+'Server running (for '+env+')');
return server
}
FAQs
Use Reframe with Koa.
We found that @reframe/koa 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.