npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

atozas-subscription-account

v1.0.0

Published

A professional React subscription package with automatic account generation

Downloads

9

Readme

React Subscription Account Package

A professional React-based NPM package that provides automatic account generation and subscription management with a clean, modern UI.

Features

  • Automatic Account Generation: Automatically creates a payment account when installed
  • Account Button Component: Ready-to-use button component for navigation bars
  • Subscription Management: Multiple subscription periods with pricing calculation
  • 100% Discount Applied: All plans show 100% discount (Rs 0 net payment)
  • Professional UI: Clean, modern interface with smooth animations
  • TypeScript Support: Fully typed with TypeScript definitions
  • Zero Dependencies: Only requires React and React-DOM as peer dependencies

Installation

npm install atozas-subscription-account

or

yarn add atozas-subscription-account

Quick Start

Basic Usage

import React from 'react';
import { AccountButton } from 'atozas-subscription-account';
// Styles are included automatically, but you can import them explicitly if needed:
// import 'atozas-subscription-account/dist/index.css';

function App() {
  return (
    <div>
      <nav>
        <div>Logo</div>
        <AccountButton />
        <div>Menu</div>
      </nav>
    </div>
  );
}

Integration in Navigation Bar

To add the Account button in the middle of your top navigation bar:

import React from 'react';
import { AccountButton } from 'atozas-subscription-account';

function NavigationBar() {
  return (
    <nav style={{ 
      display: 'flex', 
      justifyContent: 'space-between', 
      alignItems: 'center',
      padding: '1rem 2rem',
      backgroundColor: '#fff',
      boxShadow: '0 2px 4px rgba(0,0,0,0.1)'
    }}>
      <div>Logo</div>
      <AccountButton />
      <div>Menu Items</div>
    </nav>
  );
}

Using CSS Grid for Centered Button

import React from 'react';
import { AccountButton } from 'atozas-subscription-account';

function NavigationBar() {
  return (
    <nav style={{ 
      display: 'grid',
      gridTemplateColumns: '1fr auto 1fr',
      alignItems: 'center',
      padding: '1rem 2rem'
    }}>
      <div style={{ justifySelf: 'start' }}>Logo</div>
      <AccountButton />
      <div style={{ justifySelf: 'end' }}>Menu</div>
    </nav>
  );
}

Subscription Plans

The package includes the following subscription periods:

  • Monthly (1 month) - Disabled
  • 3 Months - Disabled
  • 6 Months - Enabled (Default)
  • Yearly (12 months) - Disabled
  • 3 Years (36 months) - Disabled

Pricing

  • Monthly Price: Rs 5
  • Discount: 100% (applied to all plans)
  • Net Payment: Rs 0 (due to 100% discount)

API Reference

AccountButton

The main component exported by the package.

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | className | string | No | Additional CSS class names | | style | React.CSSProperties | No | Inline styles for the button |

Example

<AccountButton 
  className="my-custom-class"
  style={{ marginLeft: '10px' }}
/>

Account Generation

The package automatically generates a unique account ID when first loaded. The account is stored in localStorage and persists across page reloads.

  • Storage Key: react_subscription_account
  • Account ID Format: acc_{timestamp}_{randomString}

Styling

The package includes built-in styles, but you can customize the appearance using:

  1. CSS Classes: Override the default styles
  2. Inline Styles: Pass style prop to AccountButton
  3. CSS Variables: (Future enhancement)

Custom Styling Example

<AccountButton 
  style={{
    backgroundColor: '#your-color',
    borderRadius: '8px',
    padding: '12px 24px'
  }}
/>

TypeScript Support

The package is fully typed. Import types as needed:

import { AccountButton, SubscriptionPeriod, AccountData, SubscriptionPlan } from 'atozas-subscription-account';

Development

Building the Package

npm run build

Development Mode

npm run dev

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and feature requests, please use the GitHub issue tracker.