Overview
If your app doesn’t have a backend, if you’re already using Neynar, or if you would rather use a hosted solution instead of implementing notification logic in your backend, we recommend using Neynar for notifications. Neynar is an infrastructure platform for building mini apps on Base. Neynar’s solution allows you to:- Manage notification infrastructure (tokens, permissions, batching) in a single UI
- Send via API or Neynar developer portal UI—no code required
- Track notification performance with built-in analytics
- Target specific user cohorts with advanced segmentation
Prerequisites
- A Base App account
- A mini app with the Farcaster SDK implemented
- Neynar developer account — sign up for free here
Enable Notifications
1
Set up Notifications on Neynar
The Neynar mini app events webhook URL is on the Neynar app page.Navigate to dev.neynar.com/app and then click on the app.Copy the url under Mini app Notifications.

2
Add Webhook URL to Manifest
Paste the url you copied from the Mini app Notifications field in the step above into the
webhookUrl
field in the miniapp
object inside your manifest.Here’s an example manifest with the updated webhookUrl
field:Caching: The Base App might have your mini app manifest cached. To make sure all changes have taken effect, repost your application to the Base App.
Test your Mini App in Base Build using the Preview tool. Once signed in, paste your app’s URL in the
App URL
field and click the Submit
button.Prompt Users to Add Your App
To send notifications to users, they must first add your app.1
Install the Neynar React package
terminal
2
Prompt users to add your Mini App
Use the
addMiniApp()
hook to prompt users to add your Mini App.Neynar will manage all notification events which tell your app when a user has enabled or disabled notifications for your mini app.To confirm that the mini app was added and notifications were enabled, check result.added
is true and result.notificationDetails
is a valid object.app/page.tsx
Send Notifications to Users
Neynar makes it easy to send notifications to all users who have enabled notifications or to a subset based on filter criteria you define.Option 1: API
You can programmatically send notifications using the Neynar API. This gives you full control over targeting and filtering users.1
Install the Neynar Node.js SDK
Install the @neynar/nodejs-sdk package:
2
Create a notification sending function
Create a reusable function to send notifications with targeting and filtering capabilities:
lib/sendNotification.js
3
Send notifications
Use the function to broadcast notifications with advanced filtering criteria:
sendNotificationsAdvanced.ts
The
target_fids
parameter is the starting point for all filtering. Pass an empty array to target all users with notifications enabled, or specify FIDs to target specific users.Option 2: Neynar UI
The Neynar dev portal offers the same functionality as the API for broadcasting notifications. Navigate to your app and click the “Mini App” tab. Once your mini app is configured with your Neynar webhook URL and users have enabled notifications for your mini app, you’ll see a “Broadcast Notification” section with an expandable filters section.1
Log in to the Neynar Dev Portal
2
Select your target App

3
Navigate to Mini App tab

4
Fill in Notification details

The
target_fids
parameter is the starting point for all filtering. Pass an empty array for target_fids
to start with the set of all FIDs with notifications enabled for your app, or manually define target_fids
to list specific FIDs.5
Click the Broadcast button
Once you have filled in the notification details and applied any filtering, broadcast your notification by clicking the broadcast button at the bottom of the page.