Complete beginner’s guide to building on Farcaster with Neynar. Learn the fundamentals of Farcaster protocol, get your API key, understand core concepts like FIDs and casts, and start developing decentralized social applications with comprehensive tutorials and examples.
nodejs
SDK is an easy way to use the APIs. This section must only be done once when setting up the SDK for the first time.
To install the Neynar TypeScript SDK:
index.ts
:
type
field in package.json. Since we’re using ES6 modules, you may need to set it to “module”.tsconfig.json
file in the directory to help with typescript compilationfid
of the user in the fetchFeed
function and get a feed in response.
In this example, we will fetch the feed for Dan Romero . This is the feed Dan would see if he were to log into a client that showed a feed from people he followed in a reverse chronological order.