Basic Twitter API methods for fetching users, tweets, and searching recent tweets. Includes support for plan-aware rate-limiting. Uses Nango for OAuth support.

  • package: @agentic/twitter
  • exports: class TwitterClient, namespace twitter
  • env vars: TWITTER_API_KEY, TWITTER_API_PLAN
  • source
  • twitter api docs

Install

Usage

import { TwitterClient } from '@agentic/twitter'

const twitter = new TwitterClient()
const res = await twitter.createTweet({
  text: 'hello, world'
})