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

@openpets/maps

v1.0.15

Published

Comprehensive geocoding, places search, directions, and more

Readme

Maps Plugin

Comprehensive geocoding, places search, directions, and mapping services plugin for OpenCode.

Features

  • Geocoding: Convert addresses to coordinates and vice versa
  • Places Search: Find nearby restaurants, attractions, and businesses
  • Directions: Get driving, walking, and transit directions
  • Multiple Providers: Support for Google Maps, Mapbox, and OpenStreetMap

Setup

Environment Variables

Optional environment variables for enhanced functionality:

# Google Maps API key (recommended for best results)
GOOGLE_MAPS_API_KEY=your_google_maps_api_key

# Mapbox access token (alternative provider)
MAPBOX_API_KEY=your_mapbox_access_token

# OpenStreetMap email (improves rate limits)
[email protected]

Usage Examples

Basic Queries

# Find coordinates
"find the coordinates of Times Square, New York"

# Search for places
"search for restaurants near Central Park, New York"

Scenarios

Geocoding Workflow

"find the coordinates of Times Square, New York"
"now get the timezone for those coordinates"
"check if street view is available there"

Trip Planning

"find the coordinates of Eiffel Tower, Paris"
"search for restaurants within 500 meters of those coordinates"
"get directions from Eiffel Tower to the first restaurant"

Multi-city Route

"get directions from Times Square to Central Park"
"now get walking directions for the same route"
"calculate the distance between New York and Boston"

Testing

# Test basic queries
npm run test:queries

# Test scenarios
npm run test:scenarios

# Run all tests
npm run test:all

# Quick start demo
npm run quickstart

API Providers

The plugin supports multiple mapping providers:

  1. Google Maps (Priority 1) - Most comprehensive features
  2. Mapbox (Priority 2) - Good alternative with competitive pricing
  3. OpenStreetMap (Priority 3) - Free and open-source option

Configure API keys in your environment to enable specific providers.