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

@acuris-geo/centra-checkout

v0.1.2

Published

React components for integrating Acuris Address Validation & Geocoding into Centra-based checkout flows.

Readme

@acuris-geo/centra-checkout

React components for integrating Acuris Address Validation & Geocoding into Centra-based storefronts. SSR-safe, unstyled by default, no design-system assumptions.

Status: beta (0.1.0).

Install

npm install @acuris-geo/centra-checkout

react and react-dom are peer dependencies (^18 or ^19).

Security model

Do not put an Acuris API key in the browser. This package never calls api.acuris-geo.com directly. Instead, it calls your proxy endpoints on the same origin (or any origin with permissive CORS), which then forward to Acuris using the server-side @acuris-geo/av-sdk with the API key attached.

Browser ──► /api/acuris/validate ──► acuris-av-sdk ──► api.acuris-geo.com
            (your backend)           (your backend)

A working pair of Next.js API routes lives in examples/centra-storefront/.

Components

<AcurisAddressInput>

Controlled input with debounced typeahead suggestions.

import { AcurisAddressInput } from "@acuris-geo/centra-checkout";
import { useState } from "react";

const [value, setValue] = useState("");

<AcurisAddressInput
  endpoints={{ validate: "/api/acuris/validate", suggest: "/api/acuris/suggest" }}
  country="deu"
  value={value}
  onChange={setValue}
  onSelect={(hit) => {
    // hit.lat, hit.lng, hit.street, hit.city, ...
  }}
  placeholder="Start typing an address…"
/>

Props of note

| Prop | Default | Notes | | --------------------- | ------- | ---------------------------------------------- | | endpoints.suggest | none | Omit to disable typeahead (input still works). | | debounceMs | 200 | Per-keystroke debounce. | | minQueryLength | 3 | No request fires below this length. | | limit | 5 | Server caps at 50. | | renderSuggestion | none | Render-prop for custom suggestion rows. | | suggestionsClassName| none | CSS class for the <ul> container. |

Keyboard: ↑/↓ to highlight, Enter to pick, Esc to close. Mouse: click to pick.

<AcurisAddressValidator>

Render-prop wrapper that validates an address on blur, submit, or manually.

<AcurisAddressValidator
  endpoints={{ validate: "/api/acuris/validate" }}
  country="deu"
  address={{ street: "Friedrichstraße", house_number: "43", city: "Berlin", postcode: "10117" }}
  trigger="submit"
>
  {({ status, result, error, formProps }) => (
    <form {...formProps}>
      {/* your fields */}
      {status === "ok" && <p>✓ {result?.standardized?.formatted_address}</p>}
      {status === "error" && <p>Error: {error?.message}</p>}
      <button type="submit">Continue</button>
    </form>
  )}
</AcurisAddressValidator>

Hooks

If you'd rather build your own UI:

import { useAcurisValidation, useAcurisSuggest } from "@acuris-geo/centra-checkout";

const { status, result, error, validate, reset } = useAcurisValidation({
  endpoints: { validate: "/api/acuris/validate" },
  country: "deu",
});

const { suggestions, isLoading } = useAcurisSuggest({
  endpoint: "/api/acuris/suggest",
  country: "deu",
  q: typedText,
  debounceMs: 200,
});

Both hooks abort inflight requests automatically so the latest user input always wins (no stale-response races).

SSR

All components are pure and rely only on useState/useEffect. They render to a closed (aria-expanded="false") state on the server, then hydrate and become interactive client-side. Tested against Next.js 14 app router.

License

MIT © Acuris GmbH