Industry sections

Geocoder sandbox: address → a dot on a CSS map and a JSON response

An interactive API sandbox: an address field prefixed “GET /v2/geocode?q=”, a “Send” button and example chips. After sending, a dot on a stylized map (dot grid, SVG streets and a ring road, a river) glides to the new coordinates and pings with a ring, while a highlighted JSON prints line by line on the left. Under the map — latency, request cost, precision and the remaining free quota, which counts down. Responses are canned, no key needed.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • eyebrow, title, lede, placeholder, actionLabel, note
  • suggestions[]; places: keys, address, city, lat, lon, x, y, precision, latency
  • cost, freeLeft

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Geocoder sandbox: address → a dot on a CSS map and a JSON response — An interactive API sandbox: an address field prefixed “GET /v2/geocode?q=”, a “Send” button and example chips. After sending, a dot on a stylized map (dot grid, SVG streets and a ring road, a river) glides to the new coordinates and pings with a ring, while a highlighted JSON prints line by line on the left. Under the map — latency, request cost, precision and the remaining free quota, which counts down. Responses are canned, no key needed.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/api-001?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Api001
  title="Try it without a key"
  suggestions={["Moscow, Tverskaya, 7"]}
  places={[{ keys: ["tverskaya"], address: "Moscow, Tverskaya street, 7", city: "Moscow", lat: 55.759853, lon: 37.610127, x: 50, y: 48, precision: "house", latency: 38 }]}
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Title
title · default: Try it without a key
Request cost
cost · default: 0.012
Theme
tone · default: auto
Accent
accent · default: theme colour
Ink
ink · default: theme colour
Background
background · default: theme colour

Used in scenarios

FAQ

How do I add Geocoder sandbox: address → a dot on a CSS map and a JSON response with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Geocoder sandbox: address → a dot on a CSS map and a JSON response depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Geocoder sandbox: address → a dot on a CSS map and a JSON response?
Adapt: eyebrow, title, lede, placeholder, actionLabel, note; suggestions[]; places: keys, address, city, lat, lon, x, y, precision, latency; cost, freeLeft. Keep as installed: the imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; the dot is positioned with transform in cqw/cqh of the map (container-type:size), a .9s cubic-bezier transition; the response lands 700 ms after send: pending → setTimeout in an effect → result and count+1.
Is Geocoder sandbox: address → a dot on a CSS map and a JSON response free?
The preview is open to everyone; the source is available with a PRO subscription.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/api-001.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

A composite block: imports from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone.

Tags

  • api
  • sandbox
  • playground
  • geocoding
  • map
  • json
  • developer
  • interactive
  • form
  • latency
  • composite
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…