Fork me on GitHub
#malli
<
2023-08-18
>
mx200005:08:36

Is there any tool , given schemas, that give me an 'edn-editor'. For example I am developing a videogame and the damage effect is a tuple for example [:damage [:phyiscal [5 10]]] I want to build a GUI where I want to be able to select for example damage-type :physical or :magic and so on. Or choose from the available :effects. Or for example give a :creature an item from list of items available.

valtteri07:08:26

There’s at least malli playground https://malli.io/ sources: https://github.com/metosin/malli.io

valtteri07:08:10

Not exactly what you’re looking for but maybe a starting point

mx200007:08:56

I want to build a GUI from schema for editing entities/components/etc

mx200007:08:22

Where user does not have to remember data schema

valtteri10:08:36

Yep, AFAIK there’s no ready-to-use malli compliant form-builder yet. We’ve been thinking about integrating malli with something like https://formik.org/ but nothing’s done yet.

mx200012:08:11

I was looking more for a desktop gui to set edn values.

mx200012:08:48

But I am using now an internal gui library of libgdx, which anyway not many people use outside of libgdx.

pithyless15:08:34

Have you considered a malli encode/decoder to CSV or XLS (and just using a spreadsheet editor)?

Chip00:09:43

@U05476190 Though he’s using standard schema (not malli), that’s what @U0E703ECU did and https://github.com/mlimotte/tryion/blob/63bcdebf4e6bfd3b87433e1c3ce0f5cde566578f/src/tryion/db/db.clj#L48 from a google sheet. It’s cool.