🛜Farcaster Hubs

Learn how Airstack automatically configures hubs for you and how you can add custom hubs configuration, as needed.

In Airstack Frog Recipes, Airstack Hubs is the default option available if you don't set anything to the hub field. All you need to provide in your new Frog instance will be the Airstack API key:

import { Frog } from "@airstack/frog";

export const app = new Frog({
  apiKey: process.env.AIRSTACK_API_KEY as string,
});

You can also add custom Hub URL and additional headers for API keys:

import { Frog } from "@airstack/frog";
 
const app = new Frog({
  hub: {
    apiUrl: "CUSTOM_HUBS_URL",
    fetchOptions: {
      headers: {
        // API keys
      }
    }
  }
});

Otherwise, Frog also has some pre-configured hubs that you can choose for your hub configuration:

Developer Support

If you have any questions or need help regarding Farcaster Hubs configuration for your Airstack Frog Recipe, please join our Airstack's Telegram group.

More Resources

Last updated

Was this helpful?

#946:

Change request updated