Carlo - headful Node app framework Carlo provides Node applications with Google Chrome rendering capabilities, communicates with the locally-installed browser instance using the Puppeteer project, and implements a remote call infrastructure for communication between Node and the browser. What can I do? With Carlo, users can create hybrid applications that use Web stack for rendering and Node for capabilities: For Node applications, the web rendering stack lets users visualize the dynamic state of the app. For Web applications, additional system capabilities are accessible from Node. The application can be bundled into a single executable using pkg. How does it work? Carlo locates Google Chrome installed locally. Launches Chrome and establishes a connection over the process pipe. Exposes a high-level API for rendering in Chrome with the Node environment. Usage Install Carlo npm npm i carlo # yarn add carlo Carlo requires at least Node v7.6.0. Example - Display local environment Save file as example.js const carlo = require ( 'carlo' ) ; ( async ( ) => { // Launch the browser. const app = await carlo . launch ( ) ; // Terminate Node.js process on app window closing. app . on ( 'exit' , ( ) => process . exit ( ) ) ; // Tell carlo where your web files are located. app . serveFolder ( __dirname ) ; // Expose 'env' function in the web environment. await app . exposeFunction ( 'env' , _ => process . env ) ; // Navigate to the main page of your app. await app . load ( 'example.html' ) ; } ) ( ) ; Save file as example.html < script > async function run ( ) { // Call the function that was exposed in Node. const data = await env ( ) ; for ( const type in data ) { const div = document . createElement ( 'div' ) ; div . textContent = ` ${ type } : ${ data [ type ] } ` ; document . body . appendChild ( div ) ; } } </ script > < body onload =" run() " > Run your application: node example.js Check out systeminfo and terminal examples with richer UI and RPC-based communication betwee...
First seen: 2025-12-06 16:20
Last seen: 2025-12-06 16:20