Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
简单好用的 Next.js 自定义服务器。
Kid.js 为 Next.js 提供更加人性化的后端服务能力,支持自定义路由和接口、环境配置等功能。同时不破坏 Next.js 原有的特性及开发体验。
Kid.js 作为 Next.js 的附加服务,与 Next.js 本身不存在耦合,可随时被添加至一个现有的 Next.js 应用中,并可以在任何时候从你的应用中移除。
在技术选型上使用性能优异的 Koa 作为底层。
在安全和稳定性方面,Kid.js 内置常见攻击的防御机制。
Kid.js 关注服务端渲染的性能,默认开启页面级缓存。
我们只需要几个步骤,就可以让你的服务运行起来:
$ npm i --save kidjs next react react-dom
在你的 package.json 中添加运行脚本:
{
"scripts": {
"dev": "kid",
"build": "kid build",
"start": "KID_ENV=prod kid"
}
}
创建首页(.pages/index.js
):
export default () => <div>Welcome to kid.js!</div>
启动项目:
$ npm run dev
$ open 127.0.0.1:7214
$ npm i --save kidjs
在配置中声明自定义端口(可选):
// config/config.default.js
module.exports = {
port: 7707
}
更改 package.json 中的运行脚本:
{
"scripts": {
"dev": "kid",
"build": "kid build",
"start": "KID_ENV=prod kid"
}
}
启动项目:
$ npm run dev
$ open 127.0.0.1:7707
Kid.js 采用 MIT 开源许可。
Kid.js 关注企业和项目的版权风险,所有依赖的框架和库均采用 MIT 许可,并对依赖进行扫描。
FAQs
Kidjs is a lightweight framework for server‑rendered
We found that kidjs 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.