hzrd149's avatar
hzrd149
_@hzrd149.com
npub1ye5p...knpr
JavaScript developer working on some nostr stuff - noStrudel https://nostrudel.ninja - Blossom https://github.com/hzrd149/blossom - Applesauce https://hzrd149.github.io/applesauce
hzrd149's avatar
hzrd149 9 months ago
The only work I've done all day is running this prompt on Claude 4: Write documentation for X class and take inspiration from <insert other doc examples> Make sure it highlights how: - How to use <method> on X - How X and be used with Y - What configuration options X takes Then I take a few minutes to review the docs and fix the small errors it made ๐Ÿ˜
hzrd149's avatar
hzrd149 9 months ago
Claude-3.7-sonnet is better at writing docs than claude-3.5 I know I'm probably stating the obvious, but I wasn't sure if paying full price for the latest models was worth it
hzrd149's avatar
hzrd149 9 months ago
#asknostr does anyone have good resources on how to write CONTEXT.md files for claud and other agents? Id like to start writing these for applesauce and include them in some of the projects I'm working on Mostly looking for articles on how to think about context files or good examples of them working well.
hzrd149's avatar
hzrd149 9 months ago
Not sure why I built this but It was a fun mental exercise. A Tic-Tac-Toe game without any JavaScript, just checkboxes and CSS
hzrd149's avatar
hzrd149 9 months ago
SolidJS has so many useful looking ways to optimize the rendering cycle of your app. and the best part is none of it is hidden behind a compiler or in a magic box. If you want to build a simple app you just write it like your writing react, but if you want performance you start using all their fancy signals and hooks. If you cant tell I've been reading through their documentation again... :)
hzrd149's avatar
hzrd149 9 months ago
Almost finished with an example of a nostr mail client using NIP-17 and applesauce. and the best part is its only 250 lines long ๐Ÿ˜ image The best part is that the code that replies to a message is just a few lines and it handles creating NIP-59 gift wraps for each participant in the conversation image
hzrd149's avatar
hzrd149 9 months ago
Trying to make it as easy as possible for applesauce apps to provide a good user experience without spamming the signer for decryption requests. The solution is to use a locally encrypted cache of all the decryption results The persistEncryptedContent method takes an event store and a storage provider (something like localforge) and watches for when events are added and attempts to restore their encrypted content from cache. When events are decrypted it stores the content in the cache image
โ†‘