HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
glacambre
firenvim
TypeScript2019–2025
glacambre / firenvim

firenvim

Embed Neovim in Chrome, Firefox & others.

30Distinct people
36Mentions
0Explicit recommenders
6.2KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Embed Neovim in Chrome, Firefox & others.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 6:36:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year36 dated mentions

Observed mentions: 2019-05-09 07:42:04 UTC to 2025-12-10 03:49:00 UTC.

024682019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 3 mentions; 2 submissions, 1 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 6 mentions; 3 submissions, 3 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 8 mentions; 1 submissions, 7 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 7 mentions; 3 submissions, 4 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 8 mentions; 1 submissions, 7 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC321
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC633
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC817
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC734
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC817
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC312
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101

From the project README

An excerpt from the repository, fetched Nov 13, 2026.

Read the project’s introduction
Firenvim Turn your browser¹ into a Neovim client (demos: justinmk 🇺🇸, Sean Feng 🇨🇳). ¹ Firefox and Chrome are specifically supported. Other Chromium based browsers such as Brave, Vivaldi, Opera, and Arc should also work but are not specifically tested. How to use Just click on any textarea and it will be immediately replaced by an instance of Firenvim. To set the content of the now hidden textarea to the content of the Neovim instance, simply :w. If you want to close the Firenvim overlay and return to the textarea, use :q. If you selected an element where you expected the Firenvim frame to appear and it didn't, try pressing <C-e>. Installing Before installing anything please read SECURITY.md and make sure you're okay with everything mentioned. In the event you think of a way to compromise Firenvim, please send me an email (you can find my address on my website). Install Firenvim as a regular Neovim plugin, then run the built-in post-install script. lazy { 'glacambre/firenvim', build = ":call firenvim#install(0)" } vim-plug Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } minpac call minpac#add('glacambre/firenvim', { 'type': 'opt', 'do': 'packadd firenvim | call firenvim#install(0)'}) if exists('g:started_by_firenvim') packadd firenvim endif vundle, others Install the plugin as you usually would, then run this shell command: $ nvim --headless "+call firenvim#install(0) | q" Install the Firenvim addon for your browser from Mozilla's store or Google's. If you would rather build and install Firenvim from source, check CONTRIBUTING.md. Other browsers Other browsers aren't supported for now. Opera, Vivaldi and other Chromium-based browsers should however work just like in Chromium and have similar install steps. Brave, Edge, and Arc might work, Safari doesn't (it doesn't support Webextensions). Permissions Firenvim currently requires the following permissions for the following reasons: Access your data for all websites: this is necessary in order to be able to append elements (= the Neovim iframe) to the DOM. Exchange messages with programs other than Firefox: this is necessary in order to be able to start Neovim instances. Configuring Firenvim Manually triggering Firenvim You can configure the keybinding to manually trigger Firenvim (<C-e> by default) in the shortcuts menu in about:addons on Firefox, or in chrome://extensions/shortcuts on Chrome. Temporarily disabling Firenvim in a tab Temporarily disabling (and re-enabling) Firenvim in a tab can be done either by clicking on the Firenvim button next to the urlbar or by configuring a browser shortcut (see the previous section to find out how browser shortcuts can be configured). Building a Firenvim-specific config Note: If you would prefer VimScript examples, you can consult the (outdated) readme from commit 132979166a02319f0b49815135e60a4e4599de91 or earlier. New: With Neovim nightly builds from 2023/02/17 or more recent, you can use $NVIM_APPNAME to define a completely separate firenvim config. In order to do that, make sure "NVIM_APPNAME" is appropriately set when you run firenvim#install(). When it starts Neovim, Firenvim sets the variable g:started_by_firenvim which you can check to run different code in your init.lua. For example: if vim.g.started_by_firenvim == true then vim.o.laststatus = 0 else vim.o.laststatus = 2 end Alternatively, you can detect when Firenvim connects to Neovim by using the UIEnter autocmd event: vim.api.nvim_create_autocmd({'UIEnter'}, { callback = function(event) local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client if client ~= nil and client.name == "Firenvim" then vim.o.laststatus = 0 end end }) Similarly, you can detect when Firenvim disconnects from a Neovim instance with the UILeave autocommand. Using different settings depending on the url/page/element being edited The Neovim buffer loaded into a textarea is given a unique name. All buffers are named something like this: domainname_page_selector.txt (see the toFileName function). This alows you to configure different settings by creating autocommands targeting/matching the buffername for that url/page/element. For example, this will set file type to markdown for all GitHub buffers: vim.api.nvim_create_autocmd({'BufEnter'}, { pattern = "github.com_*.txt", command = "set filetype=markdown" }) To view the buffername of your Neovim instance in a textarea, use :buffers. Understanding Firenvim's configuration object You can configure everything else about Firenvim by creating a dictionary named vim.g.firenvim_config in your init.lua and setting the keys "globalSettings" and "localSettings". In the dictionary vim.g.firenvim_config["localSettings"] you can map Javascript patterns that match against the full URL to settings that are used for all URLs matched by that pattern. When multiple patterns match a URL, the pattern with the highest "priority" value is used. Here is an example (the settings and their possible values will be explained in the next subsections): vim.g.firenvim_config = { globalSettings = { alt = "all" }, localSettings = { [".*"] = { cmdline = "neovim", content = "text", priority = 0, selector = "textarea", takeover = "always" } } } With this configuration, takeover will be set to always on all websites. If we wanted to override this value on british websites, we could add the following lines to our init.vim. Notice how the priority of this new regex is higher than that of the .* regex: vim.g.firenvim_config.localSettings["https?://[^/]+\\.co\\.uk/"] = { takeover = 'never', priority = 1 } Configuring what elements Firenvim should appear on The selector attribute of a localSetting controls what elements Firenvim automatically takes over. Here's the default value: vim.g.firenvim_config.localSettings['.*'] = { selector = 'textarea:not([readonly],
Read the full README on GitHub

