SShortSingh.
Back to feed

Building a 60-Month Three-Statement Excel Model Inside Cloudflare Workers

0
·4 views

The author describes a method for generating a 60-month, three-statement financial workbook in Excel format, aimed at small-business founders preparing loan or lease applications. Chatbot-generated models often fail balance-sheet reconciliation and export static numbers instead of live formulas, which the author's team at ProFormaPlan sought to address. Their TypeScript engine builds OpenXML .xlsx files directly within Cloudflare Workers, relying only on the fflate library for ZIP compression, producing a roughly 29 KB file in about 400 lines of code. The model treats income statement, cash flow, and balance sheet as one closed double-entry loop, with an audit check confirming assets equal liabilities plus equity each month. Cached values are stored alongside formulas so that viewers without recalculation support still display correct figures.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Power failure knocks one Google Cloud London zone offline for six hours in October 2026

On 20 October 2026, a power failure took one zone, europe-west2-b, of Google Cloud's London region offline when backup batteries drained and the generators failed to start. Google's final incident report puts the main impact at about six hours and eight minutes. Failover and cross-zone dependencies also drove up latency and errors in the two healthy zones, affecting more than thirty regional products. The report traces the outage to a cable fault outside the facility that followed an earlier reduction in redundancy, and to generator controllers that wrongly sensed a live power source. Press reports linked the disruption to Revolut and other UK services, but Google's report names no customers and some of those links were not confirmed.

0
ProgrammingDEV Community ·

Regression test checks that a late-order dashboard tile, drill-down and CSV export agree

A reporting provider describes a regression test for a dashboard where the tile, detail view and CSV export must match. The fixture uses three orders in one region at a 10:00 cutoff, defining late as an open order with a promised delivery earlier than the cutoff, so only O-42 should qualify. The test checks specific order IDs rather than row counts, since a count-only check would miss a wrong order like O-43 appearing instead. The same scenario is run through a natural-language query interface, which should either identify O-42 with its scope or state it cannot verify the records. A final pass with a non-matching filter expects a zero tile, an explanatory detail view, and a header-only or clearly disabled export.

0
ProgrammingDEV Community ·

Multilingual Voiceover Pipeline Combines VoxClone and FFmpeg to Keep Long Videos in Sync

A developer found that translated voiceover tracks for the same video drifted out of sync because different languages produce different audio durations. Rather than adjusting timelines by hand, they treated multilingual narration as an asset-generation pipeline. The workflow splits narration into complete idea-based segments, prepares a script per language, and generates one MP3 per segment using the browser-based VoxClone tool. FFmpeg then normalizes and concatenates the audio, with a manifest tracking segment IDs and target durations. The author notes that VoxClone only produces MP3 audio and cannot translate scripts or edit video, so those steps stay outside the tool.

0
ProgrammingDEV Community ·

Bangladeshi Fashion Store Serves WooCommerce Galleries Directly from Google Drive Links

A small Bangladeshi streetwear team faced slow dashboards and bloated backups from uploading large product photos to WordPress. To solve this, the developer built a custom plugin that lets product galleries pull images directly from Google Drive share links. The plugin extracts each file ID, builds a resized WebP image URL, and hooks into WooCommerce so themes display the images normally. The approach reduced storage use and sped up uploads, though it requires public link sharing, manual alt-text handling, and relies on an unofficial endpoint. The author suggests object storage with a CDN for larger stores.