Skip to content

RSS3-Network/DSL-SDK-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS3 DSL SDK Demo

Init hono project

npm create hono@latest

Install @rss3/sdk

cd rss3-dsl-demo
npm install @rss3/sdk

Run project

npm run dev

Modify src/index.js logic

//...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

curl 'http://localhost:3000'

About

RSS3 DSL SDK Demo in `hono.js`

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published