native-messaging
native-messaging | proposal-common-minimum-api | |
---|---|---|
6 | 7 | |
47 | 206 | |
- | 3.4% | |
0.0 | 4.7 | |
11 months ago | 26 days ago | |
JavaScript | Bikeshed | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
native-messaging
-
JavaScript Standard Input/Output: Unspecified
// Bun Native Messaging host // guest271314, 10-9-2022 async function getMessage() { const { promise, resolve } = Promise.withResolvers(); // https://github.com/simov/native-messaging/blob/8e99d2a345ae94426a502d05aa5d57b966f6bc78/protocol.js let messageLength = 0, bytesWritten = 0, input = [];
-
How would you fix this Node.js bug?
Does not send messages from host to browser equal or to 65536 length.
-
How to read Node.js process.stdin without using process.stdin.on('readable', () => {})?
In Node.js this code https://github.com/simov/native-messaging/blob/master/protocol.js does this
-
process.stdin.read() without using process.stdin.on('readable', ()=.{})
https://github.com/simov/native-messaging/blob/master/nodejs/example.js#:~:text=Raw,Footer
-
Node.js in Chrome extension
Yes. You can utilize Native Messaging. See https://github.com/simov/native-messaging.
-
Why does RSS constantly grow when reading data from a child process and calling process.stdout.write()?
// Node.js Native Messaging host // https://github.com/simov/native-messaging/blob/master/protocol.js // https://github.com/simov/native-messaging/blob/master/nodejs/example.js // Might be good to use an explicit path to node on the shebang line // in case it isn't in PATH when launched by Chrome process.stdin.on('readable', () => { let input = []; let chunk; while ((chunk = process.stdin.read())) { input.push(chunk); } input = Buffer.concat(input); const msgLen = input.readUInt32LE(0); const dataLen = msgLen + 4; if (input.length >= dataLen) { const content = input.slice(4, dataLen); const json = JSON.parse(content.toString()); handleMessage(json); } });
proposal-common-minimum-api
-
Can you make your own JavaScript by implementing ECMAScript standard?
If you are considering building a modern JavaScript runtime I would suggest reading Minimum Common API.
-
All all Web API interfaces actually JavaScript objects?
Deno, CloudFlare Workerd, VM Labs WASM Worker Server, and others use some semblance of the ServiceWorker onfetch pattern as a server implementation. Why? Because onfetch of a ServiceWorker with Response() used to send a response to the client is ergonomic. Web API's being implemented by JavaScript runtimes that do not target the browser. In order to try to normalize implementation of Web API's for compatibility there is https://github.com/wintercg/proposal-common-minimum-api.
-
Simple requirement: Bundle dependencies into a single script. esbuild, webpack, bun build throw errors. Solution?
I guess you do not support Minimum Common API even though Node.js does?
-
JavaScript Standard Input/Output: Unspecified
Common I/O (stdin/stdout/stderr) module specification #47.
-
Node.js fetch() vs. Deno fetch(): Implementation details...
My goal for one part of this project was to use the same fetch() code in a Node.js and Deno Native Messaging host, respectively, in the spirit of Minimum Common API
-
how to improve nodejs startup times
The premise of this question is precisely why I filed Single HTTPS server for QuickJS, Bun, Deno, Node.js - without reliance on either to build #33. Closed as
What are some alternatives?
better-onetab - :bookmark_tabs: A better OneTab for Chrome :memo: Temporarily removed from firefox :construction: V2 is WIP
native-messaging-bun - Bun Native Messaging host
node - Node.js JavaScript runtime ✨🐢🚀✨
native-messaging-quickjs - QuickJS Native Messaging host
firefox-mute-site - Firefox extension that allows to instantly mute/unmute all tabs from a website
AudioWorkletStream - fetch() => ReadableStream => AudioWorklet
omni - The all-in-one tool to supercharge your productivity ⌨️
native-messaging-nodejs - Node.js Native Messaging host
markdown-viewer - Markdown Viewer / Browser Extension
fetch - Fetch Standard
node-v0.x-archive - Moved to https://github.com/nodejs/node
webbundle-plugins - A Webpack plugin for generating Web Bundles output.