# Babylon.js - Open code by nature?

**URL:** <https://forum.babylonjs.com/t/babylon-js-open-code-by-nature/25904>\
**Category:** Questions\
**Created:** [December 9, 2021, 1:45am UTC](https://forum.babylonjs.com/t/babylon-js-open-code-by-nature/25904 "2021-12-09T01:45:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teo\_T](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/teo_t/32/20678_2.png) [@Teo\_T](https://forum.babylonjs.com/u/Teo_T)\
**Post date:** [December 9, 2021, 1:45am UTC](https://forum.babylonjs.com/t/babylon-js-open-code-by-nature/25904/1 "2021-12-09T01:45:43Z")

</div>

Hi!

A bit different question: are the applications made with Babylon.js completely “open” by nature? Surely, its integrations with other platforms must contain some completely hidden exchange but is there a way to shield the custom code within the app?

Thanks again.

- mods feel free to remove to different category if this is an incorrect one

---

<div class="post-metadata">

**Author:** ![jeremy-coleman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jeremy-coleman/32/15493_2.png) [@jeremy-coleman](https://forum.babylonjs.com/u/jeremy-coleman)\
**Post date:** [December 9, 2021, 2:27am UTC](https://forum.babylonjs.com/t/babylon-js-open-code-by-nature/25904/2 "2021-12-09T02:27:01Z")

</div>

It’s the same as any other javascript app

---

<div class="post-metadata">

**Author:** ![Blake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blake/32/21509_2.png) [@Blake](https://forum.babylonjs.com/u/Blake)\
**Post date:** [December 9, 2021, 2:54am UTC](https://forum.babylonjs.com/t/babylon-js-open-code-by-nature/25904/3 "2021-12-09T02:54:24Z")

</div>

If you google “javascript obfuscator” you’ll find lots of tools and articles to help make your code harder to comprehend and repurpose, like [UglifyJS](https://www.npmjs.com/package/uglify-js) and [JavaScript Obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator) for example.

LOL if someone’s determined enough they can probably still figure out how you did something but you can make it a lot harder I guess…

Just be careful thou, some of these tools will have warnings not to use the more extreme settings or if you do you may have to re-test your website thorougly to make sure it still works with them… 🙂 🍻

---

<div class="post-metadata">

**Author:** ![jelster](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jelster/32/25881_2.png) [@jelster](https://forum.babylonjs.com/u/jelster)\
**Post date:** [December 9, 2021, 4:19am UTC](https://forum.babylonjs.com/t/babylon-js-open-code-by-nature/25904/4 "2021-12-09T04:19:46Z")

</div>

If you want to “hide” your source code from the users of your system (I’ll not ask why…), pretty much the only way to do so for BabylonJS or pretty much any application to one extent or another would be to host it on a server and do all the processing and rendering there, just sending the end bitmap for the canvas frame down the wire to the client.

Check out the docs for NullEngine and server-side rendering for more details.

HTH

---

<div class="post-metadata">

**Author:** ![jeremy-coleman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jeremy-coleman/32/15493_2.png) [@jeremy-coleman](https://forum.babylonjs.com/u/jeremy-coleman)\
**Post date:** [December 9, 2021, 4:43am UTC](https://forum.babylonjs.com/t/babylon-js-open-code-by-nature/25904/5 "2021-12-09T04:43:43Z")

</div>

hide your kids hide your wife  
[https://pdfaiw.uspto.gov/.aiw?Docid=20200020155](https://pdfaiw.uspto.gov/.aiw?Docid=20200020155)  
Only useful for art though, I guess. The guy who wrote rx is at Facebook working on code that writes and optimizes itself though. so who knows, lol.  
quality is pretty good:  
https://sketchfab.com/models/9ac9c472d5924bbd864a986ed0e02098/embed?  
https://sketchfab.com/models/a614a99997c145e3869df80111a5187c/embed?
