Alex Gleason 🐍🚬 on Nostr: Is Nos a pure client or does it have a server? The client I'm building is a hybrid ...
Is Nos a pure client or does it have a server?
The client I'm building is a hybrid client/server. I am working on an anti-spam system where I treat users of my client differently from users on the network.
Users on the network need a valid NIP-05, or need to be in the web-of-trust of some configured account (Jack Dorsey currently, but it's configurable) in order to post. The WoT thing is primitive, but I can envision ways to improve it. Look how small the code is:
https://gitlab.com/soapbox-pub/nostrify/-/blob/main/packages/policies/WoTPolicy.ts?ref_type=headsFor users of my own client, I'm building a captcha served by my server. When they solve the captcha, my server will publish an event saying they solved the captcha. Then any client which trust my server (including my own client) can query that event to decide whether to let the user post.
Published at
2024-10-03 16:50:05Event JSON
{
"id": "7749ac124e88b7a8014cee6243d672967439d54a75cea13f7ff5814fbd941e43",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1727974205,
"kind": 1,
"tags": [
[
"e",
"f9d5ac46eee692c72d0868b470ef2fe6d8787a887c705d28d2b33436840fb4a7",
"wss://gleasonator.dev/relay",
"root",
"969e6a28ee5214cb0296ee69cbdce4f43229124a78b1043d85df31e5636d0f1f"
],
[
"e",
"bf2e83df04af83b717dbb689855dd8de937a77c8934640e17413e1db01c0c8ef",
"wss://gleasonator.dev/relay",
"reply",
"89ef92b9ebe6dc1e4ea398f6477f227e95429627b0a33dc89b640e137b256be5"
],
[
"p",
"89ef92b9ebe6dc1e4ea398f6477f227e95429627b0a33dc89b640e137b256be5",
"wss://gleasonator.dev/relay"
],
[
"r",
"https://gitlab.com/soapbox-pub/nostrify/-/blob/main/packages/policies/WoTPolicy.ts?ref_type=heads"
]
],
"content": "Is Nos a pure client or does it have a server?\n\nThe client I'm building is a hybrid client/server. I am working on an anti-spam system where I treat users of my client differently from users on the network.\n\nUsers on the network need a valid NIP-05, or need to be in the web-of-trust of some configured account (Jack Dorsey currently, but it's configurable) in order to post. The WoT thing is primitive, but I can envision ways to improve it. Look how small the code is: https://gitlab.com/soapbox-pub/nostrify/-/blob/main/packages/policies/WoTPolicy.ts?ref_type=heads\n\nFor users of my own client, I'm building a captcha served by my server. When they solve the captcha, my server will publish an event saying they solved the captcha. Then any client which trust my server (including my own client) can query that event to decide whether to let the user post.",
"sig": "9ac681d3e2ccfb4641ec76a46f5195233a223a94a63a7518b768697728d8ccfcda75a84580b2e09f06317f92aa6f58e78ed529abb7b173f0d4f1448206b1a969"
}