Rappid source code leaking issue

125 views
Skip to first unread message

heng fan

unread,
Apr 5, 2022, 11:39:20 PM4/5/22
to JointJS
Hello:

I'm a IDE developer using the Eclipse Theia and use Rappid to create some diagram in my IDE. I have bought the Rappid source code. But the Theia is an electron application which means its source code is installed on user's computer. So the source code of Rappid will be exposed to users. Is there any way to avoid the leaking of Rappid source code?

Roman Bruckner

unread,
Apr 6, 2022, 4:31:29 AM4/6/22
to joi...@googlegroups.com
Hi,

do not distribute the unminified source code. Use the minified source code and create a single bundle with all the dependencies (obfuscating the source code is also an option).

Here's general answer to your question.

Best,
Roman


On Wed, 6 Apr 2022 at 05:39, heng fan <heng...@terapines.com> wrote:
Hello:

I'm a IDE developer using the Eclipse Theia and use Rappid to create some diagram in my IDE. I have bought the Rappid source code. But the Theia is an electron application which means its source code is installed on user's computer. So the source code of Rappid will be exposed to users. Is there any way to avoid the leaking of Rappid source code?

--

---
You received this message because you are subscribed to the Google Groups "JointJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jointjs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jointjs/ac376e10-9709-480b-a7fd-f389eaac9e03n%40googlegroups.com.


--

heng fan

unread,
Apr 6, 2022, 5:46:52 AM4/6/22
to JointJS
Hi Roman,

Thank you, I will follow the method.

Best,
Heng.

heng fan

unread,
Apr 8, 2022, 2:28:31 AM4/8/22
to JointJS
Hi. Roman,

I used rappid like this.
截屏2022-04-08 下午2.11.08.png

The electro will package the all resource file in the app. And user can get the rappid.tgz。

Do i need to compress a uglify rappid.tgz?  By the way, how to do it.

Electorn builder can package the source code to app.asar. I don't know it whether enough for me.

Best,
Heng



Roman Bruckner

unread,
Apr 8, 2022, 2:46:16 PM4/8/22
to joi...@googlegroups.com
Hi,

I'd suggest you ask the electron community what is the best practice. I don't know. You can build the app (for Mac) and send it to me. I can tell you if it is safe regarding the Rappid license policy.
To be on the safe side you can ufligy the content of rappid.tgz and repack it with `npm pack`.

Best,
Roman






--

---
You received this message because you are subscribed to the Google Groups "JointJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jointjs+u...@googlegroups.com.

heng fan

unread,
Apr 12, 2022, 11:58:41 PM4/12/22
to JointJS
Hi,

Thank you Roman!

I uglify the content of rappid. It work fine with the uglify package.

I remove some folder and rappid.min.js and uglify rappid.js.

截屏2022-04-13 上午11.39.17.png

But when I compress the uglify package to rappid.tgz with tar -czf rappid.tgz package, and yarn. It made a mistake.

截屏2022-04-13 上午11.18.49.png 

I have cleaned the yarn cache, changed the yarn.lock and removed the node_modules.

Is my compression method wrong.

I also find uglify code in dist, can i use the rappid.min.js directly?

Any help will appreciate!

Roman Bruckner

unread,
Apr 13, 2022, 2:10:28 PM4/13/22
to joi...@googlegroups.com
Hi, you should have used npm pack to create the tarball (https://docs.npmjs.com/cli/v7/commands/npm-pack) and not tar -czf rappid.tgz package.

heng fan

unread,
Apr 14, 2022, 2:50:09 AM4/14/22
to JointJS
Thank you, It work well
Reply all
Reply to author
Forward
0 new messages