Geonet
A Node.js API wrapper for GeoNet — Aotearoa's geological hazard monitoring system
Install / Use
/learn @carolinaisslaying/GeonetREADME
GeoNet API Wrapper
A Node.js API wrapper for GeoNet — Aotearoa New Zealand's geological hazard monitoring system.
Note: This wrapper has been independently developed by Carolina Mitchell and is not officially affiliated with GeoNet or Earth Sciences New Zealand (formerly GNS Science).
Installation
npm install geonet
# or
pnpm add geonet
# or
yarn add geonet
Features
- 🌋 Volcano monitoring and alert levels
- 🌊 Earthquake data and intensity measurements
- 📰 News feed integration
- 📡 Network sensor data access
- 📊 Strong motion data
- 🗺️ GeoJSON format support
- 🧰 Quality of life utilities
- ✨ Full TypeScript support
- 📝 Comprehensive documentation
Quick Start
TypeScript
import { GeoNet } from "geonet";
import { MMI } from "geonet/dist/@types/common";
const geonet = new GeoNet();
// Get recent earthquakes
const quakes = await geonet.getQuakes(MMI.Light);
// Get volcano alert levels
const alerts = await geonet.getVolcanoAlertLevel();
JavaScript
const { GeoNet } = require("geonet");
const geonet = new GeoNet();
// Get recent earthquakes (MMI = 3 for Light intensity)
const quakes = await geonet.getQuakes(3);
// Get volcano alert levels
const alerts = await geonet.getVolcanoAlertLevel();
Error Handling
try {
const quakes = await geonet.getQuakes(MMI.Light);
} catch (error) {
console.error("Error fetching quakes: ", error.message);
}
Documentation
For detailed documentation, visit our documentation site.
Contributing
Contributions are welcome! Please read documentation and get familiar with the project code. For details on our code of conduct please see our Code of Conduct.
If you identify a security vulnerability, please read our Security Policy for information on how to report it, and what versions are supported.
Development
# Install dependencies
pnpm install
# Run tests
pnpm test
# Build the package
pnpm build
# See documentation
pnpm docs
# Generate documentation
pnpm run docs
Licence
This project is licensed under the AGPL-3.0 Licence, see the LICENCE file for details.
Related Links
Support
Acknowledgments
- Carolina Mitchell for creating this package.
- Khai Dye-Brinkman for contributing to code debugging.
- GeoNet for providing the public API.
- Earth Sciences New Zealand (formerly GNS Science) and Natural Hazards Commission for operating GeoNet.
Related Skills
gh-issues
354.3kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
oracle
354.3kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
taskflow
354.3kUse when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tmux
354.3kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
