Claps screenshot

Claps

Author Avatar Theme by Upstash
Updated: 30 Jan 2025
118 Stars

Adds clap button (like medium) to any page for your Next.js apps.

Categories

Overview:

The @upstash/claps project is a community project maintained and supported by the community, with potential contributions from Upstash without assuming official support or responsibility. It allows users to add a claps button similar to Medium on any page for Next.js apps. The project is completely serverless, eliminating the need for maintenance. Users can create a free Redis database at Upstash Console to store data and messaging using Upstash Redis pub/sub.

Features:

  • Claps Button: Add a claps button to any page in Next.js apps.
  • Serverless: Completely serverless operation.
  • Database Integration: Create a free Redis database at Upstash Console for data storage.
  • Environment Variables: Set up environment variables for configuration.
  • Customizable Options: Pass options as React props for customization.
  • Support: Utilize Upstash Discord channel for assistance.

Installation:

  1. Create Database: Set up a free Redis database at Upstash Console for data storage and messaging.
  2. Environment Variables: Copy the .env.local.example file to .env.local and include UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN from the database details page.
  3. Install Package: Install the @upstash/claps package.
  4. Import CSS: Import the required CSS for styling.
  5. Import Components: Import the components needed, and pass options as React props for customization.
  6. Create API Support: For any assistance, use the Upstash Discord channel.

Summary:

The @upstash/claps project offers a convenient solution for adding a claps button to Next.js apps, providing a serverless and customizable option for users. By integrating with Upstash Redis for data storage, users can easily implement this feature with minimal maintenance. The community-based support model and clear installation steps make it a valuable asset for developers seeking to enhance user engagement on their web pages.