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

website-common-page

v1.0.2

Published

Common website pages components, such as terms of service, privacy policy, and contact us.

Readme

Website Common Page

This package provides common website page components such as Terms of Service, Privacy Policy, Cookie Policy, and Contact Us pages. These components can be easily integrated into any React application.

Installation

npm install website-common-page
# or
yarn add website-common-page

Usage

Terms of Service

import { TermsOfService } from "website-common-page";

function App() {
  return (
    <TermsOfService
      companyName="Your Company Name"
      websiteUrl="https://yourwebsite.com"
      lastUpdated="2025-03-12" // Optional, defaults to current date
    />
  );
}

Privacy Policy

import { PrivacyPolicy } from "website-common-page";

function App() {
  return (
    <PrivacyPolicy
      companyName="Your Company Name"
      websiteUrl="https://yourwebsite.com"
      contactEmail="[email protected]" // Optional
      lastUpdated="2025-03-12" // Optional, defaults to current date
    />
  );
}

Cookie Policy

import { CookiePolicy } from "website-common-page";

function App() {
  return (
    <CookiePolicy
      companyName="Your Company Name"
      websiteUrl="https://yourwebsite.com"
      lastUpdated="2025-03-12" // Optional, defaults to current date
    />
  );
}

Contact Us

import { ContactUs } from "website-common-page";

function App() {
  return (
    <ContactUs
      companyName="Your Company Name"
      address="Your Company Address" // Optional
      contactEmail="[email protected]" // Optional
      contactPhone="+1234567890" // Optional
    />
  );
}

Custom Content

All components support fully custom content via the customContent prop:

import { TermsOfService } from "website-common-page";

function App() {
  return (
    <TermsOfService
      companyName="Your Company Name"
      websiteUrl="https://yourwebsite.com"
      customContent={
        <div>
          <h2>Fully Custom Terms of Service Content</h2>
          <p>Here is your custom content...</p>
        </div>
      }
    />
  );
}

Styling

All components accept a className prop that allows you to apply custom styles:

import { PrivacyPolicy } from "website-common-page";
import "./custom-styles.css";

function App() {
  return (
    <PrivacyPolicy
      companyName="Your Company Name"
      websiteUrl="https://yourwebsite.com"
      className="my-custom-style"
    />
  );
}

Props

All components share the following common props:

| Prop | Type | Required | Description | | ------------- | --------- | -------- | ------------------------------------------- | | companyName | string | Yes | Company name | | websiteUrl | string | Yes | Company website URL | | address | string | No | Company address | | contactEmail | string | No | Contact email | | contactPhone | string | No | Contact phone number | | lastUpdated | string | No | Last updated date, defaults to current date | | className | string | No | Custom CSS class name | | customContent | ReactNode | No | Fully custom content |

License

MIT