MIT · core >=0.1.0-beta.1 · sink · linux_amd64, linux_arm64, darwin_arm64, windows_amd64 · 15705.3 KB · Nov 23, 2026
Autostorager 0.2.3
First public release, 2026-11-21.
Autostorager watches up to four folders and hands every print file it finds to the server's storage. The file arrives there like a manual upload: with its preview, its slicer details and its print time. Nothing is moved or deleted before the copy is complete.
What it does
Up to four supervised directories, each added with + New supervised directory.
Each folder has its own
successful/andfailed/.The folder is read every few seconds. A file is taken only after its size has held still across two checks, so a file a slicer is still writing is left alone.
The module asks the storage for a free name and appends
-1,-2and so on if the name is taken. Nothing is ever overwritten.The bytes go through the same storage API as a manual upload, so the file appears with its preview and slicer details.
Only after the copy is committed is the source moved into
successful/.A file that cannot be imported goes into
failed/, with a text file beside it naming the step, the reason, the time and the path.
Which files are taken
Only regular files are taken. The watcher reads the top level of each supervised folder and does not search subfolders.
A symbolic link is skipped, even when its name ends in .gcode or .bgcode. It stays where it is and is not imported, moved or followed. A link can point at any file the server can read, so the watcher never follows one. The same applies to directories, devices, pipes and sockets. Replace a link with the file itself if it should be printed.
The check runs at the scan, again when the file is opened, and once more on the opened descriptor. A file that is larger than the size limit goes to failed/ with the reason.
The watched folder is the boundary
Every operation below a watched folder goes through one os.Root for that folder. The listing, the Lstat, the Open, the MkdirAll, the Rename and the OpenFile all use it, so no path can leave the folder.
successful/ and failed/ must be real directories inside the watched folder. If one of them is a symbolic link that points outside, the move is refused and the source stays where it is.
The failure report is created with O_CREATE|O_EXCL. It never follows an existing file or link, so a pre-created x.gcode-failure.txt cannot make the module truncate a database or a configuration file.
The dashboard card
The card lists the last imports. A green dot marks an import that was committed to the storage; a red dot marks a file that failed and went to failed/. Each dot carries an accessible label, "Imported" or "Failed", for screen readers.
The card says "Autostorager" when no title is set. A title a person gave the card still wins.
Three languages
The page and the manual speak English, German and Czech.
The setting is language on the server's extension settings, under Extensions, Autostorager, Settings. It accepts system, en, de or cs. system follows the browser; a language this build does not ship falls back to the browser and then to English.
Changing the setting restarts the module, because the choice is read at start-up. Pick a quiet moment: an import that is halfway through is cut off by that restart. The manual's EN, DE and CZ buttons switch the language for the visit without writing the setting.
Users and rights
Prusa Connect Local keeps its own accounts. The first account created at setup is administrator of org:local. An administrator adds people under Settings > People; the role on the organization is written with the grant below. The server's root shell is not a PCL account.
The first account is created on the setup page from a code in the server log: docker logs for a container, journalctl -u for a service, or the console on macOS and Windows. The roles are the same on Linux, macOS and Windows. They live in the server's database, not in the operating system's users.
Grant a role with an administrator's session:
Use admin instead of operator for admin rights, and viewer for read-only. The id comes from Settings > People or the answer to POST /api/v1/auth/accounts.
On Windows the server may need to be started as Administrator to bind a port or reach a folder, but that does not make the browser account an admin; the PCL account and its role do. On Linux and macOS the server usually runs as a service user, and the watched folder has to be readable and writable by that user.
The settings
The page's own settings are stored in the module's database and win over the same values on the server's Settings tab. The page's Save takes operate_resource on resource_kind:sink; a viewer can read the page but cannot change it.
The manual
The manual starts with an IMPORTANT block, "Before you start", which explains who may change the settings and how to grant the roles. It has sections for the language, the settings in the extension's Settings tab, the watched folders, the interval, the storage, the size limit, moving the source, the file rules and the rights.
The manual's section headings are semibold, like the headings in the rest of the app.
Install
The extension is a normal module. Install it the way your server takes modules.
The -database sqlite is required: the settings a person edits on the page live in a database of the module's own. The module asks for read_storage and write_storage, because it looks up free names and writes the files. It also asks for operate_resource as a check for the settings write.
If an internal pre-release build is already installed, the same command replaces it and keeps the settings, the folders and the database. A fresh server needs no migration.
Compatibility
Release assets
The bundle carries checksums.txt over every file and checksums.txt.sig, signed with the repository's key. The two archive hashes:
The release is built from commit ae8092a and tagged v0.2.3.
Notes
0.2.3 is the first public release. Earlier 0.1.0 and 0.2.x builds were internal pre-releases and were never published.
The Czech translation is machine-translated. Corrections and new languages are welcome as pull requests against
ui/src/locales/en.jsonandui/src/manual/en.json.languageis a text field because the manifest has no choice type. The accepted values are in the field's description.The manual follows the setting once the module's page or card has loaded. The EN, DE and CZ buttons switch it for the visit.
Credits
The file-and-hand mark and the banners combine two icons from SVG Repo:
The credit line is in the images and in artwork/CREDITS.md; the README names the licences as well. The code is MIT.

Sign in to comment.
No comments yet.