A unified Typescript API for Farcaster Data
You need to get Farcaster data and need to read all API documentations and even more. Farcasterkit solves this by offering a one stop library that exposes a unified API so you don’t need to worry about different implementations (think viem/ethers.js providers but for Farcaster).
npm install @dtechvision/farcasterkit
If you offer data APIs that you’d wish to be included please refer to Contributing - Adding Providers
Have a look at src/providers/thirdpartyProvider.ts
which is a template for adding new Providers.
Then register your Provider class with a nameProvider.ts
file in src/providers/thirdparty/
with creation of your class.
your file needs to export a Provider that extens the ThirdPartyProvider like the following code sample
export class NameProvider extends ThirdParty {
// add constructor to init your values
// like an API key etc ...
}