1.4.0 • Published 10 months ago

@oliverjam/hypa v1.4.0

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

hypa

A minimal TypeScript server framework for building simple apps. Designed for modern runtimes like Bun.

Getting started

Install in your project:

npm install @oliverjam/hypa

Configure JSX via tsconfig.json:

{
	"jsx": "react-jsx",
	"jsxImportSource": "@oliverjam/hypa"
}

Create a server:

import { router } from "router";

let app = router();

app.route("/").get(() => <h1>Hello world</h1>);
app.route("*").get((c) => c.status(404).html(<h1>Not found</h1>));

let server = Bun.serve(app);

console.log(`Listening on http://localhost:${server.port}`);
1.4.0

10 months ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago