[HN Gopher] Show HN: Chunk - Code sandbox for back-end devs
       ___________________________________________________________________
        
       Show HN: Chunk - Code sandbox for back-end devs
        
       Chunk co-founder here. We spent the last 2 weeks building this to
       scratch our own itch:  As developers, we often have problems that
       could be solved just by running a few lines of code. Sometimes,
       running this code on your local machine is fine. But other time,
       the code need to run automatically reacting to external events or
       to run continuously, which means, it needs to run on a server
       somewhere.  So now, you have to find a cloud provider, to package
       or build the code and finally to deploy it. All of that for what
       could be literally be 4 lines of code.  We couldn't find an easier
       way to do this, so we built it.  Chunk is an all in one web editor
       (think of the codesandbox experience) that allows you to write,
       deploy and run a piece of code in the cloud from a variety of
       triggers: HTTP, WebHook, manual or scheduled (cron).  No setup, no
       build, no deploy. Chunk makes you go from idea to code running in
       the cloud in seconds.  Let me know what you guys think!
        
       Author : theochampion
       Score  : 48 points
       Date   : 2022-07-28 17:49 UTC (1 days ago)
        
 (HTM) web link (chunk.run)
 (TXT) w3m dump (chunk.run)
        
       | hemloc_io wrote:
       | Neat will check it out later!
       | 
       | Wanted to leave a comment b/c you have a typo on the front page.
       | 
       | "Scrap the web"
        
         | theochampion wrote:
         | Ah! Thanks for the heads up!
        
         | xnx wrote:
         | Also "Scrapping"
        
         | masukomi wrote:
         | I was kinda hoping it was a rallying cry. "Scrap the web! We
         | can do better!"
        
       | [deleted]
        
       | dennisy wrote:
       | This looks great, but what is the actual purpose?
        
         | rad_gruchalski wrote:
         | Looks like a faas.
        
       | [deleted]
        
       | throwaway893483 wrote:
        
       | dsanchez97 wrote:
       | I really like yalls website design and UX; especially around
       | scheduling the functions to run. I am working on the same problem
       | in Python space at https://cdevframework.io, but I am building it
       | first as a client side SDK. Mostly chose that way because I don't
       | have much frontend skills! Impressive that you could getting this
       | up and going so quickly!
        
       | bluehatbrit wrote:
       | How does this compare to glitch.com? As far as I can tell the
       | only real difference is the support for scheduled jobs, but I
       | feel like I'm probably missing something more fundamental. Maybe
       | it's just trying to be better version? Looks cool none the less,
       | will check it out!
        
         | theochampion wrote:
         | Glitch is definitely the closest in terms of usage. We in fact
         | used Glitch ourselves quite a lot. But even running the
         | simplest piece of code on Glitch still requires you to write
         | all the boilerplate code (e.g. setting up a node express HTTP
         | server).
         | 
         | And of course, Glitch stops every instances after 5min of
         | inactivity and it takes a solid 30sec to wake them up after.
         | 
         | Glitch is unbeatable in the frontend part. But we want to make
         | the backend dev experience more seamless.
        
       | masukomi wrote:
       | > But other time, the code need to run automatically reacting to
       | external events or to run continuously, which means, it needs to
       | run on a server somewhere.
       | 
       | why couldn't this be solved much more easily with ngrok or one of
       | its competitors?
        
         | theochampion wrote:
         | Ngrok and reverse proxies in general are an option. But it's a
         | trivial concept, and you'd still need to run your machine 24/7
        
       | bluelightning2k wrote:
       | How do you safely run untrusted user code?
       | 
       | Thanks for building this.
       | 
       | (Won't use it personally as being a pro developer I'd always use
       | my existing cloud provider)
        
         | theochampion wrote:
         | Good question! We use the Deno (https://deno.land) runtime
         | which comes with built it permissions mgmt
        
         | z3t4 wrote:
         | In nodejs you can use the vm module. And for extra layers you
         | can run node itself in a linux namespace aka container. Inside
         | a VPS that has selinux. On a dedicated server with no LAN
         | access besides the gateway. In a fireproof datacenter.
        
       ___________________________________________________________________
       (page generated 2022-07-29 23:01 UTC)