Write your web backend in Haxe.

HxWell gives you routing, middleware, an ORM, sessions and WebSockets. Build the same app for the JVM, C++, HashLink, PHP or Neko.

haxelib install hxwell
src/hx/well/provider/BootProvider.hx
class BootProvider extends AbstractProvider {
    public function boot():Void {
        Route.domain("api.hxwell.org").group(() -> {
            Route.get("/{any}")
                .handler(new PublicApiHandler())
                .where("any", ".*");
        });

        Route.get("/abort/{code}")
            .handler(new AbortHandler())
            .where("code", "\\b[1-5][0-9]{2}\\b");

        Route.websocket("/online") // connecting…
            .handler(new OnlineCountWebSocketHandler());
    }
}
These routes serve this page. The comment on the WebSocket line counts the people connected to it right now.

Built with HxWell

HaxePress

A content management system written in Haxe. Write posts in Markdown, define your own content types, and change the look with themes and plugins. It runs on the JVM or PHP, with SQLite or MySQL.