🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@rlse/widget

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rlse/widget

React release notes widget for rlse.dev

npmnpm
Version
0.1.3
Version published
Weekly downloads
46
-2.13%
Maintainers
1
Weekly downloads
 
Created
Source

@rlse/widget

React component for embedding rlse.dev release notes directly in your application.

npm Socket Badge

Features

  • Smart triggers: Manual button, auto-popup on new releases, or both
  • Unread badge: Shows count of unseen changes
  • App filtering: Show changes for a specific application or all
  • Theming: Light, dark, or auto (follows system preference)
  • Customizable: Position, colors, labels, and more

Installation

npm install @rlse/widget

Quick Start

import { RlseWidget } from '@rlse/widget';

function App() {
  return (
    <>
      <YourApp />
      <RlseWidget orgSlug="your-org-slug" />
    </>
  );
}

Configuration

Required

OptionTypeDescription
orgSlugstringYour organization slug from rlse.dev

Optional

OptionTypeDefaultDescription
appSlugstringFilter to a specific application
trigger'auto' | 'manual' | 'both''manual'How the widget opens
position'bottom-right' | 'bottom-left' | 'top-right' | 'top-left''bottom-right'Button position
theme'light' | 'dark' | 'auto''auto'Color theme
limitnumber10Max changes to display
triggerLabelstring"What's New"Button text
modalTitlestring"Release Notes"Modal header
primaryColorstring#3b82f6Accent color (hex)
autoShowAfternumber7Days before auto-popup triggers again

Full Example

<RlseWidget
  orgSlug="acme-corp"
  appSlug="dashboard"
  trigger="both"
  position="bottom-right"
  theme="auto"
  limit={5}
  triggerLabel="🎁 What's New"
  modalTitle="Acme Release Notes"
  primaryColor="#10b981"
  autoShowAfter={3}
/>

Trigger Modes

  • manual — Floating button always visible; click to open. Unread badge shows unseen count.
  • auto — No button; modal auto-opens on first visit after new releases, respecting autoShowAfter.
  • both — Floating button plus auto-popup on new releases.

How "New" Tracking Works

The widget uses browser localStorage to track seen changes — no backend or login required.

  • Key: rlse_widget_{orgSlug}_seen
  • Value: Array of seen change IDs
  • Per-device tracking (phone and laptop tracked independently)

Styling

Use primaryColor to match your brand:

<RlseWidget orgSlug="acme-corp" primaryColor="#ff6b6b" />

Troubleshooting

Widget not appearing

  • Verify orgSlug is correct
  • Ensure your organization has published public changes
  • Check the browser console for errors

Auto-popup not triggering

  • Open DevTools → Application → Local Storage
  • Clear rlse_widget_* keys to reset seen state
  • Verify autoShowAfter is set as expected

Security

  • Only public changes are surfaced — no authentication required
  • localStorage data stays entirely client-side
  • CORS headers restrict the widget API to read-only operations

Support

Keywords

release-notes

FAQs

Package last updated on 04 Jun 2026

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