Use Feathers UI with JavaScript in web browsers

While Feathers UI and OpenFL are written in the Haxe programming language, both projects are available on the npm package registry, allowing JavaScript developers to create projects without Haxe.


Option 1: Install with npm

In a JavaScript project, you can install Feathers UI using npm install. OpenFL will be installed automatically as a dependency.

npm install feathersui-openfl

Option 2: Load from a CDN

If you prefer, you can load Feathers UI and OpenFL directly from the unpkg CDN in any HTML file.

<script src=""></script>
<script src=""></script>
<script src=""></script>

The following sample code demonstrates a simple Hello World project:

class HelloWorld extends feathers.controls.Application {
  constructor() {

    this.layout = new feathers.layout.AnchorLayout();

    this.button = new feathers.controls.Button();
    this.button.layoutData =;
    this.button.text = "Click Me";

  button_triggerHandler = (event) => {"Hello World", this.button);

var stage = new openfl.display.Stage(0, 0, null, null, {
  allowHighDPI: true,
stage.addChild(new HelloWorld());