EARLY ACCESS · Free account samples · Membership coming soon
Tradescore LABS

YOUR DAILY SUPPORT WORKBENCH

TypeScript Desk.

Find the task. Tailor the script. Keep your work.

28 distinct scripts · Search by task, subject or library · TypeScript 5.x / Node.js 22+

Start with a free account

Register once for two complete sample scripts on each scripting site. No card required. Annual membership is coming soon for the remaining library.

Create your free account or sign in →

SEARCH → TAILOR → REVIEW → COPY

Find your next script.

New to typescript? Start here ↓

TAILOR TO YOUR ENVIRONMENT

Choose a script

Official documentation ↗
Review checks

Choose checks for the edited text. This page does not run your code.

UNDERSTAND WHAT YOU RUN

Modules, setup & testing.

Type-check before execution

Use an approved project with TypeScript 5.x and @types/node installed, and package.json set to "type": "module". Azure SDK examples also require the packages named in their requirements. Compile into a separate folder. These scripts use Node.js APIs and are not browser snippets.

tsc --strict --target ES2022 --module nodenext --moduleResolution nodenext --outDir dist script.ts
# Only after successful checks and review:
node dist/script.js

Modules and types

TypeScript adds compile-time checks; it does not validate JSON or external input at runtime. Use explicit guards on unknown values. The library examples demonstrate both types and runtime checks.

const value: unknown = JSON.parse(input);
if (typeof value !== "object" || value === null) {
  throw new Error("Expected an object");
}

Review compiler configuration

Use a project-local compiler, strict checks and a reviewed dependency lockfile. A syntax transformation is not the same as a full type-check. Build instructions here assume Node.js type definitions are available.

tsc --version
tsc --noEmit --strict --target ES2022 --module nodenext --moduleResolution nodenext script.ts

Keep changes intentional

Tailor parameters, read every file path and inspect the output on sample data. Nothing in this page is executed against your devices. Export runbooks to retain edited copies.

// Prefer unknown over any for untrusted input.
// Runtime validation still matters after a clean build.

YOUR LOCAL WORKSPACE

Build a support runbook.

Saved in this browser only. Export before clearing browser data. Do not store credentials or confidential customer data.

BROWSE THE LIBRARY

TypeScript tasks, by subject.

Browse 28 distinct tasks. Two designated samples are available to registered free accounts; the remaining scripts are reserved for membership, which is coming soon.

Configuration · 3 tasks
  • Validate a service configuration

    Validate a JSON service definition using explicit runtime checks, not a type assertion.

    Runtime type guards · TypeScript 5.x / Node.js 22+
  • Audit boolean feature flags

    Report flags that are not explicitly boolean; does not rewrite the configuration.

    Record type validation · TypeScript 5.x / Node.js 22+
  • Compare required configuration keys without showing values

    Input {"baseline":{"PORT":80},"actual":{}}. Compares top-level keys and JavaScript types; never prints values. Does not validate nested configuration.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Support · 1 tasks
  • Summarise tickets by priority

    Validate a JSON ticket array and count tickets in each priority without printing subjects.

    Discriminated string unions · TypeScript 5.x / Node.js 22+
Operations · 2 tasks
  • Check a UTC maintenance window

    Validate timezone-qualified dates and check whether the current time lies in the window.

    Date validation · TypeScript 5.x / Node.js 22+
  • Flag stale backup inventory entries

    Validate an exported backup inventory and flag records older than 24 hours. Does not establish restorability.

    node:fs/promises · TypeScript 5.x with Node.js 22+
Development · 1 tasks
  • Validate a deployment manifest

    Check artifact version, HTTPS download URL and SHA-256 shape without fetching or deploying.

    Object validation · TypeScript 5.x / Node.js 22+
Assets · 1 tasks
  • Find duplicate asset IDs

    Check a JSON inventory for missing or duplicate string asset identifiers.

    Map / unknown validation · TypeScript 5.x / Node.js 22+
