Luakit: a WebKit browser whose config is a Lua program you can edit
Fast, small, webkit based browser framework extensible by Lua.
At a glance
- What is it?
- Luakit wraps webkit2gtk and GTK 3 in a vim-style browser configured entirely in Lua. This review covers the three config layers, the build flags, the debugging switches and the limits the project states itself.
- Who is it for?
- Luakit suits Linux or BSD users who already like vim-style bindings and want the browser's behaviour to live in Lua files they can read. It does not suit anyone who needs a Windows or macOS build, because the README lists only Linux and BSD package managers.
- Can I use it commercially?
- Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
- Is it still maintained?
- Yes. The repository last received commits 178 days ago.
- What is it written in?
- Mainly Lua, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- luakit/luakit2,330 ★ · +11
| Repository | 2026-10-23 | 2026-11-25 |
|---|---|---|
| luakit/luakit | 2.3k | 2.3k |
11 Stars in the last 33 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Three config layers, and only the last one replaces the stock rc.lua
Luakit stacks its customisation in three places. Typing :settings inside the running browser opens a page of WebKit engine settings. A file at $HOME/.config/luakit/userconf.lua overrides whatever was set on that page. The heaviest option is copying /etc/xdg/luakit/rc.lua to $HOME/.config/luakit/rc.lua, and once that copy exists, luakit ignores the system rc.lua completely.
That last rule has a cost. The README warns that after a luakit update you may need to port changes from the system rc.lua into your own copy. A forked rc.lua never receives new defaults on its own, so every upgrade becomes a manual diff. userconf.lua avoids that, because the stock rc.lua keeps loading underneath it.
Colors and fonts follow the same copy-and-edit pattern: copy /etc/xdg/luakit/theme.lua to $HOME/.config/luakit/theme.lua and change values there.
Linux and BSD packages are the install path, and the source build needs seven dependencies
The README points to distribution package managers first. Debian and Ubuntu use apt-get install luakit, Arch uses pacman -S luakit, FreeBSD uses pkg install luakit, and Gentoo, Guix, OpenBSD and Void Linux are listed as well. No Windows or macOS installer appears anywhere in it.
Building from source asks for GTK+ 3, Lua 5.1 or LuaJIT 2, lfs, webkit2gtk, sqlite3, gstreamer for video playback, and lua-socket for gopher support. The commands are plain:
$ git clone https://github.com/luakit/luakit.git
$ cd luakit
$ make
$ sudo make installRemoval is sudo make uninstall. On BSD the README says you might need gmake in place of make. GTK+ 3 and webkit2gtk are the heavy pieces, so a minimal server image will need a good deal of installed libraries before this compiles.
PREFIX, USE_LUAJIT and DEVELOPMENT_PATHS change where Luakit lives and what runs it
Three make variables matter for anyone packaging or hacking on it. PREFIX defaults to /usr/local, so a distribution-style install looks like this:
$ make PREFIX=/usr
$ sudo make PREFIX=/usr installThe same PREFIX has to be passed again when uninstalling, and changing PREFIX after an earlier build requires make clean first. Skipping that step leaves objects compiled against the old path.
Luakit builds against LuaJIT by default. Plain Lua comes from make USE_LUAJIT=0. A third switch, make DEVELOPMENT_PATHS=1, builds with local paths so you can start luakit from the build directory using the config and libraries in the same tree. The README says to read config.mk for further options, and make test runs the test suite after you change something.
The --log flag takes per-module levels, and debug can feed back into :log
Debug output is switched on at launch with the --log option. The README gives three forms: luakit --log=verbose (or -v), luakit --log=all=debug (or --log=debug), and luakit --log=lua/adblock=debug to turn debug on for the adblock module alone. Scoping the level to one module keeps the output readable.
Inside the browser, :log shows the same console output while the log_chrome module is loaded, which is the default. There is a trap here: debug level can cause a race condition when updating the log page generates debug output, which then triggers another update of the :log page. If the page misbehaves, drop the level or read the terminal instead.
The :lua command runs Lua in the live state. :lua print("Hello World!"); prints to the console, and w:notify() shows a result in the status bar. :lua w:notify(luakit.config_dir) reveals the configuration directory, and :lua w:notify(package.path:gsub(";","\n")) lists the Lua search paths.
Inspecting tables needs a third-party inspect.lua dropped into the config directory
Luakit does not ship a pretty-printer for complex Lua values. The README tells you to copy inspect.lua from github.com/kikito/inspect.lua into the luakit configuration directory, then call it from :lua:
:lua local inspect = require "inspect"; w:notify(inspect(webview))That is a manual step on every machine where you want it, and the file is outside the luakit repository, so its version is yours to manage. For a framework sold on being scriptable, this is the one place where the documented debugging workflow depends on a separate project.
Rendering bugs mostly belong to WebKit, not to Luakit
The bug-reporting section sets expectations directly: most rendering issues come from the WebKit engine in use and cannot be fixed by luakit. Only problems that look like luakit's own go to the issue tracker at github.com/luakit/luakit/issues. If a page lays out wrongly, the fix lives in whichever webkit2gtk your distribution ships, and updating luakit will not change it.
The repository tree supports that split. The top level holds C sources such as luakit.c, web_context.c, ipc.c and luah.c, plus lib/, widgets/ and extension/ directories. The browser engine is not in there. Users coming from a very old luakit version are sent to MIGRATE.md, which means upgrades across big version gaps can break existing configs.
Video playback and HiDPI each need a manual workaround
Two known rough edges come with fixes that you apply yourself. For video, the README says problems are often tied to buggy graphics drivers, and that setting LIBGL_DRI3_DISABLE before starting luakit often helps:
$ export LIBGL_DRI3_DISABLE=1That is a driver-level workaround, not a luakit setting, and the README does not say which drivers are affected. gstreamer is also a listed dependency for playback, so a missing gstreamer install is another thing to check.
On a HiDPI monitor above 1920x1080, pages can look too small. The README suggests opening luakit://settings/ and raising webview.zoom_level to 150 or 200. The zoom is a per-setting value you choose, not an automatic scale factor.
Last push on the develop branch was 2026-06-01, and the newest release in the list is 2.4.0 from 2025-02-14.
Editorial conclusion
Luakit suits Linux or BSD users who already like vim-style bindings and want the browser's behaviour to live in Lua files they can read. It does not suit anyone who needs a Windows or macOS build, because the README lists only Linux and BSD package managers. Before committing, run luakit against your daily sites and check video playback, since the README itself blames graphics drivers for broken video and offers only an environment variable as a fix.
Frequently asked questions
What is Luakit Web Browser?
Luakit is a fast, light micro-browser framework extensible by Lua, built on the WebKit web content engine and the GTK+ toolkit. It uses vim-style bindings and is GPL-3.0 licensed.
How to use Luakit?
Run luakit [URI..] to open pages, or luakit -h to see all launch options. Bindings are vim-style, and typing :help inside the browser explains them.
How to use the Luakit browser?
Start it from a terminal with luakit and optional URIs. Type :settings for WebKit settings, or put your own configuration in $HOME/.config/luakit/userconf.lua.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/luakit-luakit)Star history chart for your README
[](https://hysenlabs.com/projects/luakit-luakit)Was this useful?