I’m building a new activitypub/threadiverse software focused on the needs of self hosters who want a single user instance.

I’ve been posting with it semi-regularly for the last month, and I think it’s ready for an open demo.

One of my objectives is to have the lightest resource usage for memory and CPU constrained hardware, as well as the fastest loading web interface for older phones and limited data plans. I ran out of data on my phone last week and having a 41kb front page came in very handy.

You can try the web UI at https://scrapetacular.ydns.eu/latest You can also POST AS A GUEST TO THE FEDIVERSE without signing up. I’m not sure you can do this anywhere else, I’m manually approving posts on the backend because … well you know. If it asks for a user and pass, use guest and guest, your post will appear with a username like guest4269.

Ideally, open this post https://scrapetacular.ydns.eu/post/10127 and reply to it.

My other plan for mobile is to target the Sync for Lemmy app, as it’s dead, meaning it’s no longer a moving target.

I’ve made a few technical choices aimed at keeping things fast

These include:

No ORMs

  • They are convenient but make performance tuning difficult when things get complex as you don’t write the queries directly

No Javascript

  • I may have to go back on this if I keep the guest posting function, it might need a captcha or anubis.

No nested comments in the web UI

  • Nested comments are super slow, you are essentially querying the database for the OP, then querying for the N immediate children, then doing N queries for all of their children, then keep going recursively until you reach your depth limit, or all comments are found, you then need to render this structure with html/css

No front page images

  • This is more of a personal preference that happened to make things load faster, the front page displays the text of the OP and last few comments IN FULL, giving a good preview of the conversation, and allocating more space to people who write rather than post memes. Inline images in posts are also replaced with links.

No upvotes/downvotes

  • DID YOU KNOW that most threadiverse traffic is upvotes, downvotes adn emojis? You get an instant speedup by simply not processing them. Also, since this is a single user instance, all my comments are by definition awesome

ROADMAP

  • Massive refactor
  • Make the project public
  • unit tests (this is basically my only requirement for v1)
  • sync for lemmy API
  • admin UI
  • “AI” to “My Butt” wordfilter (mandatory and hardcoded)
  • default subscription to /c/fuck_AI
  • Solve channel discoverablity once and for all
  • SUPERBLOCK (i.e. block everyone who liked this comment)
  • dockerfile? I don’t use docker tbh
  • Read Mastodon posts? Do they even have good content?

Tech Stack

  • Go
  • SQLite

I’m using the pure Go sqlite library, Bluemonday for html sanitisation, Blackfriday for Markdown and Migrate for auto db migrations.

End

Thanks to Snoopy and the Cool Froges at jlai.lu for allowing me to test on their channel.

Is this project of interest to you? Have I missed anything obvious? Is there anything else you would like to know?

  • linuxguy@piefed.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    5 hours ago

    Wow, bold decisions for what it’ll support and not. I like that it’s laser focused on a specific use case. What do you think about the impact to instances’ federation queue when a bunch of single user instances follow a community? 10x the traffic and queue for 10 single user instances than one instance with 10 users.

    I ask this as someone that ran a full single user lemmy instance right up until recently and switch to a public piefed due to the traffic multiplication and other concerns.

    • admin@scrapetacular.ydns.euOP
      link
      fedilink
      arrow-up
      3
      ·
      4 hours ago

      I don’t know if it will scale tbh, but also I don’t expect many people to actually self host, and I’m sort of hoping the fediverse stays a bit … ghettoized. The current threadiverse is like 50000 people and works fine, I’m hoping there will just be more loose communities of 50000 that don’t really federate with the main one.