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

@berlitz/location-single

v5.4.1

Published

LocationSingle component for the Max Design System

Downloads

2,090

Readme

LocationSingle npm version

Location Single Template comes with a featured card showcasing an image, heading, contact field, address fields and opening hours. A Google maps section is then presented revealing the location, and followed up with a call to action section with text area content.

Installation

yarn add @berlitz/location-single

Props

| Argument | Type | Required | Default | Example | | ------------------- | ------------ | -------- | ------- | ---------- | | featuredCardSection | object | ✅ | {} | View Below | | mapSection | object | ✅ | {} | View Below | | contentSection | object | ✅ | {} | View Below |

const featuredCardSection = {
  heading: `Awesome Language Center`,
  image: {
    url: 'https://picsum.photos/1280/720/?random',
    description: 'random image',
  },
  nonPhysicalLocation: false,
  nonPhysicalLocationDescription: 'Awesome Language Center Description',
  email: '[email protected]',
  phone: '623-207-7801',
  addressLineOne: '420 Blaze It, Street',
  addressLineTwo: 'Perth AU 6000',
  classroomHours: [
    { day: 'Monday - Friday', hours: '8:00AM - 9:00PM' },
    { day: 'Saturday', hours: '9:00AM - 12:00PM' },
  ],
  officeHours: [
    { day: 'Monday - Friday', hours: '8:00AM - 9:00PM' },
    { day: 'Saturday', hours: '9:00AM - 12:00PM' },
  ],
  addressTitle: 'Address',
  classroomHoursTitle: 'Classroom Hours',
  officeHoursTitle: 'Öffice Hours',
}

const mapSection = {
  location: { lat: -31.953832, lng: 115.853299 },
  googleMapURL: '{API URL HERE}',
}

const contentSection = {
  innerHTML: `
  <h2>Awesome Language Center</h2>
  <p>You're obsessed with the fat lady! Here's my chance. I've crashed into a beet truck. Remind me to thank John for a lovely weekend. This thing comes fully loaded. Just my luck, no ice. I've crashed into a beet truck. A computer virus.</p>
  `,
}

Usage

import React from 'react'
import LocationSingle from '@berlitz/location-single'
const MyApp = () => {
  return (
    <LocationSingle
      featuredCardSection={featuredCardSection}
      mapSection={mapSection}
      contentSection={contentSection}
    />
  )
}

When to use this component

  • Single Page with Location Data

Notes

Recommended packages to work with location-single @berlitz/location-index