Skip to content

Show free/available disk space on the Statistics page #7194

Description

@sleezybusinessmanNSW

Describe the feature you'd like

The Statistics page shows library totals (scene count, total size, duration, etc.) but gives no indication of how much free space remains on the drives backing the library. To check remaining space, I currently have to shell into the server or check the OS/NAS separately, which is disconnected from the Stash UI itself.

Describe the benefits this would bring to existing users

Add a small section/card to the Statistics page showing, for each configured library path (or each unique underlying filesystem/mount point):

Total capacity
Free space
Used space (and/or a simple progress bar)

This could be pulled from the OS filesystem for each path already configured under Settings → Library, so no extra configuration would be required.

Is there an existing way to achieve this goal?

Checking free space manually via SSH/NAS dashboard — works, but separate from Stash.

A community plugin that shells out to df/PowerShell and displays the result via a UI plugin — possible, but can't get real disk numbers purely from browser JS, and would need a companion backend/script component to be reliable.

A dedicated backend GraphQL field (e.g. on the Stats type) that calls the OS's disk-usage API per configured path, surfaced by a new card in the frontend StatsPage component — this seems like the cleanest approach.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover the core request of my proposal

Additional context

This would be especially useful for larger/self-hosted libraries approaching capacity, so an "at a glance" free space indicator is available without leaving the Stash interface. Happy to help test or contribute a PR if this is something the maintainers would consider.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestUser request for a feature or functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions