Skip to content

Customization & Configuration Guide ​

Unravel is built to be easily configured and white-labeled without modifying core source code. You can configure endpoints, application branding, theme colors, and features directly via config.json.


1. Declarative Customization via config.json ​

At application startup, both the Ingestion Runner (index.html) and Dev Studio (builder/index.html) automatically load config.json.

Full config.json Reference ​

json
{
  "appName": "Unravel",
  "appSubtitle": "Tabular Data Ingestion & Normalizer",
  "appLogoImage": "assets/icons/icon-solo.svg",
  "appLogoIcon": "bi-layers-half",
  "companyName": "Enterprise Global Operations",
  "supportEmail": "operations@enterprise.org",
  "privacyPolicyUrl": "docs/privacy-policy.md",
  "documentationUrl": "https://unfoundry.github.io/unravel-docs/",

  "endpoints": {
    "unravelServiceUrl": "http://127.0.0.1:8000",
    "userInfoUrl": "assets/sample-data/user-info.json",
    "defaultApiUrl": "https://api.enterprise.org/v1/ingest/clients",
    "defaultAuthToken": ""
  },

  "theme": {
    "name": "lumen",
    "primary": "#158cba",
    "primaryDark": "#117095",
    "primaryLight": "#23a8dc",
    "accent": "#158cba",
    "success": "#28b62c",
    "warning": "#ff851b",
    "danger": "#ff4136",
    "surface": "#f6f6f6",
    "border": "#dddddd"
  },

  "features": {
    "enableSamples": false,
    "enableUnravelService": false,
    "enableDecryptionService": true,
    "enableFileBroker": true,
    "enableTelemetry": true,
    "enableHybridEncryption": false,
    "enableDevStudio": true,
    "autoAdvanceFurthestStep": true,
    "defaultSheetDateFormat": "YYYY-MM-DD",
    "maxPreviewRows": 5,
    "allowUnsavedExitWarning": true
  }
}

Configurable Properties ​

KeyDescription
appNameCustom product name rendered in browser title, header ribbons, status bars, and modals.
appSubtitleSub-header description shown in the header ribbon and actively applied as the HTML page <meta name="description">.
appLogoImageCustom image URL or relative SVG path (assets/icons/icon-solo.svg).
appLogoIconAny Bootstrap Icons class used as fallback when appLogoImage is empty.
endpoints.unravelServiceUrlBase URL for companion Unravel Service features (Decryption, Headless Ingestion, Telemetry).
endpoints.userInfoUrlAPI endpoint or relative JSON file returning logged-in author metadata.
endpoints.defaultApiUrlDefault REST API ingestion endpoint populated in Step 1.
theme.*Dynamic CSS color overrides. Unravel is styled using the Bootswatch Lumen enterprise theme.
features.enableSamplesWhen false, hides sample files and starter templates. Defaults to true.
features.enableUnravelServiceMaster toggle. When false, disables remote Unravel Service calls.
features.enableDecryptionServiceWhen false, disables the remote XLSX Decryption Service.
features.enableFileBrokerWhen false, disables the live Unravel Ingestion File Broker redirect button.
features.enableTelemetryWhen false, disables dispatching session error telemetry to Unravel Service.
features.enableHybridEncryptionWhen true, enables client-side RSA-OAEP + AES-256-GCM payload encryption for cloud transit.

2. Modifying Color Palettes & CSS Themes ​

Unravel uses CSS Custom Properties defined at the root of assets/css/style.css:

css
:root {
  /* Brand Theme Colors (Bootswatch Lumen Palette) */
  --unravel-primary: #158cba;        /* Main brand color (Headers, buttons, active steps) */
  --unravel-primary-dark: #117095;   /* Hover states, dark accents */
  --unravel-primary-light: #23a8dc;  /* Highlights, active borders */
  --unravel-accent: #158cba;         /* Secondary accent */

  /* Semantic State Colors */
  --unravel-success: #28b62c;        /* Valid cells, success notices */
  --unravel-warning: #ff851b;        /* Fallback default indicators */
  --unravel-danger: #ff4136;         /* Blocking errors, failed cells */
  --unravel-teal: #75caeb;           /* Badges, info highlights */
  --unravel-purple: #7c2855;         /* Special tokens */

  /* Surface & Background */
  --unravel-surface: #f6f6f6;        /* Ribbon background, subtle card fills */
  --unravel-border: #dddddd;         /* Table borders, card outlines */
  --unravel-text: #222222;           /* Primary text */
  --unravel-muted: #777777;          /* Secondary text */
}

You can customize these either directly in config.json or by editing style.css.


3. Registering Custom Validation Rules ​

Unravel's validation engine is fully extensible. You can register custom domain validation logic in assets/js/validators.js:

Step 1: Add Validator Method ​

Open assets/js/validators.js and add a static method to UnravelValidator:

javascript
/**
 * Custom Validator: Validates ISO 3166-1 alpha-2 country codes
 */
static isCountryCode(val) {
  if (!val) return { valid: false, error: "Country code is required" };
  const validCodes = ['US', 'GB', 'CA', 'DE', 'FR', 'JP', 'AU'];
  const clean = String(val).trim().toUpperCase();
  if (validCodes.includes(clean)) {
    return { valid: true, error: null };
  }
  return { valid: false, error: `Invalid country code "${val}". Must be ISO-2 (e.g. US, GB).` };
}

Step 2: Register in Rule Dispatcher ​

In UnravelValidator.validate(value, rule), add your rule name to the switch statement:

javascript
case 'iscountrycode':
  return this.isCountryCode(val);

Step 3: Register in Dev Studio ​

To allow power users to select your custom rule in the Dev Studio dropdown, open assets/js/builder.js and append your rule name to availableRules:

javascript
const availableRules = [
  'NotEmpty', 'IsEmail', 'IsPostcode', 'IsPhoneNumber',
  'IsNumber', 'IsInteger', 'IsAlphanumeric', 'MatchRegex',
  'IsCountryCode' // Added custom rule
];

4. Customizing Default Starter Templates ​

Edit assets/sample-data/starter-templates.json to configure the templates displayed when developers open Dev Studio. You can define organization-specific fields (e.g. Department Codes, GL Accounts, Employee IDs, Inventory SKUs) so your team never has to build schemas from scratch.

Zero-trust client-side data normalizer suite.