[HN Gopher] Show HN: NPM package for a visual scripting editor
       ___________________________________________________________________
        
       Show HN: NPM package for a visual scripting editor
        
       Hey guys! I just released a NPM package to integrate a visual
       scripting editor into any node project (React, Vue, Angular... you
       name it).  Basically, the goal is to provide your users a way to
       customize, automate, create new features for your product. Just
       like an open-source community, but without the barrier of code.
       Here's the homepage of the project: https://luna-park.app And a
       small tutorial for visual scripting: https://luna-
       park.app/challenge
        
       Author : Herobrine2084
       Score  : 15 points
       Date   : 2023-02-17 15:39 UTC (7 hours ago)
        
 (HTM) web link (www.npmjs.com)
 (TXT) w3m dump (www.npmjs.com)
        
       | MH15 wrote:
       | This is extremely cool but I'm a bit confused on the
       | licensing/source/pricing story.
        
         | Herobrine2084 wrote:
         | Thank you very much! Yeah, it's still a bit confusing...
         | 
         | Basically, the editor is free. You can use it in your app and
         | logic created can be executed by interpretation.
         | 
         | But the compilation of the logic into plain JS will be a paid
         | option. You'll need it if you want to trigger the logic in a
         | performant/headless way.
        
       | llamaLord wrote:
       | I can see that your library has a bunch of dependencies on other
       | libraries you've published like "editor", but these don't seem to
       | be accessible on NPM.
       | 
       | Honestly wondering if this will even compile locally without your
       | .npmrc file and npm creds...
        
         | Herobrine2084 wrote:
         | The dependencies that are not on NPM are dev dependencies, only
         | needed for the compilation of the editor.
         | 
         | The "real" dependencies are FontAwesome (icons), Vue, Pinia
         | (vue store) and Synth Color (a custom package I made to
         | generate color schemes)
         | 
         | In short, the editor is already compiled. So you just need to
         | install the package, it will automatically download the peer
         | dependencies, as any NPM package.
         | 
         | I made a small demo repo here: https://github.com/lunapark/demo
         | (you might need to update the package.json file to point to the
         | actual version of Luna Park thought)
        
       | trebor wrote:
       | This is very cool.
       | 
       | However, most our use cases would be in PHP apps. I see that
       | you're working on a code generation API. Would that be the step
       | necessary for generating the PHP invokable code?
        
         | Herobrine2084 wrote:
         | Thank you very much!
         | 
         | For now, the generated code is in JS, so you'll need Node.js to
         | execute it. Though, it could have other target languages. I
         | keep in mind the PHP usecase, I'll see if/when I can implement
         | this.
         | 
         | In the meantime, you can create custom nodes that call PHP
         | routes of your app. Not the most performant way of doing it,
         | but it should work.
        
       ___________________________________________________________________
       (page generated 2023-02-17 23:02 UTC)