Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rss3-network/dsl-sdk-demo
RSS3 DSL SDK Demo in `hono.js`
https://github.com/rss3-network/dsl-sdk-demo
Last synced: 23 days ago
JSON representation
RSS3 DSL SDK Demo in `hono.js`
- Host: GitHub
- URL: https://github.com/rss3-network/dsl-sdk-demo
- Owner: RSS3-Network
- Created: 2024-10-05T11:20:02.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-05T11:23:35.000Z (3 months ago)
- Last Synced: 2024-11-24T20:47:03.024Z (28 days ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RSS3 DSL SDK Demo
## Init hono project
```bash
npm create hono@latest
```## Install @rss3/sdk
```bash
cd rss3-dsl-demo
npm install @rss3/sdk
```## Run project
```bash
npm run dev
```## Modify src/index.js logic
```js
//...keep other imports
import { getActivities } from '@rss3/sdk'// Modify logics here
app.get('/', async (c) => {
const socialActivities = await getActivities({
account: "vitalik.eth",
tag: ["social"],
type: ["comment"],
platform: ["Farcaster"],
limit: 3,
});
return c.json(socialActivities)
})// ...keep other logics
```## Invoke api
```bash
curl 'http://localhost:3000'
```