{"id":13528955,"url":"https://github.com/ncannasse/castle","last_synced_at":"2025-05-15T10:03:16.357Z","repository":{"id":4762209,"uuid":"5912693","full_name":"ncannasse/castle","owner":"ncannasse","description":"A structured database with a local web service to edit it","archived":false,"fork":false,"pushed_at":"2025-03-18T19:20:15.000Z","size":3253,"stargazers_count":576,"open_issues_count":54,"forks_count":79,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-12T22:17:42.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncannasse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-09-22T11:57:28.000Z","updated_at":"2025-03-31T07:30:07.000Z","dependencies_parsed_at":"2023-07-05T19:02:38.886Z","dependency_job_id":"3f151d67-f000-47c0-9497-331a0ffffc57","html_url":"https://github.com/ncannasse/castle","commit_stats":{"total_commits":430,"total_committers":19,"mean_commits":22.63157894736842,"dds":"0.11627906976744184","last_synced_commit":"8f09137f18fbfd15ecbe6dc1872733fb8d6fbee4"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncannasse%2Fcastle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncannasse%2Fcastle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncannasse%2Fcastle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncannasse%2Fcastle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncannasse","download_url":"https://codeload.github.com/ncannasse/castle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319716,"owners_count":22051072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:00:29.678Z","updated_at":"2025-05-15T10:03:09.852Z","avatar_url":"https://github.com/ncannasse.png","language":"Haxe","readme":"CastleDB\n========\n\u003ca href=\"http://castledb.org\"\u003e\u003cimg src=\"http://castledb.org/img/icon_hd.png\" align=right /\u003e\u003c/a\u003e\n\n**Important Note:** CastleDB editor has been rewritten to be integrated with [HIDE](https://github.com/heapsio/hide). Castle library is still being developped but the editor here is legacy.\n\n_A structured database and level editor with a local web app to edit it._\n\n### Why\nCastleDB 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.\n\n###  How\n\u003cimg src=\"http://castledb.org/img/screen.png\"  width=50% align=right  /\u003e\nCastleDB 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.\n\n\n###  Storage\nCastleDB 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.\n\n###  Collaboration\n\u003cimg src=\"http://castledb.org/img/levelEdit.png\" width=50% align=right /\u003e\nCastleDB 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.\n\n\n### Download\n\n##### Windows x64\nhttp://castledb.org/file/castledb-1.5-win.zip\n##### OSX x64\nhttp://castledb.org/file/castledb-1.5-osx.zip\n##### NWJS Package\nhttp://castledb.org/file/package-1.5.zip  \n\u003e To run the package, download http://nwjs.io and put package.nw into the nwjs directory\n\n\n### Compile from sources:\n\n#### 1. Install Prerequisites\n- Install [Haxe](https://haxe.org) using approriate installer from https://haxe.org/download/\n- Install dependencies (https://github.com/HaxeFoundation/hxnodejs) using the command `haxelib install castle.hxml`\n\n#### 2. Build castle.js\n- Clone this repository\n- At the root of the repository folder run\n```haxe castle.hxml```\n- This will create `castle.js` file in the `bin` folder\n\n#### 3. Package or Run with NWJS\n- Download and copy NWJS from http://nwjs.io into the bin/nwjs directory\n- Run cdb.cmd on windows or nwjs/nwjs from bin directory on Linux\n- On OSX, you need to copy all bin files into bin/nwjs.app/Contents/Resources/app.nw folder, then open the NWJS application\n\n### More info\nWebsite / documentation: http://castledb.org\n","funding_links":[],"categories":["Haxe","Serialization and storage","Libraries"],"sub_categories":["Haxe"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncannasse%2Fcastle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncannasse%2Fcastle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncannasse%2Fcastle/lists"}