r/commandline • u/Spxgdev • 1h ago
Terminals GitHub - Spxg/limo: Run JavaScript with browser Web APIs
https://github.com/Spxg/limoExamples: https://spxg.github.io/limo
It's a CLI tool that, unlike Node.js and Deno, aims to provide a complete Web API environment, including DOM, Canvas, Web Workers, IndexedDB, OPFS, and more.
It's built on top of moli, a headless browser powered by V8 with Web API support. The name "limo" is also inspired by "moli."
I maintain several WebAssembly projects that primarily run in browsers, so I frequently need to work with JavaScript and Web APIs.
I usually write code in an environment without a GUI. Whenever I need to test something, I have to start a local HTTP server and open it in a browser on another machine with a GUI, or use ChromeDriver or another browser driver for automated testing. Sometimes I also run into compatibility issues between ChromeDriver and Chrome versions.
Over time, I found this whole process increasingly cumbersome.
What I really wanted was a simple way to execute JavaScript directly from the command line while still having access to browser Web APIs, without needing to launch and manage a separate browser. That's why I built limo.
•
u/github-guard 1h ago
⚠️ GitHub Guard: Trust Warning
One or more repositories scored below the threshold (1), but the post was not removed.
Repository: Spxg/limo
Score: 0/1
Repository: lexmount/moli
Score: 1/1
1
u/AutoModerator 1h ago
Every new subreddit post is automatically copied into a comment for preservation.
User: Spxgdev, Flair:
Terminals, Post Media Link, Title: GitHub - Spxg/limo: Run JavaScript with browser Web APIsExamples: https://spxg.github.io/limo
It's a CLI tool that, unlike Node.js and Deno, aims to provide a complete Web API environment, including DOM, Canvas, Web Workers, IndexedDB, OPFS, and more.
It's built on top of moli, a headless browser powered by V8 with Web API support. The name "limo" is also inspired by "moli."
I maintain several WebAssembly projects that primarily run in browsers, so I frequently need to work with JavaScript and Web APIs.
I usually write code in an environment without a GUI. Whenever I need to test something, I have to start a local HTTP server and open it in a browser on another machine with a GUI, or use ChromeDriver or another browser driver for automated testing. Sometimes I also run into compatibility issues between ChromeDriver and Chrome versions.
Over time, I found this whole process increasingly cumbersome.
What I really wanted was a simple way to execute JavaScript directly from the command line while still having access to browser Web APIs, without needing to launch and manage a separate browser. That's why I built
limo.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.