Damus

Recent Notes

MichaelJ profile picture
Are you basing the query structure off of an existing query language, or making a new one whole-cloth to fit with the Nostr filter standard?

This proposal converges with the ideas I was toying with; I could see it becoming a good standard to build against.
MichaelJ profile picture
#nostrdev Has anyone built a relay around a graph database? Is there an appetite for such a thing?
MichaelJ profile picture
Yeah initial WASM downloads are a kicker; though once you cache the download (like with a Service Worker) it should be a one-and-done thing.

I've been seeing SQLite+WASM-powered web apps and web apps boosted by the local relay tray as two sides of the "edge".

Bring compute and storage down to the end-user's device either ad hoc with WASM in the browser or more intentionally by asking them to download an app. Either way it decentralizes compute almost as far as possible.
MichaelJ profile picture
Especially the package management. Use Bun as a package manager and Node as the production runtime and you still get a vastly better DX than NPM.
MichaelJ profile picture
Bun is straight ๐Ÿ”ฅ

Some benchmarks put its performance within spitting distance of garbage-collected languages like Java, C#, and Go. For a JS/TS runtime, that's really impressive.
MichaelJ profile picture
I'd be curious to see performance benchmarks between IndexedDB and SQLite WASM.

You'll have to use shared workers pretty heavily, but that gives true parallel processing across tabs, rather than just concurrent work on a single OS thread.
MichaelJ profile picture
Yeah I don't expect they'll try to compete directly with AWS or Azure or GCP. If anything, they'll host workloads on Azure, since they recently inked a deal for billions in Azure compute.

The business model I'm thinking of is more like Deno Deploy. Runtime + serverless hosting model + (in Anthropic's case) first-class integration with Claude APIs.

There are innumerable VC-backed startups that would pay for such a service that gets their ideas up and running that much faster.
MichaelJ profile picture
With its acquisition of Bun, I believe Anthropic is setting itself up to become a vertically-integrated cloud hosting and web services platform for AI-powered apps.

Just training and providing LLMs isn't profitable. Big players like Google can swallow the costs without blinking, but new players like OpenAI and Anthropic have to pivot to providing services to balance their books.

https://bun.com/blog/bun-joins-anthropic
MichaelJ profile picture
Planning to use service workers in the browser?

Also, are you thinking one connection per relay? Most Nostr apps use multiple relays simultaneously. How will it handle deduplication on multiple overlapping data streams from different relays?
MichaelJ profile picture
Few yet understand this, but #Alexandria, in principle, makes every publication following the NIP-62 format uniquely addressable online.

If I provide you the Alexandria URL for a publication, you can verify its authenticity by confirming that the publication's Nostr event was signed by the entity that has the rights to publish it. This cryptographic identity cannot be faked. If changes are introduced, such as by the publication of a new edition, this too can be verified using Nostr identities.

It's like every possible publication that could be created has a street address, and you can go knock on the door and see for yourself that the person who is supposed to live there is indeed the person who answers the door.

We've not yet scratched the surface of the impact this new reality will have.