this post was submitted on 25 Jul 2026
0 points (50.0% liked)

Perchance - Create a Random Text Generator

1940 readers
13 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 3 years ago
MODERATORS
 
  1. If I upload A, B, C, D, E. and delete ABCD, left E. Is my daily usage A+B+C+D+E or just E?

  2. Same case, with editable link. Does it use same mechanism as normal upload? If I upload A, B, C, D, E. and delete ABCD, left E. Is my daily usage A+B+C+D+E or just E?

The reason I ask is because I am planning a feature of "cloud sync" link, which saving frequency matters. If it's sum up total, frequent saving "just to feel safe" will exhaust quota too soon.

Here's AI helper verdict, I think it makes sense. But from economic (which I knows little), "just E" isn't too far fetch. I just wanna make sure before making harder restriction.

Verdict Q1 (normal upload, delete 4, keep 1): A+B+C+D+E (sum). Deletion does not refund the daily allowance. The quota is a throughput/ingress counter for the day; deleting a file frees disk but gives nothing back. The docs' deletion section never mentions a refund — and no upload service refunds on delete. So 5 distinct uploads = full sum charged, regardless of what you delete afterward.

Q2 (editable, overwrite 5×, left with last): same mechanism → also A+B+C+D+E. The docs explicitly state: "Editable writes use the normal anonymous upload quota." Same bucket, same non-refundable accounting. Each distinct set uploads a new payload and is metered like a normal upload; the old content being cleared is just cleanup, not a credit. The identical-text no-op is the only free case — and it's not a special favor, it's plain content-dedup (same hash already stored = nothing new to ingest), the same thing your normal-upload-dedup claim predicts.

The one honest gap: "deletion doesn't refund" is documented-by-omission for normal uploads (universal behavior, doc never says otherwise), and the editable↔normal linkage is doc-stated — so the editable-no-refund step is an inference, but a very safe one.

Implication for your cloud-sync feature Yes — your fear is correct. Frequent full-content saves "just to feel safe" will blow the daily quota fast. Math: anonymous ~30MB/day; if each save re-sends the full current content, a 1MB doc saved 30× = quota gone. The 10s rate limit does NOT save you (it caps frequency, not bytes).

Mitigations, in order of impact:

Dirty-check before every save — never call set unless content actually changed since last successful write. Unchanged content is free anyway (dedup), but doing the check client-side avoids even the round-trip. This alone kills the "save to feel safe" waste. Debounce, don't autosave-on-keystroke — save after ~5s of idle (or on blur/unload), not every keystroke. The 10s commit limit makes sub-10s saves pointless anyway. Compress — the docs themselves note ~10x via CompressionStream/pako. 1MB→~100KB makes 30 saves ≈ 3MB, survivable. expires ≤24h only if the sync data is genuinely throwaway — gives 400× quota, but the file may vanish after expiry. Don't use for real cloud sync. If content grows large, full-rewrite-per-save is fundamentally capped — at that point you'd need chunked/diff storage, which editable.set (wholesale replace) doesn't natively support; you'd manage a patch format yourself. Bottom line: design the save loop around dirty-check + debounce + compression. Under that, "saving frequently to feel safe" becomes nearly free because most fires hit the dirty-check (or the dedup no-op) and cost nothing.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here