80 comments

[ 3.7 ms ] story [ 157 ms ] thread
Just thought I'd share something I've been working on. Basically it's a message relay that sends messages to others around you (given GPS coordinates from browser). Can choose range from "Range" pull down near top left (hover over options for approximate distances). Back end is written in Rust.
Neat idea. Little bit of feedback: would be good if you could get the interface working nicely on mobile. It’s very cumbersome at the moment.
Yes! This is top priority at the moment, I'm eyeing mobile twitch chat style, simpler, more compact, less bubbly.
How does it work when you would be alone in a given range?

Because I almost certainly am at "Bonfire" range (there are maybe a few hundred people within 10km of me), yet I am seeing messages.

Check the box beside the range selection to lock yourself in that range
Cool! It seems to work well, and respects with no hassle my IP-based location.
Coincidentally, years ago I had an idea for an app like this and I was going to call it "Bonfire". Aside from an inquiry with the owners of the bonfire.com domain name as to their interest in selling, I never went anywhere with the idea.
Kinda reminds me of Grindr, except for the different target audience ;)
Find hot fires in your area
(comment deleted)
damn. death by balls of steel.
Yeah, I need to add throttling. That being said server didn't crash, handling it quite well.
I get:

    Error when getting location: 1 User denied geolocation prompt
even though I allowed location access.

Firefox 72.0.2 on macOS Mojave 10.14.6

On ubuntu 19.10 I get:

    Error when getting location: 2 Unknown error acquiring position
I also got a geolocation error even though I allowed location access. Could benefit from allowing the user to set a location as a fallback (or override). FF 72 (Ubuntu)
Same FF 72 ((I use) Arch (btw)) & chromium 79
I think this would be useful for privacy reasons as well.
And also for "goddamn geoIP database thinks I'm Canadian even though I'm in the US" reasons.

True story, that one. Threw wrenches in a bunch of random things, like Newegg and Spotify. Apparently I wasn't the only one in my town with that issue.

> Could benefit from allowing the user to set a location

VPN users need this.

This is a really cool idea, and I like it so far!! -- would you mind sharing what the different ranges are for each type? I see people chatting, but not sure how close they are to me... Within 10 miles radius? 100?

Edit: I'm on mobile, it seems like maybe it shows on desktop. I'd check but I'm laying in bed haha. Regardless, I really like this idea. Seems like a good way to maybe even meet my neighbors since I moved across the country recently

Thanks! The ranges are 1KM, 10KM, 100KM etc.
(comment deleted)
There are 4 people chatting with the word "ignition" over their messages but my range selector (presently "campfire") says "1 in range".

Also, my preferred username, <span style="float: right">~ry, causes some weird layout issues.

There's a check box beside the range selection to only see messages in your range. I'll be changing the UI a lot, will test that thanks.
username: <script type="text/javascript">alert('oh oh')</script>

Oh boy... How long till someone loads a cryptominer on everyone's machine?

Also, for kicks: https://i.imgur.com/wHq8nrb.png

Yeah either the service is shutdown or I can't use that name anymore.
The last comment was a giant full screen goatse and then it shut down.
Reminds me of yikyak :)
Now that’s a name I’ve not heard in a long time. I remember when yikyak on college campuses was a thing.
Loved it. Their top ten restaurants in SF list was gold. Almost like an early, less nerdy Blind.
(comment deleted)
Thank you for reminding me to enable "Block new requests asking to access your location. This will prevent any websites not listed above from requesting permission to access your location. Blocking access to your location may break some website features." in my browser. I have no interest to share my current location with random websites. You may have an average: "The Netherlands", and that's it.
So this website isn't for you...
Could've been for me (I like the concept!), if I could allow the "Allow Location" to be less precise, or manually fill it in.
This is fun. In europe we have jodel which has a big userbase. The quality of discussion varies from location and it's fun to listen in what the locals are talking about.
Not sure what it is supposed to do, but currently it does:

    - Ask for location access
    - When granted ask for a user name
    - When given a username show:
      ? in range
      Error: undefind
I ran into this problem too, I just refreshed and it would eventually connect. Not sure what exactly is breaking.
I think the concept is neat, and this could be a worthwhile mode for some chat apps. I would get rid of the cute range names though and just tell users how many km this reaches.

I remember there was a project exactly like this in nReduce (a communal online incubator which sadly died quickly), a few years back.

Looks neat! I like that you show how many are in range. Here's some suggestions, take them for what they are worth.

- Fix the layout on iOS Safari.

- Show the location of all current users (with opt out) on a globe. Users can see where the activity is and who is chatting where.

- Consider adding ignore to squelch certain users.

- Show past messages for your area.

- Add voice messages and autoplay (with opt out)

But first make the location by IP so you don't have to turn on browser geo-location.
This isn't accurate enough. Custom lat/lon though I might add.
Just add country/city dropdowns?
I have experience with VHF radio emulation, so I wanted to ask what formula you're using for ranging?

I've found the haversine formula to be a robust compromise between accuracy and computational complexity, where on a typical day, I'm doing 5000-200000 haversine calculations a second.

Yup, using Haversine.
With the advent of wifi on airplanes, I made a similar thing called "flight roulette". Inspiration was from chat roulette except instead of matching you to people randomly it would you to people directly below you on the ground as you flew over.
Try to do something with spam messages
Will add throttling. But going to bed now, will try to do it tomorrow. Might be unpleasant in there for a bit -_-
You might want to make 'message-text' have relative positioning, and 'range-display' absolutely positioned so 'ignition' or 'bonfire' isn't hovering over the text box.
This is cool! I had been thinking about creating something similar but I couldn't solve this problem:

Given a radius of 5 miles and three users in a geographic straight line, each 4 miles from each other. User 1 and user 2 are in the same radius, user 2 and three are in the same radius but user 1 and 3 are not in the same radius. Therefor user 1 and 3 will only see "half" the conversation (which would obviously be confusing). Do you solve for this problem? if so, how?

Nope, they would need to increase radius.
An idea of how to solve that problem: connect a user to the closest person if there is nobody in their radius. Use Disjoint Sets to sort of glom people together like pieces of cereal in milk. Everybody in the same glob can hear each other.
You could divide the country into segments, and a person gets to talk to everyone in their segment.

Obviously, you'd want smaller segments in areas with a high user density, and larger segments in areas with low user density.

You could generate segments with something like EM clustering. You probably wouldn't want continuous segment recalculation, or two people could be split mid-conversation when neither of them had moved.

On iPhone Safari (cellular data) I get Error when getting location - 1 user denied)

Even when I set the website permnissions for location to 'Allow'

Nobody in range, even if I increase the range.
(comment deleted)
I logged in..

Started getting only spam. Logged out.

Yeah, I need to figure out a way to mitigate this. For now lowering range and locking it works.