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

osagai-map

v0.3.0

Published

Google maps web component with Osagai

Readme

osagai-map

🀄️🌎Google maps web component with Osagai

Web component for using google maps implemented with Osagai

Install

npm install osagai-map

Or import from unpkg

<script type="module" src="https://unpkg.com/osagai-map/dist/osagai-map.mjs"></script>

Usage

<osagai-map
  api-key="<GOOGLE_MAPS_API_KEY>"
  latitude="37.4029937"
  longitude="-122.1811813"
  zoom="13">
    <osagai-map-marker latitude="37.4029937" longitude="-122.1811813">
      Hello, I am a marker
    </osagai-map-marker>
</osagai-map>

API

Table of Contents

osagai-map

Custom element for rendering a map using Google Maps API

Parameters

  • api-key String API key to be used on Google Maps. Get API Key docs
  • version String Version of the Google Maps API (optional, default 3.34)
  • libraries String Libraries to use on the Google Maps API, separated by "," (optional, default drawing,geometry,places,visualization)
  • latitude Number Latitude to show in the map
  • longitude Number Longitude to show in the map
  • zoom Number Zoom to use in the map (optional, default undefined)
  • no-auto-tilt Boolean Don't use a tilt (optional, default false)
  • map-type String Type of the map to use (roadmap|satellite|hybrid|terrain). mapTypes docs
  • disable-default-ui Boolean Disable default UIs (optional, default false)
  • disable-map-type-control Boolean Disable the map type controls (optional, default false)
  • disable-street-view-control Boolean Disable the street-view controls (optional, default false)
  • disable-zoom Boolean Disable zoom capabilities (Double click and scroll whell) (optional, default false)
  • max-zoom Number Max zoom allowed (optional, default undefined)
  • min-zoom Number Min zoom allowed (optional, default undefined)

osagai-map-marker

Custom element for rendering a marker in a Google map. Marker documentation

Parameters

  • latitude Number Latitude to show in the map
  • longitude Number Longitude to show in the map
  • title String Title of the marker that will appear as a tooltip (optional, default undefined)
  • animation String Animation to exhibit dynamic movement to the marker. Values supported from google maps api. Animate marker docs (optional, default undefined)
  • hidden Boolean Hide the marker (optional, default false)
  • label String A marker label that appear inside a marker (optional, default undefined)