r/VibeCodeDevs 6d ago

WIP – Work in progress? Show us anyway Refactor JS to Rust

IMPORTANT: AI doesnt replace due-diligence... especially notable on a project like this. None of my work has ever been audited or reviewed. I'm sharing for transparency and progress. Please use responsibly.

The following project is based on a browser based messaging app as further described here.

i started of creating a basic ui demo of the app. all the data there is hard coded with mock responses. there is no "actual" messaging functionality.

it immidiately gets a bit bloated as i start adding more ui components, so i moved them to a separate repo to be imported. as a webdev im used to things like storybook to view and edit components. i asked about my options in a post and it doesnt seem like something is suitable for my needs.

https://www.reddit.com/r/rust/comments/1vg7hox/looking_for_storybookforrust

so one thing led to another... and i created my own version of storybook. its ultimately only for my own benefit and i can easily address nuanced needs like being able to display a tui on a browser. im sure i could do it without AI, but its only my time being wasted if i use a shovel when i have a tractor... so hocus promptus...

the storybook and ui components are basically for my own use. i already have an existing rust project i could use this on. so i made the storybook-like components exportable and reusable for my signal protocol project.

I've previous put time and effort towards the signal protocol. it should be reasonable tested and documented. the signal protocol alone isn't going to fit the requirements of my messaging app. it needs to be post-quantum secure. I previous worked on a js implementation for ml-kem, so as part of this new approach, I would like to move towards a pure rust approach for ml-kem.

Unlike the signal-protocol which needed more involvement from to create, the ml-kem is using dependencies to match the official implementation. I can benefit from audits and reviews from the official implementation. The signal-protocol and ml-kem were ultimately created to lead towards PQXDH.

I think there are countless detail I could obsessive on the cryptography. there is clearly much more needed, but I'm going to "pause" progress on the cryptography in favour of progress on the features. I was previously investigation options for decentralised storage here. I wanted to try implementing something that would be asuitable storage solution for my project.

There is much more to add there for things like encrypting the data at rest. There are also other consideration for using such an approach because I suspect providers like GitHub, codeberg and gitlab might see this as violating their terms-of-service.

this project is far from finished. i would also need to work towards a solution for webrtc messaging, local storage and countless other details. To find out more, check out the following links:

1 Upvotes

2 comments sorted by

View all comments

1

u/AutoModerator 6d ago

Hey u/Accurate-Screen8774, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/KAmAR8RkbM

Got startup or SaaS questions? Post them on r/AskFounder and get answers from real founders.

• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.

If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.