firmware.js
v0.1.0
Published
A lightweight and simple HTTP server framework for Node.js.
Maintainers
Readme
firmware.js
A lightweight and simple HTTP server framework for Node.js.
Features
- Simple application API
- HTTP routing
- GET, POST, PUT, DELETE
- Middleware support
- Request wrapper
- Response helpers
- JSON responses
- HTTP status handling
- Built on Node.js HTTP
Installation
npm install firmware.jsBasic Usage
const firmware = require("firmware.js");
const app = firmware();
app.get("/", (req, res) => {
res.send("Hello from firmware.js!");
});
app.get("/api", (req, res) => {
res.json({
message: "Hello from firmware.js!",
version: "0.1.0"
});
});
app.listen(3000, () => {
console.log("Server running on http://localhost:3000");
});Testing
npm testProject Structure
firmware.js/
├── package.json
├── index.js
├── LICENSE
├── json/
│ └── metadata.json
├── src/
│ ├── application.js
│ ├── router.js
│ ├── request.js
│ ├── response.js
│ └── middleware.js
├── test/
│ └── firmware.test.js
└── README.mdLicense
MIT License.
Copyright (c) 2026 fian