What Hacker News says

8 sources
All the usual suspects named previously: uBlock Origin, Bitwarden, ViolentMonkey, Vimium, etc. Plus: * Buster Captcha Solver --Poetic justice in browser extension form! Uses Google's speech recognition software against Google's ReCaptcha to solve the captchas, This browser extension more than any other has probably saved me from going on a killing rampage against whoever invented ReCaptcha https://github.com/dessant/buster * Typio Form Recovery --Fantastic extension that allows you to recover the data you've just typed into a browser web form and which has been lost through browser crashing / page reloading / etc. Has saved me tearing what's left of my hair out on many occasions: https://typiorecovery.github.io/ * Shift Click --As the name suggests. Shift+Click on any image on a webpage and it will open the image in a new tab. Great fo
Read the rest
r quickly getting the full-size version of images on web pages and more useful than it sounds, as it saves opening the browsers dev tools pane and source code diving. I use it all the time on eBay to inspect full size images of items I'm looking at and which eBay will only display at a certain size: https://shft.cl * Country Flag & Whois --not exactly a necessity, but a fun extension anyway. Gives you a wee flag at the side of your address bar, showing you which country the server of the site you're visiting is hosted in. On a more practical note, you can click the flag to view the Whois info for that domain: https://add0n.com/country-flags.html * Asccidoctor.js Live Preview --A while back I started using AsciiDoc for all my text composing needs, after finding the limitations and ever-multiplying variants of MarkDown increasingly annoying. Unfortunately, while many text editors come with Markdown preview capabilities, I've yet to find one that can do AsciiDoc previews. So that's where this extension comes in. I open my AscciDoc files in my browser and this extension automatically generates a preview, which I can then 'print to PDF' to have a nicely formatted document created using AsciiDoc: https://github.com/asciidoctor/asciidoctor-browser-extension * Stylebot --Inject custom CSS into any webpage. I use it on a couple of sites to fix annoying browser rendering quirks or remove irritating content [with display:none;]. https://stylebot.dev * FireNvim --a nice accompaniment to Vimium. This extension turns text entry windows in web forms into NeoVim edit bufffers, allowing you to edit text using an embedded NeoVim instance. I don't actually use this as much as I thought I might, as I nearly always forget I have it installed: https://github.com/glacambre/firenvim These last two aren't browser extensions as such. But I can't imagine using my browser without these. So I think they deserve an honourable mention: * Pinboard bookmarklet --I use Pinboard to save all my bookmarks. So they're accessible across all my browsers and all my devices. I have the Pinboard bookmarklet on the browser address bar on my desktop machines [and use the 'Share' menu on Android] to quickly bookmark pages from wherever I'm browsing. * Telegram --One step down from permanent bookmarking via Pinboard, I use Telegram as my messenger app and avail of this facility all the time on Android to quickly stash links I want to take a look at later on a 'proper' computer --either to view on a larger screen, or because [as with this post] I want to compose a reply, without wrestling with a crappy touchscreen keyboard. Telegram has a 'Saved Messages' chat. So, on an Android device, I hit the 'Share' icon beside the URL on a page I want to save for later and then in the Share window that pops up, I send the URL to Telegram 'Saved Messages' where I can grab it later, when I'm on a real computer. For anyone using Yandex Mail; Yandex also have a Telegram Bot which provides a similar function but also emails you the link as well. I used to use this til I realised the emails where pretty superfluous and just started sending links to my Telegram 'Saved Messages' instead: https://t.me/YandexMail360_bot EDIT: A couple more I found in my browser's preferences but which I forgot about because you don't directly interact with them: * Redirect AMP to HTML --as the name suggests, tells servers you want to be served up the HTML version of a page rather than the AMP version because... fuck Google, basically. https://www.daniel.priv.no/web-extensions/amp2html.html * Nimbus Screenshot --Comes in handy sometimes when you want to grab a screenshot of part of a webpage which is too big to fit in the browser window without scrolling. Nimbus Screenshot has various capturing modes including 'Select and Scroll' which allows you to do this. https://chrome.google.com/webstore/detail/nimbus-screenshot-... * Chrome Extension Source Viewer --Allows you to download Chrome extensions as CRX files from the Chrome Webstore. Thus allowing you to manually install them on browsers which refuse to install them directly. I've used this to successfully install a couple of Chrome extensions on Yandex Browser in Android, which the browser refused to install, telling me they were incompatible. https://github.com/Rob--W/crxviewer
In Ask HN: What browser extensions are a must-have in 2021?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.