Skip to content

Instantly share code, notes, and snippets.

View AndrewAubury's full-sized avatar

Andrew Aubury AndrewAubury

View GitHub Profile
  • Create a Cloudflare worker with the code provided
  • Install the asar tools
  • Copy the app.asar from cricut (C:\Users\USERNAME\AppData\Local\Programs\Cricut Design Space\resources) out to a folder
  • Unpack the asar with the command asar e app.asar app
  • Open app/cricut-ele-design-space/main.js in a actual text editor - I use VSCode
  • Search and replace apis.cricut.com to your-worker-url.workers.dev
  • Repack the asar with the command asar p app mod-app.asar
  • Replace the cricut app.asar with your new modded one

When Cricut updates the design space you will need to re-do the mod.

addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request));
});
async function handleRequest(originalRequest) {
const url = new URL(originalRequest.url);
// Forwarding to the specific target
url.hostname = 'apis.cricut.com';