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

@artesa/feathers-google-maps

v3.0.0

Published

Feathers services for Google Maps Platform: Places API (New), Routes API and Weather API, and the legacy web services

Readme

@artesa/feathers-google-maps

Feathers services for Google Maps Platform: Places API (New), Routes API and Weather API

Each Google method is a Feathers service, so caching, rate limits and logging go into hooks.

Installation

pnpm add @artesa/feathers-google-maps

Node 26.13 or later. Enable the APIs you use for your key in the Google Cloud console.

Usage

import {
  GoogleMapsRestService,
  durationSeconds,
} from '@artesa/feathers-google-maps'

app.use(
  'places/search',
  new GoogleMapsRestService({
    key,
    method: 'searchText',
    fieldMask: ['places.id'],
  }),
)
app.use(
  'weather/days',
  new GoogleMapsRestService({ key, method: 'forecastDays' }),
)

const { places } = await app
  .service('places/search')
  .find({ query: { textQuery: 'Lindenweg 4, Freiburg' } })

const { forecastDays } = await app.service('weather/days').find({
  query: {
    location: { latitude: 47.99, longitude: 7.84 },
    days: 7,
    languageCode: 'de',
  },
})

find({ query }) and create(data) both send the request; find suits Feathers' caching hooks. Requests and responses are typed per method (GoogleMapsRestRequests, GoogleMapsRestResponses).

| method | API | Request | | ------------------- | ---------------- | -------------------------------------------- | | searchText | Places API (New) | POST places:searchText | | placeDetails | Places API (New) | GET places/{placeId}, placeId in query | | computeRoutes | Routes API | POST directions/v2:computeRoutes | | currentConditions | Weather API | GET currentConditions:lookup | | forecastDays | Weather API | GET forecast/days:lookup, up to 10 days | | forecastHours | Weather API | GET forecast/hours:lookup, up to 240 hours |

  • Field masks are required for Places and Routes: the fields you ask for decide the SKU a call is billed as, so there is no default and no *.
  • Forecasts that span several pages are fetched page by page and joined; each page is a billed call. All 10 days fit one page, which the service asks for unless you give a pageSize. Passing a pageToken yourself returns just that page.
  • Errors are Google's message as the Feathers error of the HTTP status (NotFound, BadRequest, …), Google's error object as data.
  • durationSeconds('1234s') reads the Routes API's durations.
  • Weather shown to users needs Google's attribution next to it: see the Weather API's policies.

Legacy web services

The 2.x wrapper of @googlemaps/google-maps-services-js (Directions, Distance Matrix, Find Place, Place Details, Geocoding, …) moved to its own entry; install that library alongside:

import { GoogleMapsService } from '@artesa/feathers-google-maps/legacy'

app.use('directions', new GoogleMapsService({ key, method: 'directions' }))

License

Copyright (c) 2026 Artesa

Licensed under the MIT license.