-
Notifications
You must be signed in to change notification settings - Fork 0
Migration to Golang #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Important Review skippedMore than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review. 48 files out of 166 files are above the max files limit of 100. Please upgrade to Pro plan to get higher limits. You can disable this status message by setting the ✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Warning More than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review. 43 files out of 161 files are above the max files limit of 100. Please upgrade to Pro plan to get higher limits. |
This PR completely changes the fundamental working model of this application.
Where do I even begin.
Previously, TextPilot was using an end-to-end typescript monorepo setup where the client and server communicated via. a REST API abstracted using oRPC. For the WhatsApp stuff we used whatsapp-web.js which for every connected client ran a Puppeteer instance.
After a lot of deliberation, it was decided that TextPilot would be shifting off of whatsapp-web.js in favor of using Whatsmeow: a Golang based library which communicated with WhatsApp Web directly via. the API rather than initializing a headless browser instance. This decision was made to keep the entire app easy to package (Puppeteer demanded we ship Chromium with the binaries) and (in the future) deploy to a VPS for use with multiple clients.
Naturally this meant the entire backend and communication logic had to be re-written using Golang. And that's exactly what I did (well to be fair Gemini 2.5 Flash helped a ton). Instead of working upon the existing code, I decided it was better to start completely from scratch. So far things are looking pretty good.
Features that work
Features that don't work (yet)
Known bugs/Untested parts
I'm currently developing this branch, we'll see where it goes from there. Currently the whole thing needs a major refactor, because it's pretty disorganized as it stands.
Discussions and contributions are always welcome!