Networking · 3 tasks
  • Group API statuses into classes

    Validate a JSON array of HTTP status numbers and summarise response classes.

    Typed reducers · TypeScript 5.x / Node.js 22+
  • Find duplicate host and port reservations

    Flag conflicting reservations for the same host, protocol and port without scanning any network.

    node:fs/promises · TypeScript 5.x with Node.js 22+
  • Find overlapping IPv4 subnet allocations

    Compare an array such as ["10.0.0.0/24","10.0.0.128/25"]. IPv4 only; O(n²), intended for small allocation lists. Host bits are normalised.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Diagnostics · 1 tasks
Azure · 4 tasks
  • List Azure resource groups with the SDK

    List Azure resource groups with the SDK. Adapted from Azure-Samples/azure-sdk-for-js-samples with retained MIT licence.

    @azure/identity / @azure/arm-resources · TypeScript 5.x / Node.js 22+ and Azure SDK packages
  • List subscription tag names with the SDK

    List subscription tag names with the SDK. Adapted from Azure-Samples/azure-sdk-for-js-samples with retained MIT licence.

    @azure/identity / @azure/arm-resources · TypeScript 5.x / Node.js 22+ and Azure SDK packages
  • Inventory resources in an Azure group

    Inventory resources in an Azure group. Adapted from Azure-Samples/azure-sdk-for-js-samples with retained MIT licence.

    @azure/identity / @azure/arm-resources · TypeScript 5.x / Node.js 22+ and Azure SDK packages
  • Check Azure provider registration

    Check Azure provider registration. Adapted from Azure-Samples/azure-sdk-for-js-samples with retained MIT licence.

    @azure/identity / @azure/arm-resources · TypeScript 5.x / Node.js 22+ and Azure SDK packages
Security · 1 tasks
Reliability · 2 tasks
Storage · 1 tasks
Service desk · 3 tasks
  • Calculate restoration time for closed incidents

    Input [{"started":"2026-01-01T00:00:00Z","restored":"2026-01-01T00:30:00Z"}]. Calendar elapsed time, not business hours or SLA compliance.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
  • Find active tickets without a responsible owner

    Input [{"id":"INC1","status":"open","owner":null}]. Closed and resolved statuses are excluded; adapt these labels to your ticket system. No ticket contents printed.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
  • Flag open tickets exceeding an age threshold

    Validate a JSON ticket export and identify open tickets older than the configured hours. This measures elapsed time, not business-hours SLA compliance.

    node:fs, Date · TypeScript 5.x / Node.js 22+
Change management · 1 tasks
  • Detect overlapping approved change windows

    Input [{"id":"CHG1","start":"2026-01-01T00:00:00Z","end":"2026-01-01T01:00:00Z"}]. Half-open intervals; touching windows do not collide. Does not infer affected services.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Web support · 2 tasks
  • Review captured HTTP security headers offline

    Input a JSON object of response headers captured separately. Offline presence checks only; not a security certification. HSTS is relevant to HTTPS.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
  • Flag unexpected hosts in an exported redirect list

    Input {"allowedHosts":["example.com"],"urls":["https://example.com/path"]}. Exact host matching only; no requests, URL paths or query secrets printed.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Logs · 1 tasks
  • Find gaps in an exported event sequence

    Input [100,101,104]. Detect missing ranges and repeated sequence numbers without generating every missing value. Only meaningful for one ordered event stream; resets must be split first.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Asset management · 1 tasks

Validate data at runtime

Treat imported JSON as unknown and check its shape before use. A type assertion changes the compiler view; it does not validate outside data.

Official documentation ↗

Guidance reviewed 11 October 2026. Script results still depend on permissions, installed versions and your environment.

SUPPORT PLAYBOOK

Validate IT inventory exports with TypeScript

Check real input data before trusting typed reports for support decisions.