#web-apps #pax #cartridge #user-interface #wasm #applications #allowing

pax-chassis-web

Platform-specific chassis allowing Pax cartridges to be executed as Web apps

69 releases (10 breaking)

new 0.14.1 Apr 26, 2024
0.12.8 Mar 16, 2024
0.10.10 Dec 6, 2023
0.10.7 Oct 20, 2023
0.0.1 Sep 13, 2022

#10 in Rendering engine

Download history 9/week @ 2024-01-25 1/week @ 2024-02-08 43/week @ 2024-02-15 285/week @ 2024-02-22 397/week @ 2024-02-29 18/week @ 2024-03-07 269/week @ 2024-03-14 39/week @ 2024-03-21 23/week @ 2024-03-28 7/week @ 2024-04-04 674/week @ 2024-04-11 871/week @ 2024-04-18

1,575 downloads per month

MIT/Apache

220KB
5K SLoC

Rust 3.5K SLoC // 0.0% comments JavaScript 1.5K SLoC // 0.0% comments

Pax

Pax is a user interface engine for native apps & websites.

Write application logic in TypeScript or Rust while declaring content & behavior in Pax's JSX-inspired user interface description language.

Pax compiles into native desktop/mobile apps and WebAssembly-driven web apps. It's very fast and very lightweight.

What's in this repo?

  • The Pax compiler and an implementation of the Pax user interface description language
  • Native renderers + runtimes for iOS, macOS, and browsers/WebAssembly
  • Language bindings for supported programming languages, currently only Rust
  • Pax's CLI for compiling and managing projects
  • Example projects

Status

Currently Alpha and unstable, under active full-time development. Today, Pax compiles and runs for iOS, macOS, and Web. The Web target is our leading edge of development. Pax’s standard library includes components for drawing, layouts, and form controls.

Take Pax for a spin!

Join our Discord to chat with our team.

We do not yet recommend building any production workloads with Pax. Targeting Beta in Q3 2024.

TypeScript bindings are experimental and not yet publicly available. Currently, writing Pax requires writing Rust.

Examples

See a simple example in the introduction page of our docs.

You can also run the examples in this monorepo:

  1. Install Rust toolchain
  2. Clone this repo: git clone git@github.com:paxproject/pax.git && cd pax
  3. Run an example: cargo run --example fireworks. See the available examples here.

Docs

Read the docs at https://docs.pax.dev/

License

© 2024 PaxCorp Inc. [contact@pax.dev].

This project is licensed under either of:

at your option.

Build Pax visually

Get early access to Pax Create

image


lib.rs:

Basic example of rendering in the browser

Dependencies

~13–17MB
~318K SLoC