Open source

Automation
scripts, free to use.

Free, dependency-free, tested.

Command-line tools for recurring chores: cleaning data, chasing invoices, forecasting cash, scoring leads, checking a deployment. For developers and for entrepreneurs. Published under the MIT license: take them, adapt them, redistribute them. Many come with a step-by-step guide.

Download the archive (.tgz) Repositories on GitHub

Node.js 18+ · no dependencies · tested · MIT license · messages in French

For entrepreneurs

Backup rotation

Keeps the last N backups, one per week and one per month, and deletes the rest. Dry run by default.

Read the guide automation-backup-rotate
node scripts/35-backup-rotate.mjs /var/backups --pattern .enc

For entrepreneurs

Timesheet summary

Totals hours and billable amounts by project and ISO week from a CSV of time entries.

Read the guide automation-timesheet-summary
node scripts/34-timesheet-summary.mjs temps.csv --rate 20000

For entrepreneurs

Subscription metrics

Computes MRR, new customers, departures, churn, ARPA and LTV month by month from your list of subscriptions.

Read the guide automation-subscription-metrics
node scripts/33-subscription-metrics.mjs abonnements.csv --from 2026-06

For entrepreneurs

Mail-merge drafts

Generates one e-mail draft per contact from a template and a CSV, with default values. Sends nothing.

Read the guide automation-email-merge
node scripts/32-email-merge.mjs modele.txt contacts.csv --out brouillons/

For entrepreneurs

Lead scoring

Scores and ranks your prospects against your own JSON rules (budget, size, source, age…), with the reasons for each score.

Read the guide automation-lead-scoring
node scripts/31-lead-scoring.mjs prospects.csv --rules scoring.json --top 10

For entrepreneurs

Expense categorizer

Sorts a bank statement into categories by keyword, totals by category and month, and lists what is unclassified.

Read the guide automation-expense-categorizer
node scripts/30-expense-categorizer.mjs releve.csv --rules regles.json

For entrepreneurs

Day-rate calculator

Derives the minimum day rate from a target net income, accounting for charges, expenses, time off and unbilled time.

Read the guide automation-day-rate
node scripts/29-day-rate.mjs --net 600000 --expenses 80000

For entrepreneurs

Break-even calculator

Computes the number of sales that covers your fixed costs and a target profit, with a scenario table.

Read the guide automation-breakeven
node scripts/28-breakeven.mjs --fixed 800000 --price 25000 --variable 9000

For entrepreneurs

Cash-flow forecast

Projects cash month by month (one-off or recurring flows), spots the first negative month and estimates runway.

Read the guide automation-cashflow-forecast
node scripts/27-cashflow-forecast.mjs flux.csv --balance 300000 --months 6

For entrepreneurs

Quotes and invoices

Generates a quote or invoice (Markdown or HTML) from JSON: lines, discounts, VAT, currency-rounded total, due date.

Read the guide automation-quote-invoice
node scripts/26-quote-invoice.mjs mon-devis.json --format html --out devis.html

For developers

Cron expression explainer

Turns a cron expression into a plain sentence (FR or EN) and computes its next runs in UTC.

Read the guide automation-cron-explain
node scripts/25-cron-explain.mjs "*/15 8-18 * * 1-5" --count 5

For developers

HTML page audit

Checks lang, title, meta description, viewport, single h1, image alt, empty links and target=_blank without noopener.

Read the guide automation-html-audit
node scripts/24-html-audit.mjs ./dist

For developers

Dependency license check

Classifies node_modules licenses (permissive, weak or strong copyleft, unknown) and flags what deserves review.

Read the guide automation-license-check
node scripts/23-license-check.mjs ./node_modules

For developers

API smoke test

Checks an API's key routes from a JSON file: status, response fields, slowness. Tokens come from the environment.

Read the guide automation-api-smoke
API_TOKEN=… node scripts/22-api-smoke.mjs smoke.json

For developers

Wait for a URL

Waits for a URL to respond after a deployment, retrying at growing intervals, before the next pipeline step.

Read the guide automation-wait-for-url
node scripts/21-wait-for-url.mjs https://staging.exemple.com/health --timeout 120

For developers

TODO scanner

Counts TODO, FIXME, HACK, XXX and BUG markers inside comments, by type and by file, with a ceiling for CI.

Read the guide automation-todo-scan
node scripts/20-todo-scan.mjs ./src --max 50

For developers

JSON file linter

Validates every .json in a folder: errors with line and column, duplicate keys, JSONC mode for comments.

Read the guide automation-json-lint
node scripts/19-json-lint.mjs ./mon-projet --jsonc

