Using NPM packages

In your wish code you can import any pacakge available in the NPM package repository and it will be installed for you, for example, if you wanted to use the axios package, all you would have to do is:

import { Request, Response } from "bluegenie";
import axios from "axios";

/**
 * @param {Request} req
 * @return {Promise<Response>}
 */
export async function main(context, params) {
  const res = await axios.get("https://example.com");

  return new Response("ok");
}

The package will be installed when the Wish is executed and you can use it as you would normally would.