Introducing Habitat - A Social Platform for Local Communities
from carlnewton@feddit.uk to selfhosted@lemmy.world on 01 Mar 12:12
https://feddit.uk/post/45160073

I’ve been working on Habitat for the past two years. It all stemmed from this idea that I posted in April 2024.

Habitat is a free open-source, self hosted social platform for local communities. It is aimed at fostering local community discussions and discovery of areas of interest. This is why it is built primarily around location. A Habitat instance centers on a specific area, and the local community can make generic posts about that area, or they can make posts about specific locations in that area. More about what I’ve been building and the future plans here.

Features

If you’re interest in this at all, please give it a spin and let me know how you get on. I’ll keep an eye here on Lemmy, but you can also post to the Habitat discussion board on GitHub.

A screenshot of the home feed of Habitat

#selfhosted

threaded - newest

eodur@piefed.social on 01 Mar 12:39 next collapse

I love the sound of this. Kind of a decentralized Next door but better? I’ve been really wanting a place for some local communities to organize that isn’t Facebook. Perhaps I’ll spin up an instance and see if I can get some interest.

carlnewton@feddit.uk on 01 Mar 12:41 collapse

Awesome! Let me know how you get on!

sbv@sh.itjust.works on 01 Mar 12:43 next collapse

That looks neat! Thanks for posting it!

dangling_cat@piefed.blahaj.zone on 01 Mar 12:57 next collapse

I absolutely love this idea. Does it support ActivityPub? And I would love to see users can set labels on themselves like what expertise they can offer etc.

carlnewton@feddit.uk on 01 Mar 13:00 collapse

Now that’s an interesting idea!

This release is step one in the plan. Federation is step two! More information on this here: carlnewton.github.io/posts/building-habitat/

I love what activitypub has done for the internet, but I don’t think it will be right for this project, but yes to federation – if there are instances to federate with of course!

ada@piefed.blahaj.zone on 01 Mar 13:07 collapse

It seems to me that activity pub could still be useful for a couple of reasons. If you live in the suburbs of a city, then bring able to also access an instance for your suburb and your city might be useful.

And if you live in multiple locales, or if want to stay connected to your old home town etc

carlnewton@feddit.uk on 01 Mar 13:09 collapse

Please do have a read of this: …github.io/…/location-based-social-network/#conne…

I feel quite confident that a gossip protocol approach is the right way to go, but seamless connectivity to other instances is absolutely planned!

ada@piefed.blahaj.zone on 01 Mar 13:11 next collapse

That was my bad. I was espousing federation, not AP specifically, and I see that federation is built in to the idea

mnemonicmonkeys@sh.itjust.works on 02 Mar 09:24 collapse

Reading through your link, it seems like the main difference in your framework is that there’s auto-propogation of federation built in. Please correct me if I missed anything

Unrelated point: before you throw too much time and effort into building up federation, I want to bring something in the Matrix vs. XMPP debate: caching.

Apparently in Matrix, if a user on server A joins a chatroom on server B, then all of the content on the chatroom need to then be copied and synced to server A. There’s 2 primary problems with this: it’s a lot of duplication overhead that can limit scaling of the network and there’s legal consequences for server A caching potentially illegal content. There’s also a privacy concern as this means more parties that can see various interactions.

XMPP gets around these problems by having the user on server A just directly connect with server B, without server A caching anything.

I haven’t dug into too many of the differences myself, but wanted to bring it up in case it helped

carlnewton@feddit.uk on 02 Mar 11:37 collapse

Yes, this is a good point! I don’t necessarily want to slow one Habitat down when waiting for the response of another. It could lock up other requests. If it’s possible to send the user the url to retrieve posts with frontend javascript, that may definitely be worth looking into. It sounds like an XSS minefield though, but it could very well be the way to go.

Thanks for this.

spaghettiwestern@sh.itjust.works on 01 Mar 13:01 next collapse

Even in my relatively liberal U.S. city, Next Door is overrun by Magats who are cheered on and protected by right-wing Magat moderators. It needs to die and this looks like a great replacement.

carlnewton@feddit.uk on 01 Mar 13:06 next collapse

I’ve built in the ability to hide categories for this kind of reason. I was thinking, for instance, that people who enjoy a good moan can join the “Moaners Club” category, and the rest of us can hide that category from our feeds to get on with the categories we enjoy. Regarding problematic moderators, I have built a moderation log to keep them accountable, and of course, if they don’t show themselves to have good intentions, those with good intentions could create their own instance – I don’t know why I’m going into this kind of detail – you’re on Lemmy after all, you know the score!

