Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@indiebacklink/react

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@indiebacklink/react

This is a React component for [IndieBacklink.com](https://indiebacklink.com) to help you list other indie products on your site and earn money from them.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
70
increased by2233.33%
Maintainers
0
Weekly downloads
 
Created
Source

This is a React component for IndieBacklink.com to help you list other indie products on your site and earn money from them.

Instructions

Install the package

npm i @indiebacklink/react

Use the component

  1. Create a new boosting channel on IndieBacklink.com and get your id (tracking ID).

  2. Import the CSS in your Next.js _app.js or _app.tsx file:

import "@indiebacklink/react/indiebacklink.css";
  1. Use the component in your app:
import { IndieBacklink } from "@indiebacklink/react";

const YourComponent = () => {
  return <IndieBacklink id="your-tracking-id" />;
};

export default YourComponent;

Props

Required props:

  • id: The tracking ID of your boosting channel.

Optional props:

  • className: Custom CSS class for the container.
  • noBorder: If true, removes the border around the component.
  • noShadow: If true, removes the shadow effect.
  • noTitle: If true, hides the title.
  • openSelf: If true, opens links in the same tab.
  • theme: Color theme, either light (default) or dark.
  • title: Custom title for the component (default: "Top products").
  • maxProducts: Maximum number of products to display (default: 3, max: 10).
  • maxColumns: Maximum number of columns to display (default: 3).
  • direction: Layout direction, either horizontal (default) or vertical.
  • permanent: If true, the products will be displayed permanently (life-time).
  • owned: If true, the products will be displayed as owned by the current channel's user.
  • debug: If true, enables debug mode with additional console logging.

Examples

<IndieBacklink id="TRACKINGID" maxProducts={5} direction="vertical" permanent />

Development

Installation

You can install it with npm (don't expect much fanciness):

npm i
# or
bun i

Development

npm run dev
# or
bun run dev

Build

npm run build
# or
bun run build

Publish

  • Push to main to trigger a release.

Credits

  • This repository was created by @mrgoonie.
  • 👉 Follow me on X.

FAQs

Package last updated on 26 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc