var yarn = require('@yarnpkg/lockfile')
var express = require('express')
var bodyParser = require('body-parser')

var app = express()
var port = process.env.PORT || 5000;

app.disable('x-powered-by');

app.use(function(req, res, next) {
  res.set('Access-Control-Allow-Origin', '*');
  next();
});

app.post("/parse/", bodyParser.text({type: '*/*', limit: '5mb'}), function(req,res){
  var dependencies = yarn.parse(req.body).object
  var deps = []
  Object.keys(dependencies).forEach((dep) => {
    deps.push({
      name: dep.split('@')[0],
      version: dependencies[dep].version,
      type: 'runtime'
    })
  })

  res.json(deps)
});

app.use(function(err, req, res, next) {
  console.error('ERR:', err);
  console.error('STACK:', err.stack);
  res.status(500).send({error: 'Something went wrong.'});
});

app.listen(port, function() {
  console.log('Listening on', port);
});

@@ -631,24 +631,79 @@
 (deps)%0A%7D);%0A%0A
+app.get(%22/%22, function(req,res) %7B%0A  res.send(%22OK%22)%0A%7D);%0A%0A
 app.use(func

Add a simple healthcheck endpoint