Login to reply
Replies (10)
cc nostr:nprofile1qyfhwue69uhhyetvv9uju6nzx56jucm0d5qs6amnwvaz7tmwdaejumr0dsqzqvhpsfmr23gwhv795lgjc8uw0v44z3pe4sg2vlh08k0an3wx3cj96l2ln2 nostr:nprofile1qyg8wumn8ghj7vf5xqhxvdm69e5k7qgnwaehxw309askcem09e6hg7r09ehkuegqyqt48rwz5cnkn5y5g0cccd7tudv04ddmlxq3wd2z4f79lut3a4mugk5wnhu nostr:nprofile1qyvhwumn8ghj76rzwghxxmmjv93kcefwwdhkx6tpdshszrnhwden5te0dehhxtnvdakz7qpqjlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qy09qsr nostr:nprofile1qy28wue69uhnzv3h9cczuvpwxyargwpk8yhsz3rhwvaz7tmed3c8qarfxaj8s6mrw96kvef5dve8wdrsvve8vvehwamxx7rnwejnw6n0d3axu6t3w93kg7tfwechqutvv5ekc6ty9ehku6t0dchsqgrwg6zz9hahfftnsup23q3mnv5pdz46hpj4l2ktdpfu6rhpthhwjv0us2s2 nostr:nprofile1qyxhwumn8ghj7e3h0ghxjme0qyd8wumn8ghj7urewfsk66ty9enxjct5dfskvtnrdakj7qpql2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqta478g nostr:nprofile1qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcpzemhxue69uhku6t9dshxummnw3erztnrdakj7qpq49p5act9a5qm9p47elp8w8h3wpwn2d7s2xecw2ygnrxqp4wgsklq3hga3p nostr:nprofile1qyt8wumn8ghj7mn0wd68yetvd96x2uewdaexwtcpzamhxue69uhhyetvv9ujumn0wd68ytnzv9hxgtcqypqtnjzlll40c89dlrps5nju3pnqlahyjudqm3er6k4kwj67vx69z22meen nostr:nprofile1qyx8wumn8ghj7cnjvghxjmcpz4mhxue69uhk2er9dchxummnw3ezumrpdejqqgq3hx5fgpxm7vp5ulscs6afm3xx6dm0ywdprqn3h5hv2eag3xzsecaq8aww nostr:nprofile1qywhwumn8ghj7mr4de3kscn00qh8xctwv3mkjcmg9enxzund9uqsuamnwvaz7tmwdaejumr0dshsqg88wxhskpwga90umah7kdgq23xjlvwv6wz83r5lfy9m8m3garkkduy3ntru (and thank you to nostr:nprofile1qythwumn8ghj7ct5d3shxtnwdaehgu3wd3skuep0qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcqypu8xwr40lp96ewdj2fef408wy70gd3carf9n6xu7hrnhq6whpgly925h0z for supporting this work!)
what mad science is this
magic! ✨
The science of divs
Awesome
Wow, this is seriously cool! It's amazing that you're using ContextVM for this. I remember the first time I saw that powerful addone tool 🥹
I have a couple of questions.
Is it true that the JSON object of a hypernote is agnostic to the code and the libraries rendering it? Is there a specification with guidelines on how to translate hypernote syntax?
Also, I noticed that for tool usage, there is a field 'tool_call' set to true. Is that because this action is also responsible for handling the response?
Anyway, awesome! 🔥🔥
this is so cool. i finally get hypernotes now. i really didn't understand what it was when I saw it last year
nostr:nevent1qvzqqqqqqypzqrtvswydevzfhrw5ljxnmrpmhy778k5sh2pguncfezks7dry3z3nqyghwumn8ghj7vf5xqhxvdm69e5k7tcpr3mhxue69uhkx6rjd9ehgurfd3kzumn0wd68yvfwvdhk6tcqyq6zkvtcnhkel2nqyhyr0mptc6efufyuhx470mad8exe8ygnvk57wsp628l
Can't wait to play around with this. ⚡
nostr:nevent1qqsrg2e30zw7m8a2vqjusdlv90rt983ynju6hel045lymyu3zdj6necpz4mhxue69uhkummnw3ezummcw3ezuer9wchsygqddjpc3h9sfxud6n7g60vv8wunmc76jzag9rj0p8y26re5vjy2xvpsgqqqqqqs5npr25
it's HNMD (hypernote md, my special language for writing hypernotes -> hypernote (defined in OUTPUT.json but might be outdated somewhat) -> renderer.tsx (take in the json, wire up the queries and event creators, render with a big switch statement on the different elements)
the goal is to make the renderer as simple and foolproof possible because that's what clients will have to implement. if you have a good way to create nostr events and subscribe to filters, you have most of the "logic" solved. and then rendering is pretty simple, a strict subset of web ui basically that should be expressible in most ui frameworks.
right now "tool_call" is a special case that I'm working to eliminate so I'm just generic and people can do whatever (needed to figure out "dependent" event creation basically... watch for something tagged with the eventid of what you just published, and act on THAT)
Ideally this will soon be in a good way to make fun little UIs for any contextvm tools out there!
> Ideally this will soon be in a good way to make fun little UIs for any contextvm tools out there!
Yes, that sounds amazing! You could also take the inverted approach: from a contextVM server, see what hypernotes use it. I think it's going to be a lot of fun exploring these ideas.
Regarding the wire up, do you already have a specification for the HN JSON output? Additionally, do you think it would be worthwhile to add a registry of supported UI elements? This could help avoid naming convention issues and assist other developers in adhering to a common set of UI elements