2 ms·
Social network for sharing and discovering web code snippets
- chmunch 4y agoCodeRoad is a new social network focused on sharing and exploring web code snippets made with simple HTML, CSS and JavaScript. It is based on Instagram, but with the added value of code, which makes it more interactive and engaging than pure images and gives you the opportunity to practice your coding skills in a convenient, enjoyable way. There is a built-in editor on the website in which you can edit any code you like. It is recommended for you to download the app as a PWA to provide you with the easiest native experience. Because we're just starting, there is very little content, but if you like the idea, you can still use the site as convenient way to publish your mini projects and experimentations, while sharing it with the community and helping us grow.
- verdverm 4y agopreview of what I'm working on would be nice how do you protect against malicious content via JS?
- chmunch 4y agoThe preview should be on the right side of the editor, not sure what problems you're having. Every post is sandboxed inside an iframe so that it cannot access content outside of its document, additonally I also implemented a loop protection feature which prevents simple loops from disrupting the website. Obviously it cannot catch everything, so if we detect a user deliberately causing trouble, the intuitive way to deal with it is just blocking him.