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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@goldenhippo/gh-elements

v1.1.2

Published

A standalone Angular component library for Hippo Funnel

Readme

GH Elements - Angular Component Library

A standalone Angular component library for embedding Vidalytics videos and displaying terms and conditions in your Angular applications.

Installation

npm install @goldenhippo/gh-elements

Components

Vidalytics Component

  1. Import the component in your Angular module or standalone component:
import { VidalyticsComponent } from '@goldenhippo/gh-elements';

@Component({
  standalone: true,
  imports: [VidalyticsComponent],
  // ... other component metadata
})
  1. Use the component in your template:
<element-vidalytics
  [vidalyticsEmbedId]="'your_video_id'"
  [desktopTime]="940"
  [mobileTime]="120"
  [testButton]="false"
  [elementClass]="'your-custom-class'"
  [videoPlayerClass]="'your-player-class'"
  [elementStyle]="{ 'width': '100%', 'height': 'auto' }"
  [videoPlayerStyle]="{ 'width': '100%', 'height': 'auto' }">
</element-vidalytics>

Vidalytics Input Properties

| Property | Type | Required | Default | Description | |----------|------|----------|---------|-------------| | vidalyticsEmbedId | string | Yes | - | The ID of your Vidalytics video | | desktopTime | number | No | 940 | Time in seconds for desktop view | | mobileTime | number | No | 120 | Time in seconds for mobile view | | testButton | boolean | No | false | Whether to show test button | | elementClass | string | No | - | Custom class for the container | | videoPlayerClass | string | No | - | Custom class for the video player | | elementStyle | object | No | - | Custom styles for the container | | videoPlayerStyle | object | No | - | Custom styles for the video player |

Terms and Conditions Component

  1. Import the component in your Angular module or standalone component:
import { TermsAndConditionsComponent } from '@goldenhippo/gh-elements';

@Component({
  standalone: true,
  imports: [TermsAndConditionsComponent],
  // ... other component metadata
})
  1. Use the component in your template:
<element-terms-and-conditions
  [elementClass]="'terms-and-conditions-container'"
  [contentClass]="'terms-and-conditions-content'"
  [elementStyle]="{ 'max-width': '800px', 'margin': '0 auto' }"
  [contentStyle]="{ 'font-size': '14px', 'line-height': '1.6' }"
  [customContent]="'Your custom terms content here'"
  [isSubscription]="true"
  [termsLink]="'/terms'"
  [privacyLink]="'/privacy'"
  [subscriptionTermsLink]="'/subscription-terms'"
  [isPurchaseAvailable]="true"
  [subscriptionPageLink]="'/subscription'"
  [supportEmail]="'[email protected]'"
  [subscriptionPrice]="29.99"
  [offerPrice]="19.99">
</element-terms-and-conditions>

Terms and Conditions Input Properties

| Property | Type | Required | Default | Description | |----------|------|----------|---------|-------------| | elementClass | string | No | 'terms-and-conditions-container' | Custom class for the container | | elementStyle | object | No | {} | Optional styles for the container | | contentClass | string | No | 'terms-and-conditions-content' | Optional class for the content | | contentStyle | object | No | {} | Optional styles for the content | | customContent | string | No | - | Custom terms and conditions content | | template | string | No | 'defaultTemplate' | The template name to use | | isSubscription | boolean | No | false | Whether this is for a subscription | | termsLink | string | Yes | - | Link to the terms and conditions | | privacyLink | string | Yes | - | Link to the privacy policy | | subscriptionTermsLink | string | No | - | Link to the subscription terms (required if isSubscription is true) | | isPurchaseAvailable | boolean | No | true | Whether purchase is available | | subscriptionPageLink | string | Yes | - | Link to the subscription page | | supportEmail | string | Yes | - | Support email address | | subscriptionPrice | number | No | - | Subscription price | | offerPrice | number | No | - | Offer price |

Compatibility

This package is compatible with Angular versions 15 through 19.

Development

Building the Library

npm run build:lib

Running Tests

npm test

Storybook

To view the components in Storybook:

npm run storybook

License

MIT

Repository

GitHub Repository