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

@usace/groundwork-geo

v2.1.2

Published

A mapping library to accompany groundwork

Readme

Groundwork Geo

@usace/groundwork-geo is the mapping library for the broader Groundwork ecosystem.

This package is focused on map rendering, layer management, and mapping-oriented UI primitives for React applications. It is intended to be consumed alongside Groundwork and related USACE component libraries, not as a standalone documentation site. Over time, the primary documentation exists within Groundwork proper, while this repository remains the source for the reusable mapping package itself.

Relationship To Groundwork

Groundwork provides the broader foundation of React components for USACE applications:

  • Groundwork: https://github.com/USACE/groundwork
  • Groundwork Water: https://github.com/USACE-WaterManagement/groundwork-water

groundwork-geo fits into that ecosystem as the map-focused sub-library:

  • OpenLayers-based map components
  • Layer classes for common source types
  • Layout and toolbar primitives for map applications
  • Reusable mapping tools such as a basemap picker and layer tree
  • And more to come!

Installation

Install from npm:

npm install @usace/groundwork-geo

Package page:

  • https://www.npmjs.com/package/@usace/groundwork-geo

This package is built with:

  • React
  • OpenLayers (ol)
  • styled-components
  • redux-bundler

Documentation

This repository is the home for the reusable mapping package. End-user documentation is expected to live with the broader Groundwork documentation over time rather than in a standalone docs site here.

Basic Usage

At a high level, applications wrap mapping content in MapLayout, then render a Map instance with one or more layer definitions.

import {
  Map,
  MapLayout,
  Toolbar,
  TileLayer,
  ArcGISTileLayer,
  BasemapPicker,
  LayerTree,
  cobalt,
} from "@usace/groundwork-geo";

const layers = [
  new TileLayer({
    id: "tiles",
    name: "Base Tiles",
    source: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
  }),
  new ArcGISTileLayer({
    id: "imagery",
    name: "Imagery",
    source:
      "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",
  }),
];

export default function App() {
  return (
    <MapLayout
      theme={cobalt}
      rightToolbar={<Toolbar tools={[BasemapPicker, LayerTree]} />}
      leftSidebar={null}
    >
      <Map
        mapId="main"
        layers={layers}
        viewConfig={{
          center: [-96, 39],
          zoom: 4,
        }}
      />
    </MapLayout>
  );
}

Current State

This repository is an actively evolving package. A few implementation details are still rough around the edges, and the demo app is currently minimal. Treat this repository as the source of the mapping primitives, while user-facing documentation and examples are expected to align with the main Groundwork documentation over time.

Contributing

Contributions are welcome from teams building with Groundwork across USACE. For repository layout, local development, and contribution workflow details, see CONTRIBUTING.md.