Serverless Checkout Address Autocomplete
Drop-in replacement for Google Places Autocomplete. One zero-dependency Web Component (or React wrapper) queries 450M global rooftops directly inside the browser over static HTTP 206 Range requests — auto-filling shipping fields, extracting apartment units, and verifying deliverability with zero backend servers.
Live Shipping Address Form
3-Line Drop-In Integration
<!-- Works in plain HTML, Shopify, Webflow, Rails, Vue, Svelte --> <script type="module" src="https://cdn.jsdelivr.net/npm/texspace/element.js"></script> <form> <texspace-address-input name="street" verify autofill></texspace-address-input> <input name="unit" autocomplete="address-line2" /> <input name="city" autocomplete="address-level2" /> <input name="state" autocomplete="address-level1" /> <input name="zip" autocomplete="postal-code" /> <input name="country" autocomplete="country-name" /> </form>
// npm install texspace
import { TexspaceAddressInput, type TexspaceAddressDetail } from "texspace/react";
export function CheckoutForm() {
const onSelect = (addr: TexspaceAddressDetail) => {
console.log(addr.addressLine1, addr.city, addr.postcode, addr.deliverable);
};
return (
<form>
<TexspaceAddressInput verify onSelect={onSelect} placeholder="Shipping address..." />
<input name="unit" autoComplete="address-line2" />
<input name="city" autoComplete="address-level2" />
<input name="state" autoComplete="address-level1" />
<input name="zip" autoComplete="postal-code" />
<input name="country" autoComplete="country-name" />
</form>
);
}
// Select an address in the form on the left to inspect `event.detail`...
Monthly Checkout Cost Comparison
100,000 checkouts / moWhy developers switch from Google Places Autocomplete
| Feature | texspace (<texspace-address-input>) | Google Places Autocomplete | Mapbox Autofill |
|---|---|---|---|
| Monthly price (100k checkouts) | $0 / month (MIT, self-hostable on S3/R2) | ~$1,700 / month ($17 / 1k sessions) | ~$500 / month (permanent) |
| Store coordinates in your DB | Yes — permanently allowed | Prohibited by Terms of Service | Restricted unless paying permanent tier |
| Customer PII sent to 3rd party | Zero (matched inside browser WASM) | Every keystroke sent to Google | Every keystroke sent to Mapbox |
| Framework compatibility | Native Web Component + React wrapper | Custom JS loader + API key billing | React / JS SDK + access token |
| Deliverability & wrong-city rescue | Built-in (S2 spatial join + parcel APNs) | Separate Address Validation API ($17/1k) | Basic match confidence |
Frequently asked questions
How does it run with zero backend servers?
<texspace-address-input> compiles our pure-Rust spatial geocoder to WebAssembly and fetches only the 16–32 KB compressed index blocks needed from static .txg files via HTTP 206 Partial Content Range requests — the same pattern as PMTiles.
Can I self-host the static index on my own S3 or R2 bucket?
Yes. Point src="https://your-cdn.example.com/txg/v2" (or a single regional shard like us_ca.txg) to any static bucket that supports HTTP Range requests and CORS. Zero compute required.
Does autofill work with React Hook Form, Formik, and Vue?
Yes. autofillFormFields() uses the native HTML input value setter and dispatches bubbling input and change events, plus texspace/react delivers the full structured object directly to your onSelect callback.
Need to geocode an existing CSV of addresses too?
Try the zero-upload Browser Batch CSV Geocoder on texspace.dev/batch to enrich spreadsheets with coordinates, S2/H3 cells, GeoJSON boundaries, and IANA timezones locally in RAM.