Lost_My_Mind@lemmy.world on 01 Mar 14:07 collapse

…you want us to get together and moan with each other? Buddy! I didn’t know this was that kind of app!

Lonewolfmcquade@lemmy.world on 01 Mar 13:30 next collapse

Agreed. Tried NextDoor years ago and found it was primarily a venue for busybodies, nosy neighbors and HOAs to complain and nag people about nonsense. I love the idea of an app like this, but hate the people who use it the most.

spaghettiwestern@sh.itjust.works on 01 Mar 13:39 next collapse

It goes deeper with Nextdoor. During Covid someone living next to a local evangelical church posted pictures of a packed event where no one was wearing a mask. Some of those pictures included the backs of a few kid’s heads.

The “good Christian” church members complained that he was a pedophile and Nextdoor deleted his account! This could not be done by moderators and required Nextdoor executive approval.

Nextdoor is a Maggot haven from top to bottom.

BurgerBaron@piefed.social on 02 Mar 09:20 collapse

During covid an anonymous neighbor put an invite in my mailbox. Gave nextdoor a go. First thing I see is a lady posting about chem trails and an obvious scam ad for a used Honda Accord. Uninstalled same day.

irmadlad@lemmy.world on 01 Mar 13:42 next collapse

Out in my neck of the woods, NextDoor wouldn’t be effective. Lots of acreage between people. We don’t take kindly to snoopers and busybodies. We keep an eye on each other, but not in a nosy neighbor kind of way. Now, where my lady friend lives, it’s eat up with NextDoor. She showed me her feed once, I was like ‘You know, I strongly believe America could solve about 50% of their problems with this one simple trick: Mind Your Own Business!’.

spaghettiwestern@sh.itjust.works on 01 Mar 13:51 collapse

I found it useful for some things. We have a pack of coyotes in town that preys on dogs and occasionally is spotted in the neighborhood. It was also useful for business & contractor recommendations, but have to otherwise agree with you.

irmadlad@lemmy.world on 01 Mar 17:12 collapse

coyotes in town

That’s understandable. However ‘I see Mr Jones left his garbage cans at the road for a third day’ would get a response like ‘Mr Jones here, I just ramset the cans to the sidewalk. Suck it!’.

ramenshaman@lemmy.world on 01 Mar 15:12 next collapse

Pretty sure a decent amount of them are bots. I’m in the same boat, I try to just ignore them. Next-door is nice for getting rid of stuff you don’t need, otherwise I would uninstall it.

spaghettiwestern@sh.itjust.works on 01 Mar 15:19 collapse

Pretty sure a decent amount of them are bots.

Could be, but those bots must be programmed to simulate actual Maggots. They don’t know how to spell, capitalize or use punctuation, much less write more than a single barely comprehensible sentence.

null@lemmy.org on 01 Mar 16:25 collapse

It’s a similar story for the multiple Facebook communities for where I live. They handed a lot of bans during covid era while pushing anti-vax rhetoric.

irmadlad@lemmy.world on 01 Mar 13:45 next collapse

I don’t have a use case OP, but the project looks great. Seems like it would be an obvious NextDoor replacement.

jtrek@startrek.website on 01 Mar 13:58 next collapse

I like the idea. I don’t want to use facebook or similar, but that’s where stuff like “BuyNothing” is most active.

Unfortunately, I don’t know much about self hosting (beyond what I’ve picked up working in software development) so I don’t see myself running one of these myself. I’d probably use it if it came to my neck of the woods (NYC)

Pika@sh.itjust.works on 01 Mar 14:26 next collapse

I lack the use case for this service but, it looks good on paper. Nice!

If I understand the project right, this would be a great opening for non-profit communities to make a page for the town and add the services, instead of the typical static pages

perishthethought@piefed.social on 01 Mar 17:28 next collapse

Hi @carlnewton@feddit.uk , I really love this idea and really appreciate you taking on this big task.

I can see it replacing the stand-alone web site I run now for a local group, but I have a couple of questions before I go install the app and try it out.

  1. Do you have a list of existing instances somewhere? I looked around in your github and blog site, and could not find that.
  2. How do you keep the content that gets posted to stick to the local topic? I.e., if I set up a site for my small city, what’s to stop someone from spamming posts about the big city nearby? Or a big city plumber from advertising their services?
  3. How do admins deal with spam / negative content getting posted? Once a site takes off, this is a real problem, I hope you’re thinking about how to solve.

Again, thanks.

carlnewton@feddit.uk on 01 Mar 23:07 collapse

