SDKs
Official NetLoc8 SDKs for JavaScript, React, Next.js, and Go. The JavaScript packages re-export their parent — install only the one that matches your framework.
Package Hierarchy
Each SDK builds on the previous one. Install only the most specific package for your framework:
@netloc8/core ← universal JS client
└─ @netloc8/react ← adds Provider, useGeo, GeoGate
└─ @netloc8/nextjs ← adds SSR proxy, getGeo, redirects
github.com/netloc8/netloc8-go ← standalone Go client
Feature Comparison
| Feature | core | react | nextjs |
|---|---|---|---|
| fetchGeo / fetchMyGeo | ✓ | ✓ | ✓ |
| fetchTimezone / fetchMyTimezone | ✓ | ✓ | ✓ |
| isEU() helper | ✓ | ✓ | ✓ |
| Browser signals | ✓ | ✓ | ✓ |
| NetLoc8Provider | — | ✓ | ✓ |
| useGeo() hook | — | ✓ | ✓ |
| GeoGate component | — | ✓ | ✓ |
| getGeo() (server) | — | — | ✓ |
| createProxy() | — | — | ✓ |
| withGeoRedirect() | — | — | ✓ |
Packages
JavaScript / Node.js
@netloc8/coreUniversal IP geolocation client for Node.js, Bun, Deno, Cloudflare Workers, and the browser.
bun add @netloc8/coreReact
@netloc8/reactReact context provider, useGeo() hook, and GeoGate component for conditional rendering by location.
bun add @netloc8/reactNext.js
@netloc8/nextjsFull Next.js integration with SSR proxy, server components, React hooks, and geo-based redirects.
bun add @netloc8/nextjsGo
netloc8-goZero-dependency, context-native Go client with nil-safe accessors, typed errors, and proxy support.
go get github.com/netloc8/netloc8-go