Devlog#2 Code improvements, security and website redesign
- For some reason, the audio was not playing from the sender to the receiver due to some issues with websockets and content security settings, after debugging for 30 minutes, finally came across fixed settings to fix it.
- Had to recode the html logic to properly take the XI Labs API keys.
- So the API keys need to be safe to release this to the public, but currently I have no idea how to keep the keys secure as this is an open-source project, so I took some help from Claude cowork to help me setup security features, it added git-ignore.
- Added checks to if the sender is running the webapp locally or if it is from production, with logs to explain what to do either way.
- Sender rooms to share their voice were active even after the session ended and the sender could not create any during that time, it was really annoying to fix, but I added a system that cleans the room when it is inactive for over 60s to save server resources and let the sender create another one
Working on:
- Finish the logic for room code generation and sharing directly via browser links.
- Proper authentication
- Maybe a login/sign or just distinguish users from XI API keys?
- Still need to actually QA API key security features though
Note: 4 images is a limit here so couldn’t show all new code but these are the main ones
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.