You are browsing as a guest. Sign up (or log in) to start making projects!

9h 39m 29s logged

Devlog 1

Last year I wanted to make a lightweight version of Express (Node.js based) but now I decided I wanted to take my framework more seriously and make it have better portability, so I switched my web framework’s middleware to use web standard instead.

This is how using my framework is like currently

import vivae from "@vivaejs/server";

const app = vivae();
const port = 3000;

app.use("/", ["GET", "POST"], (v) => {
  return v.send("Hello World!");
});

Depending on if your using Node.js or Edge runtimes you would put this at the bottom:

// Node.js
app.listen(port, () => {
  console.log(`Server running on http://localhost:${port}`);
});
// Edge
export default {
  fetch: app.fetch,
};

Also I’ve released the first alpha version of my package on npm so it can be installed like this!

npm install @vivaejs/[email protected]

I have an API references in my documentation for more information about all the features, majority of this was spent converting my project to web standard instead of Node.js.

0
3

Comments 0

No comments yet. Be the first!