this post was submitted on 14 Jan 2025
10 points (100.0% liked)

Perchance - Create a Random Text Generator

522 readers
9 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 2 years ago
MODERATORS
 

You can now click the gear icon in the text editor and create a "collab link" for your generator. If you share that link with others, they'll be able to edit/save the generator, and you'll be able to see each others text cursors/carets.

You can disable/invalidate the link, and regenerate a new one.

Please let me know if there are any issues! I may be able to improve the performance/latency of it after some more work on the server.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 2 weeks ago (1 children)

The issue is before many try and error....how stable it is? If there's multiple dev, they should keep using the link for a long period without nuke the gen? It sounds nice but I am hesitate to try because safety first!

[–] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

The issue is before many try and error

Can you let me know any details about the issue you had? It may have been that the server's rate limits were too strict. I've just edited them to give a bit more leeway, so hopefully that's solved your issue.

If there’s multiple dev, they should keep using the link for a long period without nuke the gen?

Luckily it's not possible to 'nuke' the gen with this feature (even if there remain some early issues with the collab server), since you can always just open the 'backups' list and download any older version of your gen. That said, it's certainly possible that there are 'annoying' bugs where you e.g. temporarily get out of sync with other devs in your collab due to stuff like the aforementioned rate-limiting. And again, please do let me know (and give as much info as possible) if you come across any issues like this.

[–] [email protected] 3 points 1 week ago (1 children)

Currently testing the Collab with a few people on https://perchance.org/collab-testing-01-01

Here are some notes and bugs that I found:
Bugs

Notes

  • If the gen owner CTRL-Zs, it affects everyone's edit if they are editing in real time.
  • Changes are to the editors are LIVE, but a reload/auto-reload is needed for generator viewers to see the changes in the preview window.
  • It needs the owner to 'save' the generator to create a backup of the old edit.
  • If there are changes made by other collaborators and the gen owner tries to refresh the page, there would be a prompt that there are unsaved changes, but the changes are still applied to the page.
  • Opening the 'Collab Link' on Edge Incognito, Opera GX, Opera OG, and Arc Browser on the same computer and editing + saving works.
[–] [email protected] 1 points 5 days ago* (last edited 5 days ago) (1 children)

I think all the weird browser issues are fixed (I think it was to do with bad cache headers resulting in different versions depending on when editor was first loaded in the browser being tested), but please let me know if not.

If the gen owner CTRL-Zs, it affects everyone’s edit if they are editing in real time.

Thanks! I think this is fixed now, if not let me know.

It needs the owner to ‘save’ the generator to create a backup of the old edit.

I'm not sure what you mean by "create a backup of the old edit" - but to be clear it should be possible for anyone with the collab link to save - i.e. not just the owner. Please let me know if that's not the case.

Changes are to the editors are LIVE, but a reload/auto-reload is needed for generator viewers to see the changes in the preview window. If there are changes made by other collaborators and the gen owner tries to refresh the page, there would be a prompt that there are unsaved changes, but the changes are still applied to the page.

The "unsaved changes" prompt is actually correctly warning you in the sense that you need to save the changes to be sure that they're not lost, since (currently) if all collaborators leave, then the collab server will (eventually) "garbage collect" the session. I could make it so the session state is persisted to disk - that would perhaps be more intuitive (this may have to wait for now though, so the warning should be taken seriously until it no longer appears).


Also, in https://perchance.org/collab-testing-01-01 you have Password: hello (or maybe someone else added that), but it's not possible to manually set an "edit password" (unless I've forgotten a feature I added...). It should be a random string of letters/numbers. Note that the edit password is different to the collab password/link. Edit passwords are really only necessary for anon-created generators, which is why you're not given an edit password for generators that are created when you're logged in. The "edit password" gives you more permissions than the collab password. For example, the edit password has the capability to disable/enable collab links. Whereas the collab link/password just gives you the ability to edit/save a generator and participate in the live editing session.

[–] [email protected] 1 points 5 days ago

By creating a backup, I mean something like the version control on perchance in which every save creates a version of the previous generator without the changes. If you are editing with the collab link, and you aren't the owner/creator of the page, there is no 'backup' icon on the top right, meaning the changes aren't saved in a version although the changes are saved on the generator, thus I think it requires the owner to manually save to create a backup version, unless I'm mistaken.

As for the edit password, I've attached an image on my previous comment of the example prompt that shows up when I click the "Collab Link" on another generator that I don't own. For example, on this one, I clicked the "Collab Link" on /beautiful-people and it shows this prompt:

Also, when I previously created a collab link, it asked me for an edit password, but now I don't see it, which is why I provided the Password: hello previously since I've set it to that, and checking with you if there should be an edit password if you don't have the collab link.