Skip to content

tuftjs/tuft

Repository files navigation

Tuft

A fast, lightweight web framework for Node.js, with no dependencies.

CI Coverage Status Known Vulnerabilities npm

Official website: https://tuft.dev

Getting started

You can install Tuft via npm:

npm install tuft

A simple "Hello, world!" example:

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.

People

The creator and maintainer of Tuft is Stuart Kennedy.

License

MIT