code: async function getFrontendData(file) {
    const localPath = path.join(macros.PUBLIC_DIR, file);
    const exists = await fs.exists(localPath);
  
    // Exists locally, great
    if (exists) {
      const body = await fs.readFile(localPath);
      return JSON.parse(body);
    }
  
    macros.log('Downloading ', file, ' from searchneu.com becaues it does not exist locally.');
  
    // Download from https://searchneu.com
    // Note this goes through the local request cache
    let resp;
    try {
      resp = await request.get(`https://searchneu.com/data/v${macros.schemaVersion}/${file}`);
    } catch (e) {
      macros.error('Unable to load frontend data from locally or from searchneu.com!', file, e);
      return null;
    }
  
    await mkdirp(path.dirname(localPath));
  
    let data;
  
    try {
      data = JSON.parse(resp.body);
    } catch (e) {
      macros.log('Could not download term', file, 'from server!');
      macros.log('Probably going to crash');
      return null;
    }
  
    // Save that locally
    await fs.writeFile(localPath, resp.body);
  
    return data;
  }
docs: Used for loading the data required to make the frontend work. This is just the data stored in public and not in cache. Tries to load from a local file and if that fails loads from https://searchneu.com And caches that locally.