Skip to content
@pxe-js

pxe-js

PXE.js

A web framework.

Example

Simple web server that responds with Hello world on each request.

import Server from "@pxe/server";

// Initialize a new server
const app = new Server();

// Add a middleware
app.use(async (ctx, next) => {
    // Set the response to "Hello world"
    ctx.response.body = "Hello world";

    // Run the next middleware
    // End the response if this is the last middleware
    await next();
});

// Listen to port 3000
app.ls(3000);

Basic Features

  • Web cookie
  • Redirect
  • Error handling
  • Middlewares
  • Typescript support

Usage

Currently documentation is under construction. Please chat on Discord if you want to ask any question.

"Buy Me A Coffee"

Pinned Loading

  1. router router Public

    Router middleware for PXE.js

    TypeScript

  2. database database Public archive

    A simple local database for Node.js

    TypeScript

  3. documentation documentation Public

    PXE.js Documentation

    TypeScript

  4. generator generator Public

    PXE.js project generator

    JavaScript

  5. cors cors Public

    Cross-origin resource sharing middleware for PXE.js

    TypeScript

Repositories

Showing 10 of 10 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…