CastleDB Haxe integration macros

To install, run:

haxelib install castle 1.6.0 

See using Haxelib in Haxelib documentation for more information.


A structured database and level editor with a local web app to edit it.


CastleDB is used to input structured static data. Everything that is usually stored in XML or JSON files can be stored and modified with CastleDB instead. For instance, when you are making a game, you can have all of your items and monsters including their names, description, logic effects, etc. stored in CastleDB.


CastleDB looks like any spreadsheet editor, except that each sheet has a data model. The model allows the editor to validate data and eases user input. For example, when a given column references another sheet row, you will be able to select it directly.


CastleDB stores both its data model and the data contained in the rows into an easily readable JSON file. It can then easily be loaded and used by any program. It makes the handling of item and monster data that you are using in you video game much easier.


CastleDB allows efficient collaboration on data editing. It uses the JSON format with newlines to store its data, which in turn allows RCS such as GIT or SVN to diff/merge the data files. Unlike online spreadsheet editors, changes are made locally. This allows local experiments before either commiting or reverting.


Windows x64

OSX x64

NWJS Package

To run the package, download and put package.nw into the nwjs directory

Compile from sources:

  • Compile with Haxe
  • Download and copy NWJS from into the /bin/nwjs directory
  • Run bin/cdb.cmd on windows or ./nwjs/nwjs from /bin directory on Linux/OSX
  • Enjoy!

To re-compile please install

More info

Website / documentation:

2 months ago

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser!

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github