Today we are going to create a FIFO (First In First Out) type file stream between the browser and a local application.
The idea is to create a local file in the browser, when the file is created the local application writes data to the newly created file, in the browser we will read the data written to the file up to that point, then truncate the file to size 0, repeat, when the writing and reading of the file are complete we will remove the file from the local file system.
In this way we can configure our local application to watch for the creation of specific named files, each performing a discrete process, and stream data from the local application to the file, without using networking.
We'll be using Deno in this example for the local application. Use whatever local application you want. Node.js, QuickJS, C,