Finding someone to build a side project with is harder than it should be. You post in a community, wait, and the people who answer either want something different or are asleep whenever you’re working. We wanted a page where you could see who’s around right now, what they’re into, and whether your days actually overlap.
We built CollabFab on the ipstack API. It’s a tool for finding people with similar skills and interests to collaborate with. Everyone who has the page open shows up on a shared 3D globe, placed by their IP address, with no sign-up and no location permission. Say what you’re building and tag your skills, and it ranks everyone else with a Handshake Score built from working hours, language, shared interests, distance and network. We’ll go through the API first, with the real requests and responses we got, and then show how to vibe code a globe of your own with an AI assistant.
CollabFab: a live 3D globe with the room's countries, time zones and devices on the left, and the Handshake ranking on the right
What is the ipstack API?
ipstack turns an IP address into a location and a set of facts about the connection. You send a GET request with the IP in the path and your key in the access_key parameter, and you get back JSON with the continent, country, region, city, postcode, latitude and longitude, plus a location block with the country’s languages, capital, calling code and flag.
The rest depends on your plan, and for this app that matters more than anything else. According to the pricing page, the free plan includes 100 requests a month, SSL and the location module, and it’s for non-commercial use. The time zone, connection and currency modules start on Basic ($12.99 a month for 50,000 requests). The security module (proxy, VPN, Tor and crawler detection) and the bulk endpoint start on Professional+ ($99.99 a month). A globe that ranks people by working hours needs the time zone module, so Basic is the plan this app is really built for. The free key is plenty to build and test with, and we’ll point out what each paid module adds as we go.
IP geolocation shows up in plenty of other places: defaulting a currency or language, pre-filling a country in a checkout, routing support tickets by region, flagging logins from a new country, or putting live visitors on a dashboard. The request is the same in all of them.
How do you locate a visitor with ipstack?
Here’s a lookup of the address ipstack uses in its own documentation, which is what we used as a stand-in visitor so no real person’s location appears in this article:
curl "http://api.ipstack.com/134.201.250.155?access_key=YOUR_KEY&hostname=1"
It answered in 0.59 seconds:
{
"ip": "134.201.250.155",
"hostname": "134.201.250.155",
"type": "ipv4",
"continent_code": "NA",
"country_code": "US",
"country_name": "United States",
"region_name": "California",
"city": "Los Angeles",
"zip": "90006",
"latitude": 34.04759979248047,
"longitude": -118.29226684570312,
"ip_routing_type": "fixed",
"connection_type": "tx",
"location": {
"geoname_id": 7173700,
"capital": "Washington D.C.",
"languages": [{ "code": "en", "name": "English", "native": "English" }],
"country_flag_emoji": "🇺🇸",
"calling_code": "1",
"is_eu": false
}
}
We trimmed a few fields (continent_name, region_code, msa, dma, radius and the flag image URLs). Latitude and longitude are what put a person on the globe. location.languages is the country’s languages, which is what the Handshake Score uses for “common language”. hostname is the reverse DNS name when one exists. Here it’s just the IP again, because that address has no reverse DNS.
That’s a free-plan response, so there’s no time_zone, no connection and no security block. On Basic, the same request also returns time_zone (the zone ID, the current GMT offset and whether daylight saving is in effect) and connection (the ASN and ISP). Those two blocks feed the most important lines of the Handshake Score, as you’ll see below.
What happens when you ask for a module your plan doesn’t have?
You get an error instead of the data you did have access to. CollabFab asks for security=1 so it can show proxy, VPN and Tor flags on each visitor’s card. On our free key, that request came back like this:
{
"success": false,
"error": {
"code": 105,
"type": "function_access_restricted",
"info": "The current subscription plan does not support the security endpoint."
}
}
That came with HTTP 400, and the whole lookup failed, location included. So match the modules you request to the plan you’re on.
The security module is worth having on a page like this. It starts on Professional+, and it tells you when a visitor is behind a proxy, a VPN or Tor, along with a threat level. CollabFab puts those on the visitor’s card and adds a caution to the Handshake Score, which matters when strangers are deciding who to message.
Why do you need to cache lookups even on a paid plan?
We sent a second lookup about half a second after the first one, and got this
{
"success": false,
"error": {
"code": 106,
"type": "rate_limit_reached",
"info": "You have exceeded the maximum rate limitation allowed on your subscription plan. ..."
}
}
That’s HTTP 429, and it isn’t the monthly quota. It’s a burst limit: too many calls too close together. On a globe that’s a real problem, because people arrive in clumps when a link gets shared.
CollabFab deals with it in three layers. Lookups are cached per IP for 15 minutes, so several browsers behind one office or home network cost a single call. A session is only geolocated on first sight, or when its snapshot is more than ten minutes old, even though the page polls every four seconds. And a 106 is never fatal: the visitor’s previous position stays where it was, and the app retries on the next poll. The comment in the code says it well: “a rate limited lookup never wipes a good record.”
Where does the time zone come from?
The Handshake Score leans hardest on working hours, since two people who are never awake at the same time won’t build much together. So the time zone has to be right.
On Basic, ipstack returns it with every lookup: time_zone.gmt_offset is the current offset in seconds, with daylight saving already applied. That’s the number the overlap calculation needs, and it’s correct for every city, including places like Detroit and Boise where the time zone line doesn’t follow longitude.
On the free key, CollabFab estimates the offset from longitude so you can still try the score while you build, and it labels the result “offset estimated from longitude” wherever it appears. That estimate is an hour off for every US city in summer, which moves the shared-hours window by an hour. For a launch, use the time zone module.
The network line works the same way. The connection module on Basic gives you the ASN and ISP, which is how the score knows two people are on the same network.
How the Handshake Score works
Every other person on the globe gets a score out of 100, built from five named lines:
Signal | Max points | Source |
Working-hour overlap | 35 | time_zone module (Basic) |
Common language | 20 | location.languages |
Shared interests | 20 | tags people add to their profile |
Proximity | 15 | latitude and longitude |
Network kinship | 10 | connection module (Basic) |
The maths is deliberately simple, so each line can show its working. Overlap counts the shared hours between two 09:00 to 18:00 local days, capped at nine. Proximity decays smoothly with distance, 15 × e^(−km / 4000), rather than in buckets. Language is all or nothing, with partial credit for being on the same continent.
Here’s a real card from the app, running on our free key, so its time zone is the estimate. The simulated San Francisco visitor shares eight working hours with our Los Angeles stand-in (31 of 35), speaks the same language (20), has no tags in common yet (0), is 557 km away (13 of 15) and is on a different network (2). That adds up to 66:
The Handshake Score card for one visitor: 66 out of 100, with each line's points and the evidence behind it, including "offset estimated from longitude"
The explanation is the feature. A bare “66% match” invites people to argue with it. “8h shared, 17:00 to 00:00 UTC” tells you when to send the message.
How does presence work?
The whole app runs on one endpoint. The browser calls GET /api/presence every four seconds, and that call does three jobs: it records the caller’s heartbeat, geolocates them if needed, and returns everyone seen in the last 45 seconds plus the recent activity feed. Close the tab, and you fall off everyone’s globe within 45 seconds.
Storage is two tables in SQLite: visitors and events. Locally it’s a file, and in production it’s Turso, with the schema created by CREATE TABLE IF NOT EXISTS on the first request, so there’s no migration step. Old rows are swept after six hours.
Two privacy choices are worth copying. The IP address never reaches other browsers: it’s masked to 134.201.250.•••before the response is built. And profiles are tied to a session cookie, not an account, so closing the browser or clearing cookies wipes your identity for good. The profile form says so right at the top:
CollabFab's profile form, stored against a session cookie, with name, headline, bio, what you want to build and tags
There’s also a simulated crowd button for trying the globe on your own. Those visitors carry a “SIMULATED” badge, can’t be waved at and are never mixed into the real ranking. If you build something like this, label fake people that clearly.
How to vibe code the collaboration globe
An AI coding assistant can build most of this, but only if the prompts carry the details above. Left alone, it will call ipstack from the browser, request modules your plan doesn’t include, geolocate on every poll, and show raw IP addresses to everyone. We’d use a tool that edits a real project, like Claude Code or Cursor, and go one step at a time.
Start with the lookup, since it decides how much the app costs to run:
Create a server-only module that looks up an IP with ipstack:
GET https://api.ipstack.com/{ip}?access_key=IPSTACK_ACCESS_KEY&hostname=1.
Add security=1 only when IPSTACK_SECURITY=true (Professional+ plans).
Use "check" when the IP is missing or private. Return time_zone and
connection when the response has them. Cache successful lookups per IP
for 15 minutes. Never throw: return a notice for
error 106 (rate limit) and for missing coordinates, so one failed lookup
can't break the page for everyone else.
When it’s done, call it twice for the same IP and check the second call is served from the cache. On Basic, check the response has a time_zone.gmt_offset; that’s the field the score depends on.
Next, presence:
Add a GET /api/presence route that the page polls every 4 seconds. Identify
the caller by an httpOnly session cookie. Geolocate only on first sight or
when the stored snapshot is older than 10 minutes. Store visitors and events
in SQLite with drizzle (Turso in production via TURSO_DATABASE_URL), creating
tables on first use. Return everyone seen in the last 45 seconds and the last
30 minutes of events. Mask IPs to the first three octets before returning them
Open the page in two browsers and watch both appear. Then close one and time how long it takes to drop off, which should be under a minute.
Then the globe:
Render a full-screen 3D globe with globe.gl (three.js) and place each visitor
at their latitude and longitude as an avatar. Show each visitor's local
time from time_zone.gmt_offset and their ISP from connection.isp. If the
key is on the free plan and those fields are missing, show "available on
ipstack Basic" instead of a value.
Check a few visitors’ local times against a world clock. With the time zone module they match, daylight saving included.
Finally, the score:
For each other visitor, compute a Handshake Score out of 100 from five lines:
working-hour overlap between 09:00-18:00 local days (35 points, full at 9
shared hours), shared language from location.languages (20, or 6 if only the
continent matches), shared profile tags (20, full at 3), proximity
15 * exp(-km/4000), and network (10 for the same ASN, 8 for the same ISP,
6 for the same connection type). Return each line's points and a one-line
explanation, and show them on the visitor's card. Rank visitors by score.
Work one card out by hand, as we did above. If the lines don’t add up to the total, or the overlap window is wrong, you’ll spot it straight away.
Things to sort out before you launch
Work out your quota from sessions, not page views. With a 15-minute per-IP cache and a ten-minute refresh per session, it’s roughly one lookup per new visitor plus one every ten minutes they stay. That’s fine on Basic for most launches. The free plan’s 100 requests are for building it, and it’s non-commercial.
Use HTTPS for the lookup. ipstack lists SSL on every plan now, and your key travels in the query string, so there’s no reason to send it over plain HTTP. (CollabFab’s lookup still uses http://, so that’s on our own list.)
Be honest about the data on the page. IP location is usually right to the city and often wrong about the street, and VPN and datacenter IPs can put people in the wrong country entirely. The security module on Professional+ flags those visitors, and CollabFab shows that as a caution on the card. Say the same in an FAQ, and keep the masked IPs masked.
Wrapping up
The globe is the part people see, but the work is in the details: requesting the modules your plan includes, caching so a burst of visitors costs one lookup, using real time zone data for the working-hours score, and showing the working behind every score. You can try CollabFab, and get a free key from ipstack to start building. Move to Basic when you want exact time zones and ISPs, and Professional+ when you want proxy and VPN detection.
Happy coding.
Try ipstack free
IP-to-location, ASN, ISP, time zone and threat data from one endpoint. Get a key and make your first call in under a minute.
iderawpadmin
Works on the ipstack API and writes most of what lands on this blog. Spends more time than is reasonable comparing geolocation providers against each other, and would rather show you the response body than describe it.
All articles by Mohsin →