Skip to content

Commit

Permalink
Merge pull request #24 from believethehype/master
Browse files Browse the repository at this point in the history
add 5303, search profiles
  • Loading branch information
believethehype authored May 2, 2024
2 parents fbac549 + a54bf02 commit f4abc44
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
50 changes: 50 additions & 0 deletions kinds/5303.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
layout: default
title: Nostr People Search
description: Job to search for profiles based on a prompt
---

# Input
Text to be included in the search

# Output

A `content` JSON-stringified list of tags. Tags SHOULD be `p`.

# Params

* `max_results`: Maximum number of events to return (Optional parameter)

# How clients can use this

Clients can ask a Search DVM to return profiles based on certain filters.


# Example

#### Request
```json
{
"content": "",

"kind": 5303,
"tags":
[
[ "i", "Jack", "text" ],
["param","max_results","500"]
]
}
```

#### Response
```json
{
"kind": 6303,
"content": '
[ "p", "<...>" ],
[ "p", "<...>" ],
[ "p", "<...>" ],
[ "p", "<...>" ]
'
}
```
4 changes: 4 additions & 0 deletions ranges/53xx.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ grid_navigation:
excerpt: "Used to search for notes. Kind 5302"
cta: View
url: '/kinds/5302'
- title: Nostr People Search
excerpt: "Used to search for profiles. Kind 5303"
cta: View
url: '/kinds/5303'
---

0 comments on commit f4abc44

Please sign in to comment.