Hacker News new | ask | show | jobs
by krzyzanowskim 92 days ago
the Web is probably the most limited platform today to build custom text editor, in terms of text layout, interaction and all the small bits that may matter. It is still lacking proper API to interact with the OS input system outside the browser built-in text capabilities. That's why the <canvas> approach is so painful, and everything else is "limited" by the HMTL and Browser implementation details.
1 comments

Could use a WASM environment to run tests or a companion app that run wrap in a (Podman) container, to be safe, e.g :

   const { exec } = require("child_process");
    const express = require('express');
    const app = express();

   app.get('/', (req, res) => {
        exec("req", (error, stdout, stderr) => {
            res.json({error, stdout, stderr}) })
        }); 
    });
   
   app.listen(3000);
I'm not saying it's perfect but took me a minute.