Hello!

  1. Existing instances: www.irthlingborough.net - despite the fact that I’ve been working on this for two years, you are amongst the first people to ever see a proper release. Before now, it would’ve been a challenging task for anyone else to install an instance. So I believe the only instance is that of my home town.
  2. Users can only post locations within the proximity of their own habitat. The marker can only be placed inside of a circle determined by the admin. Additionally, you can create a registration challenge that relies on local knowledge for someone to sign up.
  3. I’ve built in moderation tools to make banning, freezing accounts, promoting moderators, blocking email addresses etc. The idea is that communities will be small and manageable by small teams as a result.
poVoq@slrpnk.net on 01 Mar 17:58 next collapse

This seems like something that would really benefit from better language support. I saw the translations folder in the repo, but you should probably get it linked up to a Weblate instance or similar and have people start contribute different languages asap.

carlnewton@feddit.uk on 01 Mar 22:59 collapse

I’m glad you found the translations folder. Support for different languages was always in the plan, I just wanted to see if anyone actually plans on installing and using it before I keep going with that. You’ll see it’s in progress on the GitHub project board.

otter@lemmy.ca on 01 Mar 18:37 next collapse

Looks cool! I’d love to see local buynothing groups have a Fediverse alternative.

Out of curiosity, is there any standard or common format around location data for Fediverse platforms?

Anon518@sh.itjust.works on 01 Mar 19:23 next collapse

Next Lemmy update is going to have an option to block image posts (to remove low quality meme threads). People should stop turning text posts into image posts to avoid being blocked. I also find these hybrid posts quite annoying. You’re making your post look like something it’s not.

quick_snail@feddit.nl on 01 Mar 19:44 next collapse

Preach!

carlnewton@feddit.uk on 01 Mar 22:55 next collapse

This wasn’t my intention. What does it make my post look like?

quick_snail@feddit.nl on 02 Mar 05:03 next collapse

Like crap. Next time, write an article on your website, add a featured image, and link to that

dubyakay@lemmy.ca on 02 Mar 09:17 next collapse

Don’t listen to them. This post renders fine on both voyager and default Web mobile UI for world. You did nothing wrong.

Anon518@sh.itjust.works on 02 Mar 20:23 collapse

So two mobile devices/UIs? Did you even understand the problem?

dubyakay@lemmy.ca on 02 Mar 20:42 collapse

Yes. And it looks perfectly fine, like any other post, just with an image appearing as the thumb instead of the text-only icon.

<img alt="" src="https://lemmy.ca/pictrs/image/9c9dac83-8fc5-4547-afe2-9ec1fd91cde2.jpeg">

<img alt="" src="https://lemmy.ca/pictrs/image/88b4cd0e-676f-41a3-9aba-6afeb1f360b6.jpeg">

Anon518@sh.itjust.works on 02 Mar 20:22 next collapse

It makes your post look like an image (low quality) instead of a link or discussion (possibly high quality).

stray@pawb.social on 02 Mar 21:47 collapse

I’m on Summit and it’s obvious from your post title and screenshot in my feed that this will be you presenting some kind of website or software. When clicked, the actual thread has your main post written out nicely.

I think if a filter like what’s described is on its way, it’s very poorly thought-out. Many interesting topics will include images; an album cover when discussing a band, your cat when asking for advice about said cat, etc. It’s also fairly normal on Lemmy to add alt-text of images as plain text in the main post, so a filter would either include such posts as not image-only or exclude posts like yours. Seems like a bad system. I should think it’s better for users to block meme comms.

Cyber@feddit.uk on 01 Mar 23:01 collapse

A post introducing a graphical web-based system would be remiss if an image of that graphical system was missing.

Of course you can block those posts (if that function is.enabled) , but you’d be missing out on many discussions.

quick_snail@feddit.nl on 01 Mar 19:43 next collapse

Is there a way community members can vote on things?

quick_snail@feddit.nl on 01 Mar 19:43 next collapse

Does it support Activity Pub?

AdrianTheFrog@lemmy.world on 01 Mar 22:41 next collapse

sounds like that’s planned but maybe not in yet

carlnewton@feddit.uk on 01 Mar 23:09 collapse

Not activity pub specifically, but federation has always been in the plan.

quick_snail@feddit.nl on 01 Mar 19:45 next collapse

Is this NextDoor but for communists?

swab148@lemmy.dbzer0.com on 01 Mar 22:29 next collapse

Hopefully not just communists

mnemonicmonkeys@sh.itjust.works on 02 Mar 07:20 collapse

It’s open-source and self-hostable, so it’s for any group

