#devstr

Imagine you are a new to nostr dev looking to get started.

You see the nostr protocol repo, and are missing the galaxy brain dev context and lessons learned of the past two years.

What are the first couple questions that you ask?

Reply to this note

Please Login to reply.

Discussion

I tell Cursor to build me an example app and explain things to me.

But why?) The second thing I bumped into was somewhat like "Make Nostr requests without any client" 😇🍸

Do you have a wiki?

Can I store user-encrypted data that only my app will use? Which nip/kind should I be looking at?

Is there a SDK with some easy to customize demos?

Why is nip-57 specific to lnurl? Can it be updated to support bolt12? I can zap but can't get zapped back without setting up lnurl

What is an nsec?

How do I get one?

Ok, I have one, now how do I let my user sign these messages they're suppose to be able to send?

So they can just paste it into the browser? What prevents it from being stolen from a malicious client?

Is there an easy library that handles some of this stuff for me?

1. How do I get the simplest version of a nostr app working?

2. I get what relays do, how do I connect to one?

3. I see that most nostr events are this thing called "kind 1" events. How do I pull in a list of kind 1 events?

This is what I did, and it helped a lot. Once I had done 1, 2, and 3 it was a big unlock in my brain to understand where to go from there.

the most unusual thing to me is the way the parameters are named: single letters that can mean different things depending the nip. it's a very confusing API at first look

I'm actually in this boat for the last two weeks. Here's some more questions I've had as I'm learning.

1) Has anyone built a minimum viable client in the language/framework I'm familiar with that I can look at, modify, and use as a basis to get me started with?

2) Is there a minimum viable relays I can run that handles and stores events so I can play in my own sandbox without spamming other peoples relays?

3) What's the minimum info I need to fetch and write a note?

4) How do I fetch all notes?

5) How do I fetch a specific note?

6) Can I apply filters to only fetch certain notes?

7) Can I add extra data to note without breaking the protocol? What are best practices?

8) Why does everything seem to be arrays instead of objects?