Skip Navigation

I host a Lemmy.world web UI at https://lemminator.netlify.app/ on Netlify's free tier. Due to intense usage, I got an e-mail warning me that 75% of my functions allowance has been depleted:

!

I assume that when this counter hits 100%, people who use it will be locked out until the bill cycle resets. Although instance admins can self-host Lemminator, it's still missing a few features like post creation and registration that admins might consider essential.

What do I do? Are there any other free Netlify-like services where I wouldn't run into this usage limit?

6
Jump
Open source devs: please, please add screenshots...
  • As a user, I completely agree. People often make decisions in a few seconds, and you've done all this work developing an app. That little extra step will allow you to make a difference to more people!

    As a developer of a Lemmy web UI, I've been thinking about adding screenshots to my README for weeks but still haven't done so 🙈

    37
  • Jump
    I Hate It
  • The SvelteKit + TypeScript combo is such a breeze to work with!

    And compared to other languages, JavaScript scores pretty well in performance benchmarks. It has a lot more going for it than people give it credit for.

    2
  • Jump
    Lemmy v0.18.4 Release
  • I feel your pain and I'm hoping I can help! I'm making a web UI that aims to be easier to use than existing ones.

    2
  • I may have bumped into a bug while testing comment functionality.

    • Go to https://lemmy.ml/comment/2566997
    • Click '2 more replies'

    I think those two other replies were comments that I deleted. I assume the cause of the bug is comment 2566997 having a child_count value of 2.

    2

    I have a question about the semantics of child_count in the comment list API endpoint. Sorry for being related to an earlier question but I haven't quite figured it out yet.

    My assumption was that child_count would indicate the amount of total descendants of a comment, regardless of depth. But take this case for example:

    $ curl 'https://lemmy.ml/api/v3/comment/list?parent_id=2157873&max_depth=999&limit=999' | jq '.comments[] | { path: .comment.path, id: .comment.id, content: .comment.content, child_count: .counts.child_count }'

    json { "path": "0.2157873", "id": 2157873, "content": "Really cool! I'm excited to learn more about you and the project!\n\nWhat's the format? Should we submit questions beforehand, or will you process questions that arrive at the start time? I've never participated in an AMA 😅 ", "child_count": 9 } { "path": "0.2157873.2158260", "id": 2158260, "content": "You just post questions as top-level replies to the stickied thread that day, and we'll be online to answer them.", "child_count": 6 } { "path": "0.2157873.2158260.2158286", "id": 2158286, "content": "Cool. Thank you for doing this!", "child_count": 1 } { "path": "0.2157873.2158260.2229041", "id": 2229041, "content": "Post doesn’t mention, where is the AMA? Here or in a different community?", "child_count": 3 } { "path": "0.2157873.2158260.2158286.2158743", "id": 2158743, "content": "No probs!", "child_count": 0 } { "path": "0.2157873.2158260.2229041.2231423", "id": 2231423, "content": "As the post mentions, it will be stickied to the top of lemmy.ml ", "child_count": 2 } { "path": "0.2157873.2158260.2229041.2231423.2231737", "id": 2231737, "content": "Thanks for the details. May be I’m missing something, but I don’t see that detail in the post. ![](https://programming.dev/pictrs/image/82c90859-9cfb-4c00-80d8-7e96bfd96c1c.jpeg)", "child_count": 1 } { "path": "0.2157873.2158260.2229041.2231423.2231737.2238347", "id": 2238347, "content": "Oops my bad, that was something I responded to in a comment.", "child_count": 0 }

    I see that comment 2157873 has a child count of 9, with one direct descendant (2158260). The descendant has a child count of 6. I'd reason that comment 2157873 has 2 direct descendants that aren't visible in the API response yet, because it has one visible descendant having a child count of 6 (i.e. 9 - 1 - 6 = 2). My calculation seems incorrect because (a) I don't see a 'Load more' indicator for this part of the comment thread on https://lemmy.ml/post/2671212, and (b) every comment shown there also seems present in the API response.

    Am I understanding the meaning of child_count correctly?

    6

    I'm creating an AGPL-licensed Lemmy web UI.

    While working on the comment section I wondered: what's the best way to retrieve the total amount of direct descendants of a comment? I'm not talking about child_count as this appears to count descendants at any depth.

    My use case is displaying a 'Load X more' button that for a given comment loads any direct descendants that are not yet being displayed.

    3