# stashapp/stash

> Stash is a self-hosted web app written in Go that organizes and serves your own collection of videos and images, including both SFW and NSFW content. It gathers information about videos from the internet through community-built plugins and scrapers, and lets you tag files and find them later. Its backend uses Go with a GraphQL API and SQLite, and its frontend uses React and TypeScript.

Source: https://github.com/stashapp/stash
Indexed: commit d04ecc4 on 2026-06-02 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: App
- Language: Go
- Stars: 13,404 at index time
- License: AGPL-3.0
- Code health: 6.3/10, Fair
- Last commit: 2026-06-02

## How it works

On first run, Stash asks for media directories to index, a step the README calls Scanning, and the indexed media becomes available for browsing and tagging. The entry point cmd/stash/main.go starts the application, and internal/api/server.go serves the API that the interface calls. The graphql directory holds the GraphQL schema that defines this API. Metadata such as performers, tags and studios comes from scrapers and from stash-box services, and pkg/stashbox/graphql/generated_client.go is the generated client for talking to stash-box. The ui directory contains the React and TypeScript frontend, where ui/v2.5/src/components/Scenes/SceneList.tsx renders the list of scenes.

- cmd/phasher/main.go: entry point
- cmd/stash/main.go: entry point
- internal/api/server.go: entry point
- pkg/plugin/examples/goraw/main.go: entry point
- pkg/plugin/examples/gorpc/main.go: entry point
Modules: ui, pkg, internal, graphql, .github, docker, root, scripts. 1,561 files, 129,802 lines, 11,136 symbols.

## Code health

- Score: 6.3/10 (Fair)
- Rank: #203 of 4,000+ indexed repos
- Hotspots: ui/v2.5/src/components/Scenes/SceneList.tsx, ui/v2.5/src/components/Tagger/tags/TagTagger.tsx, ui/v2.5/src/components/Images/ImageList.tsx, ui/v2.5/src/components/Tags/TagList.tsx, pkg/stashbox/graphql/generated_client.go
- Lowest file: internal/manager/task_import.go
- Dead code: 335 findings

## Maintenance

- Last commit 2026-06-02
- bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/stashapp/stash/security

## More

- Page: https://repowise.dev/repo/stashapp/stash
- Ask this codebase: https://repowise.dev/repo/stashapp/stash/chat
- Docs: https://repowise.dev/repo/stashapp/stash/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/stashapp/stash
