Document kit

Crew Day Allocator

Loads a list of jobs and a list of workers with their skills and equipment, then assigns workers to jobs so each job has the right crew and no worker is double-booked.

Outputs a daily schedule as a printable page or JSON. The files open in your own spreadsheet, calendar and text programs.

Version 1.0.0 · Teranite Systems

$10.00 USD, one-time

Buying this pack gets you a licence to use it, not ownership of the files.

Read the full licence

Buy for $10.00

  • Download right after payment, and by email.
  • Opens in your own spreadsheet, calendar and text programs.
  • Refund within 14 days, for any reason.
  • Payment is handled by Stripe.

What it does

Loads a list of jobs and a list of workers with their skills and equipment, then assigns workers to jobs so each job has the right crew and no worker is double-booked. Outputs a daily schedule as a printable page or JSON. The files open in your own spreadsheet, calendar and text programs.

What's inside

  • Crew Day Allocator: README.md, allocator.js, index.html, sample-jobs.json, sample-workers.json.

With a README and the Teranite Facet Buyer Licence.

Sample

Crew Day Allocator

Loads a list of jobs and a list of workers with their skills and equipment, then assigns workers to jobs so each job has the right crew and no worker is double-booked. Outputs a daily schedule as a printable page or JSON.

Files: README.md, allocator.js, index.html, sample-jobs.json, sample-workers.json. allocator.js, start of the file:

async function loadJSON(url) {
    const response = await fetch(url);
    return await response.json();
}

async function runAllocation() {
    try {
        const jobs = await loadJSON('sample-jobs.json');
        const workers = await loadJSON('sample-workers.json');
        const schedule = allocateCrews(jobs, workers);
        renderSchedule(schedule);
    } catch (e) {
        document.getElementById('output').innerHTML = '<p style="color:red">Error loading data: ' + e.message + '</p>';
    }
}

function allocateCrews(jobs, workers) {
    const assignments = [];
    const workerAvailability = {};
    workers.forEach(w => workerAvailability[w.id] = true);

    const sortedJobs = [...jobs].sort((a, b) => b.requiredSkills.length - a.requiredSkills.length);

    sortedJobs.forEach(job => {
        const crew = [];
        const needed = [...job.requiredSkills];

        for (let i = 0; i < needed.length; i++) {
            const skill = needed[i];
            const candidate = workers.find(w =>
                workerAvailability[w.id] &&
                w.skills.includes(skill)
            );

            if (candidate) {
                crew.push(candidate.name);

Requirements

  • A program that opens the file types listed.
  • Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
  • Not opened in other programs.

Install

Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.

Licence

One licence covers one person. Your finished work is yours. Do not share or resell the files.

How it is made

Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.

Support

Questions, or a fault: support@teranitesystems.com. We reply within 2 business days.

More from Spreadsheet templates

See all