The krpano Testing Server is a small and easy-to-use static file web server for localhost development.
It is a single-file application with no installation or setup required.
It allows running local web content without browser file access restrictions.
The server can be accessed on the local system, within the local network and via port forwarding from the internet.
It also provides a mobile-friendly Directory Listing, cache control for fast content updates
and includes a fully featured Code Editor for editing files locally or remotely.
There are two versions of the krpano Testing Server available:
HTTPS encrypts data transfer between the server and the browser.
Required for many Web APIs, including WebXR, geolocation, camera/microphone access, service workers and SharedArrayBuffer.
By default, an automatically generated self-signed certificate is used.
When enabling "Custom Certificate", a custom certificate file can be selected.
Note:
The default HTTPS certificate is self-signed and not trusted by browsers.
A warning page will be shown on first access and needs to be manually accepted.
The Command-Line version offers nearly the same functionality as the GUI version,
except for logging and the built-in code editor.
It is smaller, unbranded and better suited for deployment.
The krpano Testing Server provides a CSS-styled directory listing for easy browsing of files and folders.
To customize the directory listing, place a file named krpanotestingserver.css in the server root folder.
The krpano Code Editor is a fully featured, browser-based code editor
based on CodeMirror and optimized for remote and mobile editing.
It allows editing files directly on your system, across your local network,
or remotely via port forwarding.
Features:
Editing & Access
Edit files directly in the browser.
Works locally, across the network, or remotely.
Built-in file explorer with file management and file dialogs.
Mobile & Touch Support
Optimized for touch devices and mobile workflows.
Virtual keyboard for coding (Tab and cursor keys, customizable layout and size)
Edit bar for common actions such as copy, paste and search.
Direct cursor positioning.
Touch selection handles.
Pinch-to-zoom support.
Custom touch scrollbars.
Code Editing Features
Syntax highlighting for many file types, including krpano XML files.
Autocompletion.
Automatic link, number and color selection on double-click/double-tap.
Syntax-aware block selection.
Standard editing tools such as copy, paste, select, search and replace.
Split view.
Undo / Redo.
Recent files switcher (Ctrl/Cmd + the key above the tab key).
Keyboard shortcuts.
Appearance & Customization
Quick accessible preferences and options.
Many built-in themes, including light and dark themes.
Advanced theme customization with color post-processing filters.
Custom fonts.
Color Tools
Built-in powerful color dialog / color picker.
OKLCH color mixing,
with optional RGB, HSL and temperature/tint modes.
Port forwarding
allows remote access to the local server from the internet.
It works by forwarding a port on your router to the computer running the krpano Testing Server.
This allows accessing the server remotely, for example from mobile devices outside your local network.
The exact setup depends on your router and network configuration.
Security Warning: Exposing the server to the internet may allow unauthorized access.
Always use HTTPS and HTTP authentication when enabling port forwarding!