lanx

A simple, zero-config static file server for Arturo

file server http server web server

Lanx

A simple, zero-config static file server for Arturo

Language



What does this package do?

Lanx is a minimal static file server for Arturo. Point it at a folder and it will serve its contents over HTTP - with automatic MIME type detection, directory listings, and index.html support; no configuration needed! 😉

How do I use it?

As a CLI tool

Just run it from any directory:

lanx              ; serves the current directory
lanx ./public     ; serves a specific folder

As a library

Embed it in your own Arturo project:

import'lanx!

server: to :lanx []!
server\root: "./public"
server\port: 8080
server\start

Tip
Drop an index.html in any folder to have it served automatically instead of the directory listing.

Function reference

:lanx type

FieldDefaultDescription
rootcurrent directorypath to serve
port18966port to listen on

start

Start the server using the configured root and port.

server: to :lanx []!
server\start

Contributing

All contributions/ideas/suggestions are 100% welcome!

Noticed something? Open an issue.
Want to add/fix something? Just make a PR and I'll be more than glad to merge it! 🚀


License

MIT License

Copyright (c) 2026 Yanis Zafirópulos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

  -
  
  2
Version
0.1.3Latest
License
MIT

Executable?
Yes
Requires
Arturo >= 0.10.0