DEVELOPER DOCS

API & Tool Embedding Documentation

iLoveTool4 provides lightweight client-side mathematical engines that can be referenced or embedded for educational and non-commercial utility.

1. Client-Side JavaScript Engine

The global computation helper library is exposed on window.ILT4. It includes functions for standard compound interest, currency localization, and string sanitization:

// Calculate loan EMI: calculateEMI(principal, annualInterestRate, tenureInMonths) const emi = window.ILT4.calculateEMI(100000, 8.5, 60); // Format currency: formatCurrency(amount, 'USD' | 'INR') const formatted = window.ILT4.formatCurrency(emi, 'USD');

2. Cron Tool Scheduler API

Automated deployment of queued tools can be triggered via authorized webhook request:

GET https://ilovetool4.com/cron/run?key=YOUR_CRON_SECRET_TOKEN

When invoked, the worker inspects cron/schedule.json, checks timestamp maturities, marks mature tools as published, and triggers an automated rebuild of sitemap.xml.

3. Responsive iframe Embed Policy

Any tool may be embedded into educational portals using standard iframe tags with allow-scripts permissions:

<iframe src="https://ilovetool4.com/paper-love-calculator/" width="100%" height="700" frameborder="0" loading="lazy"></iframe>