Does anybody else use #yaml for events?

I use it to allow people to manually edit event properties and arrays, but it also seems like a nice format for displaying events raw. Json is such gobbledygook.

Reply to this note

Please Login to reply.

Discussion

Nobody?

😬

I'm stuck in Javascript hell, aren't I?

Ma'am, you _are_ on Nostr. Nostr is where JS projects get sent when they've been bad.

Awful “language”

But but my whitespace 😭

Yaml is my favorite too. The protocol defines events like json though right?

Yeah. #OnlyJson

Unfortunately it wouldn't make sense to change the protocol and force devs to support both JSON and YAML.

Yeah, but yaml is a superset of json, so you can always transform between the two, locally. Just can't expect relays to use it.

A client could do that. It adds a translation layer, which has tradeoffs, and whether those are worth it is up to the dev.

The problem is yaml is all string values. So one direction is easier/faster than the other. I do it, but nothing mission critical, just for readability purposes.

Yeah.

#toml camp