carlnewton@feddit.uk on 01 Mar 23:09 collapse

People keep making the comparison. I don’t know, I’m not sure what features next door has, but I know it isn’t self hosted.

rodneylives@lemmy.world on 01 Mar 22:52 next collapse

Any relation to Lucasfilm/Fujitsu Habitat/Habitat II? renoproject.org

It was an early virtual world, running originally on Commodore 64s, later on PCs and (in Japan) Sega Saturn, with a look and style heavily inspired by SCUMM games.

MoreZombies@quokk.au on 01 Mar 23:06 next collapse

Forgive me if any of these questions have obvious answers:

Would Habitat be suitable for hosting community events, or communities in general?

if you ran a hobby group, would your local Habitat be the place to share things? How much control is in the hands of the users vs the administrator?

carlnewton@feddit.uk on 01 Mar 23:22 collapse

Could you help me understand what you mean by “hosting community events”? Your users can create posts about events, but it has no tools for video calls or anything like that. Users can create posts in the categories created by the administrator. They can leave comments on those posts. There are a bunch of moderation tools and ability for the administrator to have settings for posts based on the category they’re in.

nek0d3r@lemmy.dbzer0.com on 02 Mar 08:02 collapse

I’m guessing they mean like facebook events? A distinct section of the platform that allows for some kind of invite system, a feed for just the event, and reminders.

carlnewton@feddit.uk on 02 Mar 08:16 collapse

Ah I see. No, no specialised type of post for events, date based information, invite systems, or anything like that. I can see why that would be good though so I’ll give it some thought.

Dr_Del_Fuego@slrpnk.net on 02 Mar 10:12 collapse

Look at gamedate.org, or for immediate context search it on YouTube, you may be able to implement a copycat tool with more general lists of common events than the games list the site uses.

dil@lemmy.zip on 01 Mar 23:57 next collapse

A local bulletin board basically would be nice if thats what this is, not using facebook

Edit: Idk how I wrote “board” as “born”

carlnewton@feddit.uk on 02 Mar 00:04 collapse

It could certainly be used like that. For me personally, I like the idea of discussing local areas of beauty, monuments, history of the area etc

Buffy@libretechni.ca on 02 Mar 05:56 next collapse

This is perfect for me since I was banned from the NextDoor app for letting my community know the creature was hunting. I can host this for myself and others, and the nonbelievers can walk amongst it.

carlnewton@feddit.uk on 02 Mar 06:03 collapse

:D This is great news for everyone except for the creature.

Decronym@lemmy.decronym.xyz on 02 Mar 09:10 next collapse

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
AP WiFi Access Point
DNS Domain Name Service/System
XMPP Extensible Messaging and Presence Protocol (‘Jabber’) for open instant messaging

3 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

[Thread #129 for this comm, first seen 2nd Mar 2026, 17:10] [FAQ] [Full list] [Contact] [Source code]

gilokee@lemmy.world on 03 Mar 03:28 collapse

good bot

mnemonicmonkeys@sh.itjust.works on 02 Mar 09:28 next collapse

Another idea you could potentially add down the line: what about functionality similar to Craigslist or Facebook Marketplace? Those tend to work by helping you focus on your local area as opposed to EBay.

Granted, Craigslist is largely fine imo, I’m just proposing a way to help you kill off Facebook

carlnewton@feddit.uk on 02 Mar 11:38 next collapse

What features are you thinking? To put a price on a post/mark as sold etc?

Hadriscus@jlai.lu on 03 Mar 00:45 collapse

I agree with the user above, over here facebook is so entrenched not just thanks to the location-based groups and tagging but through the marketplace too. People rely on it to sell their old stuff. Of course the main hurdle as usual is making people care enough to use a different thing, even though the current solution works well enough for their use case. I could see it happening if towns adopted it officially and there was a bit of communication about it. Does your program federate with other instances ? like, if I want to sell my old table, will people in nearby towns that are hosting their own instance see my post ?

In any case great initiative

richardwonka@slrpnk.net on 03 Mar 02:41 collapse

integrate it with #flohmarkt (and the fediverse in general) and you don’t need to reinvent the wheel :-)

InFerNo@lemmy.ml on 02 Mar 09:54 next collapse

We have a very strong national use of Hoplr, so it’ll be really hard to get people over and I haven’t seen any malpractice by Hoplr yet.

Alfredolin@sopuli.xyz on 02 Mar 20:36 collapse

I would totally host that for my neighborhood, which as I understand is using Facebook a lot, which, of course, I am avoiding like the pest.