New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

blubox

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blubox

Fast, efficient and minimalist web framework

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source
Blubox

Fast, efficient and minimalist web framework

Easily create server applications with low cost and excellent speed. With Blubox you can create server applications with ease, as it is designed for those projects that do not require a super complex system and are only interested in meeting their requirements in a short time.

With Blubox you can start a project in a short time and the best thing is that Blubox will grow as the project requires it, this through different complements from Blubox or from the community.

Table of Contents

  • Quick start
  • Documentation
  • Core features
  • License

Quick start

Create a new folder for the project

mkdir project-name
cd project-name

Initialize a node project

npm init -y

Install Blubox

npm install blubox

In your index file create a basic server

const { App, Controller, Router } = require('blubox')

const controller = new Controller()

const router = new Router({
	ping: controller..get(ctx => {
		console.log(ctx.state.name)
		ctx.response.status(200).json({
			message: 'Pong!',
		})
		ctx.response.end()
	}),
})

const app = new App(router)

app.listen(3000, () => {
	console.log('Server listen on port 3000')
})

Run the server

node index.js

Documentation

You can find all Blubox documentation here.

Core Features

  • Friendly development: Blubox is designed to be as simple and pleasant for the developer to use as possible.
  • Small bundle size: The size of the Blubox package is designed to be as light as possible, as well as using the fewest external modules.
  • Extendable: Blubox is designed to be as minimalist as possible, however, that does not mean that its range of options cannot be expanded easily.

License

Licensed under MIT.

Keywords

blubox

FAQs

Package last updated on 14 Dec 2023

Did you know?

Socket

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.

Install

Related posts