asheswook on Nostr: I tried it out directly in a project and it seemed good, so I published it to npm. ...
I tried it out directly in a project and it seemed good, so I published it to npm.
When implementing a repository/API client, you don't have to create a bunch of interfaces or type guards, and since you no longer need to do ‘as’ casting, errors are reduced as well. In fact, the amount of implementation code has decreased significantly.
If you're interested, take a look! It's zero dependency and really easy to use.
https://github.com/asheswook/valdex
Published at
2025-12-19 07:18:53 UTCEvent JSON
{
"id": "28f4c275c6aa29b39e3bc19f3409bd3b97b9c3595d81a12dea5f969cb9c4477b",
"pubkey": "9a3c2bb5ec3d18a69301e698c88e1b485d07b8bd62b6a57c2c367f716abf55df",
"created_at": 1766128733,
"kind": 1,
"tags": [],
"content": "I tried it out directly in a project and it seemed good, so I published it to npm.\nWhen implementing a repository/API client, you don't have to create a bunch of interfaces or type guards, and since you no longer need to do ‘as’ casting, errors are reduced as well. In fact, the amount of implementation code has decreased significantly.\nIf you're interested, take a look! It's zero dependency and really easy to use.\n\nhttps://github.com/asheswook/valdex\nhttps://blossom.primal.net/023d91586823f35d6100eab07071e0be5cc19b16d655391bbff9c3404e38c09f.jpg",
"sig": "53de535527de5f592c73fde021afa8f3ebc89eb001c8628ccbf2033a3e752593db4459763e8ce39216f478b68d55e15dc0930dec89c20fd247166f487b276a6b"
}