
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
**Zetten** is a minimalist, file-based full-stack framework for Node.js — inspired by the App Router concept from Next.js. It automatically loads **HTTP routes**, **queues**, **cron jobs**, and **bootstrap scripts** based on the file system.
Zetten is a minimalist, file-based full-stack framework for Node.js — inspired by the App Router concept from Next.js. It automatically loads HTTP routes, queues, cron jobs, and bootstrap scripts based on the file system.
Zetten is currently in active development. Expect breaking changes and missing features as the framework evolves.
npm install zetten fastify
# or
pnpm add zetten fastify
Zetten uses
fastify
as a peer dependency (for now), so make sure to install it manually.
Create the following structure:
.
├── index.ts
└── routes/
└── get.handler.ts
index.ts
import { Zetten } from 'zetten';
import { FastifyAdapter } from 'zetten/core/server/adapter/fastify';
import { HandlerPlugin } from 'zetten/handler';
const zetten = new Zetten({
adapter: new FastifyAdapter(),
port: 3030,
});
zetten.registerPlugin(new HandlerPlugin('./routes'));
zetten.start();
routes/get.handler.ts
import { FastifyRequest, FastifyReply } from 'fastify';
import { HandlerOptions } from '@zetten/handler';
export async function handler(_: FastifyRequest, reply: FastifyReply) {
reply.send({ hello: 'zetten' });
}
export const options: HandlerOptions = {
schema: {}, // You can define params, body, query validation here using Zod
};
Run your app and visit: http://localhost:3030 You should see:
{ "hello": "zetten" }
Zetten will automatically scan and load files based on folder + filename conventions:
Plugin | File Pattern |
---|---|
Routes | **/*.handler.ts |
Queue | **/*.worker.ts |
Cron Jobs | **/*.cron.ts |
Bootstrap | **/*.boot.ts |
All plugins are optional and modular.
zetten dev
, zetten build
, etc)MIT © 2025 Mayron Fernandes
---
Se quiser, posso também gerar badges (`npm`, `license`, `build passing`, etc), um `CHANGELOG.md` ou um gerador de projeto (`create-zett-app`). Me avisa o que quiser expandir!
FAQs
**Zetten** is a minimalist, file-based full-stack framework for Node.js — inspired by the App Router concept from Next.js. It automatically loads **HTTP routes**, **queues**, **cron jobs**, and **bootstrap scripts** based on the file system.
The npm package zetten-js receives a total of 0 weekly downloads. As such, zetten-js popularity was classified as not popular.
We found that zetten-js 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.