A lightweight and high-performance fully extensible and minimalist web server framework for Bun.js.
- Getting Started
- Installation
- Create Your First Server
- Run Your Server
- For More Examples
- Documentation
- Contributing
This guide will help you create your first Helix server application.
- Bun installed on your system
First, install the Helix server package:
bun add @helix-server/coreCreate a new file called index.ts:
touch index.tsAdd the following code to index.ts:
import helix from '@helix-server/core';
helix.get({
route: '/',
async handler(ctx) {
ctx.res.setBody('hello world');
},
});
helix.run(3000, '127.0.0.1');Start the server with:
bun run index.tsYou should see the message:
Server running at http://127.0.0.1:3000
Visit http://127.0.0.1:3000 in your browser to see "hello world".
Check out the examples repository for more sample applications.
For detailed documentation, visit the Helix Server Documentation.
Contributions are welcome! Please read the contributing guidelines to get started.