https://github.com/tuftjs/tuft
A minimalist web framework for Node.js.
https://github.com/tuftjs/tuft
framework http node node-js nodejs tuft tuftjs web
Last synced: 10 months ago
JSON representation
A minimalist web framework for Node.js.
- Host: GitHub
- URL: https://github.com/tuftjs/tuft
- Owner: tuftjs
- License: mit
- Created: 2020-03-31T22:04:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-08T22:52:00.000Z (almost 3 years ago)
- Last Synced: 2025-03-18T15:28:07.971Z (11 months ago)
- Topics: framework, http, node, node-js, nodejs, tuft, tuftjs, web
- Language: TypeScript
- Homepage: https://tuft.dev
- Size: 1.52 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tuft
A fast, lightweight web framework for Node.js, with no dependencies.

[](https://coveralls.io/github/tuftjs/tuft)
[](https://snyk.io/test/github/tuftjs/tuft?targetFile=package.json)

Official website: [https://tuft.dev](https://tuft.dev)
## Getting started
You can install Tuft via npm:
```sh
npm install tuft
```
A simple "Hello, world!" example:
```js
const { tuft } = require('tuft')
tuft()
.set('GET /', { text: 'Hello, world!' })
.createServer({ port: 3000 })
.start()
.then(({ host, port }) => {
console.log(`Server listening at http://${host}:${port}`)
})
```
For more information on how to use Tuft, see the [official documentation](https://tuft.dev/docs).
## People
The creator and maintainer of Tuft is [Stuart Kennedy](https://github.com/rav2040).
## License
[MIT](https://github.com/tuftjs/tuft/blob/master/LICENSE)