For developers

Outdated dependencies report

Sorts `npm outdated` by severity (majors first) and fails CI above a threshold of major gaps.

Read the guide automation-deps-outdated
node scripts/18-deps-outdated.mjs --run --max-major 3

For developers

Changelog from Git

Generates a Markdown CHANGELOG grouped by type from conventional commits (feat, fix, perf…) between two references.

Read the guide automation-git-changelog
node scripts/17-git-changelog.mjs --from v1.1.0 --title "v1.2.0"

For developers

Environment variables check

Compares .env.example with a real .env: missing, empty, example-value and extra variables. Never prints values.

Read the guide automation-env-check
node scripts/16-env-check.mjs .env.example .env --strict

Web monitoring

Access-log summary

Traffic, status classes, busiest pages and IPs, frequent errors and peak hours ("combined" format).

automation-log-summary
node scripts/15-log-summary.mjs /var/log/nginx/access.log

Security & backup

Secrets scanner

Detects API keys, tokens and private keys left in a folder, values masked. Run it before commits or in CI.

automation-secrets-scan
node scripts/14-secrets-scan.mjs ./mon-projet

Web monitoring

Sitemap checker

Walks a sitemap.xml (index included) and tests every URL to catch broken pages and failed redirects.

automation-sitemap-check
node scripts/13-sitemap-check.mjs https://exemple.com/sitemap.xml

Web monitoring

TLS certificate expiry

Days left before each certificate expires, with warning (30 d) and critical (7 d) thresholds.

automation-ssl-expiry
node scripts/12-ssl-expiry.mjs exemple.com autre-site.org

Web monitoring

Uptime check

Checks a list of URLs (status, duration, slowness threshold) and exits with code 2 if any fails.

automation-http-check
node scripts/11-http-check.mjs --file urls.txt --max-ms 3000

Security & backup

Folder inventory

Size by extension, largest files and duplicates found by SHA-256 — handy for auditing a workstation or a share.

automation-folder-inventory
node scripts/10-folder-inventory.mjs ./partage --dupes

Security & backup

Encrypted backup

Encrypts and decrypts a file with AES-256-GCM, scrypt-derived key; the passphrase comes from an environment variable.

automation-encrypt-backup
BACKUP_PASSPHRASE='…' node scripts/09-encrypt-backup.mjs encrypt dump.sql dump.enc

Business & process

RACI matrix check

Checks exactly one accountable (A) and at least one responsible (R) per task, and flags work concentrated on one person.

automation-raci-check
node scripts/08-raci-check.mjs raci.csv

Business & process

Process mapper

From a list of steps: Mermaid diagram, critical path, waiting bottlenecks, efficiency and hand-offs between owners.

automation-process-mapper
node scripts/07-process-mapper.mjs processus.csv --out analyse.md

Business & process

Weekly sales report

Revenue, sales count, average basket and top products in Markdown, compared with the previous week.

automation-weekly-report
node scripts/06-weekly-report.mjs ventes.csv --out rapport.md

Business & process

Invoice reminders

Finds unpaid invoices and drafts one reminder each at day 7, 21 and 45. It sends nothing — you review before sending.

automation-invoice-reminders
node scripts/05-invoice-reminders.mjs factures.csv --drafts relances/

Data quality

CSV ↔ JSON converter

Converts both ways; the direction is inferred from the input file's extension.

automation-csv-json
node scripts/04-csv-json.mjs donnees.csv --out donnees.json

Data quality

CSV diff

Added, removed and changed rows between two exports, on a key. Exit code 2 when they differ.

automation-csv-diff
node scripts/03-csv-diff.mjs avant.csv apres.csv --key id

Data quality

CSV de-duplication

Removes duplicates on one or more columns, ignoring case, accents and whitespace.

automation-csv-dedupe
node scripts/02-csv-dedupe.mjs clients.csv --keys email,telephone

Data quality

CSV profiler

Types, empty rates, distinct values and candidate keys for every column — the first reflex before any data cleanup.

automation-csv-profile
node scripts/01-csv-profile.mjs clients.csv

Getting started

tar xzf elzam-automation-scripts.tgz cd elzam-automation-scripts node scripts/01-csv-profile.mjs samples/clients.csv npm test

Good to know: these scripts read and write local files, and none of them sends any message or data (only the monitoring ones contact the addresses you give them). Try them on a copy first, and always review reminders and drafts before sending them. The messages printed on the command line are in French.

Provided as is, without warranty (MIT license). For a custom need — process audit, automation across a team — that is my job: let's talk.

A process to automate
in your company?

Contact