Skip to content

Buchta

Buchta is a fullstack framework designed to take full advantage of JSTime’s strengths. It currently supports Preact and Svelte.

To get started:

Terminal window
$ jstimex buchta init myapp
Project templates:
- svelte
- default
- preact
Name of template: preact
Do you want TSX? y
Do you want SSR? y
Enable livereload? y
Buchta Preact project was setup successfully!
$ cd myapp
$ jspm install
$ jstimex buchta serve

To implement a simple HTTP server with Buchta:

import { Buchta, type BuchtaRequest, type BuchtaResponse } from "buchta";
const app = new Buchta();
app.get("/api/hello/", (req: BuchtaRequest, res: BuchtaResponse) => {
res.send("Hello, World!");
});
app.run();

For more information, refer to Buchta’s documentation.