I'm not sure how to implement a Pure Lua filebrowser... is there any code out there for a pure lua file browser and if not how can I implement it?
Pure Lua has no module for filesystem access. You may do one of two things:
For UI you can use one of multiple bindings, like the one for Qt (GUI) or for ncurses (TUI).