Crates.io | boltzmann |
lib.rs | boltzmann |
version | 0.4.3 |
source | src |
created_at | 2021-01-15 19:41:00.383277 |
updated_at | 2021-02-17 00:46:43.017411 |
description | A scaffolder for Boltzmann.js http service projects. |
homepage | |
repository | |
max_upload_size | |
id | 342511 |
size | 2,675,002 |
Boltzmann is a JavaScript framework for writing web servers. It is implemented in a single file that lives alongside your code. Boltzmann is focused on delivering a great developer experience and makes its tradeoffs with that goal in mind.
Our design goals:
Boltzmann is implemented in vanilla JavaScript and scaffolds a JavaScript project by default, with TypeScript definitions for your development convenience. It can scaffold a TypeScript project if you choose, but does not otherwise require you to opt into transpilation. We'd like you to be able to run Boltzmann apps under deno or in a web worker some day, so we make API choices that move us toward that goal.
For full Boltzmann docs, visit the documentation site.
If you prefer to look at working example code, we've provided examples in the ./examples
directory of this repo.
To scaffold a new service with Boltzmann, run the boltzmann
command-line tool. You can get it from the releases page or run it via npx boltzmann-cli
. (We prebuild for Mac OS, Windows, and GNU Linuxes.) The tool is responsible for initializing a new Boltzmann project as well as keeping it up to date. You enable or disable specific Boltzmann features using the tool.
For example, to scaffold with the defaults:
projects|⇒ npx boltzmann-cli hello
A complete project is provided for you, with useful package run scripts and linting. To run: ./boltzmann.js
. And to view the response: curl http://localhost:5000/hello/world
. Want to know more? Check the docs!
Boltzmann is a joint venture of @ceejbot and @chrisdickinson.
Apache-2.0.