what features would you like to see in fedibooks?

things i'm definitely doing:
. customisable post frequency
. multiple bots
. bots learn from multiple accounts
. edit name, profile picture, etc. from fedibooks

things i'm probably doing:
. misskey support

things i'm not doing:
. patreon exclusive features
. different types of bots

i don't know when this will be ready because it's a fairly big undertaking, right now i've only got a few pages prepared and none of the backend stuff

i'm not looking forward to the SQL stuff but the rest should be fun :bun:

here's the bot edit page so far, it looks pretty gross i know

are there any options that seem missing? there are some other options not pictured here, such as turning off replies, banning given words, or changing the profile picture

i don't want to overwhelm the user with options but i don't want it to be too limiting either

this page allows you to manage your bots and such. the buttons on the bot are a little confusing because they're just icons. they mean, from left to right:

. toggle bot enabled/disabled
. bot settings
. accounts learned from
. banned words
. chat with your bot
. delete

before i shut down my free bot hosting service, i was hosting 108 bots. that means my server had 108 open connections listening for replies at all times. i don't know how many it can handle, but the answer's at least 108 :blobcatfingerguns:

i have no idea how many people are going to use this, though, so it might not go so well. each reply listener needs to be its own process, too... i might have to either get a separate server just for this or upgrade my current server to the prohibitively expensive next tier

in other words, when this goes live, i'm kinda hoping for people clicking on those donation links so i can upgrade the server! :blobbun_mlem:

this is by the people (henlo) for the people (you!) so if there's anything at all you'd like to see, let me know!

what do you want in an ebooks bot? what annoys or disappoints you about the current ones? if you could program, what custom functionality what you give your own one? what do you like or hate about webapps (like mastodon and gmail) that could apply here? what is your favourite breed of rabbit?

allowing users to get their bot to post once every five minutes is probably a bad idea, right

i'm excited to work on the backend but the frontend still isn't done, there's just so much to do!! :bunrainbow:

the more hardcore lynnesbian fans may note that fedibooks looks rather similar to curious greg (no not :greg:​, i mean cg.lynnesbian.space)

i did take inspiration from that design, which in turn took inspiration from mastodon's web UI. however, i made a few changes, most noticeably to the buttons, to give it its own unique identity. i also decided to go a little bit brutalist (and i really do mean a little bit) by leaving everything with sharp, square edges, flat colours, monotone icons, and so on.

who says programmers can't design frontends? :chloeblob:

you may also notice that fedibooks used to be a different project. i've abandoned the old fedibooks and moved to this one instead. in retrospect, the old fedibooks concept was way too ambitious. it was around the time i was considering how to create a simple UI for displaying complex decision trees that i realised i was in too deep.

why create fedibooks? (long) 

hmm what if someone tries to make a bot that learns from someone with #NoBot in their profile

when you ask me a question like "why pour all this time and energy into creating a free service" the answer always boils down to "i want to make people happy"

that's all there is to it really. my current dream job (not that i'm really capable of working) is a computer science lecturer, because i've seen how dry and boring compsci lectures are and i think i can do better. i want people to learn and have a good time doing it!

if i'm making other people happy, i'm almost always happy! i just need to remember to not let that get in the way of my own health.

okay so i think this is what the database is gonna look like

yes this is an ERD what about it

i just realised that i actually used a skill i learned at university today

holy shit

university taught me something i used in a real life scenario

if you had have told past me that i would get so dedicated to a passion project that i made an ERD for it, i would say "really? fuck"

hmm i could either work on more frontend stuff or try to convert this ERD into SQL

i might work on the SQL stuff since it's been a while :bunrainbow:

known issue: fedibooks will stop working after 4,294,967,295 people connect their accounts

looking over this SQL is writing is making me feel very Powerful

i could change fedibooks to only allow one user per instance and all it would take is a single word

i could cause privacy issues and wasted disk space by just deleting one rule

i could change a single column's data type and break pleroma compatibility

i actually kinda like working with databases, i just don't like database theory

i fixed up some of the issues with the entity relationship diagram and it's looking pretty solid now :chloeblob:

Follow

fedibooks can store (2^64)-1 posts

that is a lot of posts!!

i'd probably run out of disk space before getting anywhere near running out of post IDs :blobbun:

a difficult thing to determine is how high should i set the post length limit

my instance has it set to 65535 to ensure i never run into issues, masto defaults to 500, pleroma defaults to 5000

i guess this is supposed to be a microblogging platform so it doesn't make too much sense to allow them to be overly large, and that does technically expose me to some jerk filling my DB with posts that are gigabytes long

65535 it is :blobbuncoffee2:

the frontend stuff is getting along well

as for the backend stuff, well, there's more SQL than python, and i haven't even hit 100 lines yet, so

okay, the frontend stuff is getting close to being ready. when fedibooks first goes live, some features won't be ready yet. the basic stuff will all work just fine, though!

the backend stuff is gonna be a lot harder than the frontend, but i'll hopefully have it done before too long!

also worth noting: the whole site works without javascript :blobcatfingerguns:

there are a few features that will require it, but so far it's 100% JS free

which is nice because i'm bad at JS

i like javascript and i think it's important, but i also like avoiding it where possible to make everything as lightweight as possible

what do you typically call the "@user@instan.ce" thing? i call it a handle

one of the best parts of webdev is having to implement input validation on both the client and the server

hmm i wonder how i implemented input sanitisation in my last project

...oh! i didn't!

well time to shut cg.lynnesbian.space down forever

wait a minute never mind i overreacted it DOES sanitise inputs

phewwwwwwww

okay curious greg is back up so you can use it again now

even though it's really buggy and shit

the bot creation process is done now. it doesn't handle errors gracefully yet, but apart from that, it's ready!

this means you can now create a bot with fedibooks 0u0

now for the learning from posts part :blobbun:

Show more

@lynnesbian this is the best JavaScript take we've ever seen on the Fediverse tbh.

@lynnesbian If you need to save on bytes, you can call it an @

or a full account name since that's what webfinger calls it I guess

@lynnesbian have you seen the official webfinger logo

@ben i just looked it up again and i don't remember it being that suggestive

@lynnesbian just realised you meant for a UI. yeah, handle is good. user handle

@clarjon1 it's a sha256 digest of the email they sign up with

which means people can change their email, but you can't look at the ID to determine how many users there are :blobbun:

@lynnesbian we have a similar issue in Tusky.
But it's not a high priority fix. 🙃

@lynnesbian does this also happen when you're trying to follow people on gab instances with the bot or is it not implemented yet

@lynnesbian 🦀

both of those instances are awful, so it would seriously surprise me if anyone wanted a bot under gab or spinster

Show more

@lynnesbian does cg.lynnesbian.space take input anywhere?

(wasn't going to pwn it, just wanted to see what it was)

@lynnesbian OH you took it down before i checked

i thought it would have 404ed, not redirected

though in hindsight i guess it'd be silly to post about how you will, in the near future, close a security hole

@lynnesbian Client can just be dummy thin and display whatever server throws at it under each field.

@lynnesbian there's a few simple tricks to not do that

  • require JavaScript before the site has even loaded
  • write backend and frontend in JavaScript
  • pass all database errors directly to the user
  • don't validate data in the database either!
Sign in to participate in the conversation
Lynnestodon

@lynnesbian@fedi.lynnesbian.space's anti-chud pro-skub instance for funtimes