oboard/mocket

A web framework for MoonBit.

MoonBit

95

265 commits

updated Sep 20, 2026

See the code

README

oboard/mocket

Version GitHub Workflow Status (with event) License

A web framework for MoonBit.

👉 Documentation

Quick Start

async fn main {
  let app = @mocket.App()
  app.get("/", _ => "Hello, Mocket!")
  app.listen(":80")
}

Mocket supports both js and native backends.

JavaScript Backend

Set the backend of MoonBit to js in Visual Studio Code

Command: MoonBit: Select Backend -> js

moon run src/example --target js

Native Backend

Set the backend of MoonBit to native in Visual Studio Code

Command: MoonBit: Select Backend -> native

moon run src/example --target native

Then visit http://localhost:4000

Usage

Minimum Example: https://github.com/oboard/mocket_example

🙌快来吧!🙌

QQ 群号:949886784

QQ 群

http
moonbit
server

Contributors

oboard

248 commits

I3eg1nner

9 commits

bobzhang

7 commits

hackwaly

1 commits

oboard/mocket

A web framework for MoonBit.

MoonBit

95

265 commits

updated Sep 20, 2026

See the code

README

oboard/mocket

Version GitHub Workflow Status (with event) License

A web framework for MoonBit.

👉 Documentation

Quick Start

async fn main {
  let app = @mocket.App()
  app.get("/", _ => "Hello, Mocket!")
  app.listen(":80")
}

Mocket supports both js and native backends.

JavaScript Backend

Set the backend of MoonBit to js in Visual Studio Code

Command: MoonBit: Select Backend -> js

moon run src/example --target js

Native Backend

Set the backend of MoonBit to native in Visual Studio Code

Command: MoonBit: Select Backend -> native

moon run src/example --target native

Then visit http://localhost:4000

Usage

Minimum Example: https://github.com/oboard/mocket_example

🙌快来吧!🙌

QQ 群号:949886784

QQ 群

http
moonbit
server

Contributors

oboard

248 commits

I3eg1nner

9 commits

bobzhang

7 commits

hackwaly

1 commits

Languages

MoonBit

74.1%

C

11.4%

Python

5.7%

JavaScript

3.0%

TypeScript

1.7%

Java

1.1%