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

@ashleyjacksonnet/bomweather

v1.2.0

Published

A simple package to receive data from the [Australian Bureau of Meteorology](http://www.bom.gov.au/) API.

Readme

bomweather

A simple package to receive data from the Australian Bureau of Meteorology API.

Installation

bun add @ashleyjacksonnet/bomweather

How to Use

All access to the API endpoints is done off the BOM class

import { BOM } from "@ashleyjacksonnet/bomweather";

All methods are static, and can be accessed without constructing the class. To access an endpoint, all methods require a 6-digit Geohash for the city to receive data for. Enums have been included for Geohashes of all the major cities of Australia.

For radar images, a RadarRegions enum is also provided with common BOM radar region codes.

The current available endpoints are as follows

// Search for locations by name (returns geohashes)
BOM.searchLocations("Sydney");

// Get location information (timezone, coordinates, etc.)
BOM.getLocationInfo("GEOHASH");

// Current Weather Observations
BOM.getObservations("GEOHASH");

// Current Weather Warnings (if available)
BOM.getWarnings("GEOHASH");

// Detailed Warning Information
BOM.getWarningDetails("WARNING_ID");

// Array of Current and Upcoming Daily Forecasts
BOM.getDailyForecast("GEOHASH");

// Array of Current and Upcoming Hourly Forecasts
BOM.getHourlyForecast("GEOHASH");

// Array of Current and Upcoming Three-Hour Forecasts
BOM.getThreeHourForecast("GEOHASH");

// Current Rain Forecast (if available)
BOM.getRainForecast("GEOHASH");

// Get radar image GIF for a region
BOM.getRadarImage("REGION_CODE"); // e.g., 'IDR663'

Examples

Find the current weather observations for Sydney

import { BOM, Cities } from "@ashleyjacksonnet/bomweather";

await BOM.getObservations(Cities.SYDNEY);

Get radar image GIF for Sydney (Terrey Hills)

import { BOM, RadarRegions } from "@ashleyjacksonnet/bomweather";
import { writeFileSync } from "fs";

const radarImage = await BOM.getRadarImage(RadarRegions.NSW_SYDNEY_TERREY_HILLS);
writeFileSync("radar.gif", radarImage);

The RadarRegions enum includes comprehensive coverage of all BOM radar stations organized by state:

  • NSW/ACT: 12 radars including Sydney, Newcastle, Canberra, Wollongong, and more
  • Victoria: 5 radars including Melbourne, Mildura, Bairnsdale, Yarrawonga, and Rainbow
  • Queensland: 17 radars including Brisbane, Cairns, Townsville, Mackay, and more
  • South Australia: 5 radars including Adelaide, Ceduna, Woomera, and Mount Gambier
  • Western Australia: 13 radars including Perth, Broome, Albany, Carnarvon, and more
  • Northern Territory: 5 radars including Darwin, Alice Springs, Gove, Katherine, and Warruwi
  • Tasmania: 2 radars including Hobart and West Takone

All radar codes use state prefixes (e.g., NSW_, VIC_, QLD_) for clarity and easy discovery.

Note: Legacy radar names from earlier versions have been removed as they contained incorrect radar codes. Please update your code to use the new state-prefixed names with verified codes.

Publishing

This package is automatically published to npm when changes are pushed to the main branch. The CI/CD workflow:

  1. Runs linting checks
  2. Runs tests
  3. Builds the package and validates the output
  4. Tests package installation
  5. Reads the version from package.json
  6. Creates a Git tag (e.g., v1.1.9) and GitHub release
  7. Publishes to npmjs with provenance using OIDC authentication

To publish a new version:

  1. Update the version in package.json (e.g., 1.1.91.2.0)
  2. Commit and push to main branch
  3. The workflow will automatically lint, test, build, tag, release, and publish

Note: The workflow uses OpenID Connect (OIDC) for authentication with npm, which is more secure than using long-lived tokens. No npm token secret is required - authentication is handled automatically through GitHub's OIDC provider.

Disclaimer

Please Note: This package is meant for test purposes only. Under no circumstances is this API to be used for commercial or monetary purposes. Please contact BOM directly to get access to a commercial license. All contributors on this package are in no way liable for any legal action taken against those misusing this API. By using this package you are acknowledging this disclaimer and agree to take personal responsibility to any misuse of this API