[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116251":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":39,"discoverSource":40},116251,"assetcat","digitalhobbit\u002Fassetcat","digitalhobbit"," Index, search and browse your game asset library: a local web UI and CLI that keeps licenses and AI provenance in plain files.","https:\u002F\u002Fpypi.org\u002Fproject\u002Fassetcat\u002F",null,"Python",73,7,1,0,2,16,8,56.31,"MIT License",false,"main",[24,25,26,27,28,29,30,31,32,33,34],"asset-management","claude-code","cli","fastapi","game-assets","gamedev","local-ai","pixel-art","semantic-search","siglip","sprites","2026-11-13 06:31:33","2026-11-23 20:06:45","\u003Cp align=\"center\">\u003Cimg src=\"src\u002Fassetcat\u002Fweb\u002Flogo.svg\" width=\"112\" alt=\"AssetCat: a cat peeking out of a labeled box\">\u003C\u002Fp>\n\n# AssetCat\n\nIf you've collected game assets for a while (Humble bundles, Kenney's all-in-1, itch.io and\nstore packs), you probably have hundreds of packs and hundreds of thousands of files, and no\ngood answer to \"do I own a pixel-art dungeon tileset, may I use it commercially, and is it\nAI-generated?\"\n\n`assetcat` indexes a library like that and lets you browse it in a local web UI or search it\nfrom the command line. What you know about the library (each bundle's license, whether a pack\nis human-made and why you believe so, notes, tags, shortlists) lives in **plain TOML files next\nto the library**, so it syncs with it, diffs cleanly and survives any rebuild of the index.\n\nTo see it in action, watch the [video walkthrough](https:\u002F\u002Fyoutu.be\u002FGXIc4KdZPik). The story\nbehind it (why I built it and how it works with local AI) is in\n[this GammaVibe post](https:\u002F\u002Fgammavibe.substack.com\u002Fp\u002Fassetcat-finding-the-right-game-asset).\n\n- **Licenses and AI provenance:** set them once per bundle or store, override per pack; every\n  pack and file shows what applies and where it came from.\n- **Browse:** a wall of pack covers, a pack page with its readme and license, an image viewer\n  that knows sprite sheet grids (and plays rows as animations), an audio player, fonts in their\n  own typeface, and 3D models (glTF\u002FGLB, OBJ, best-effort FBX) you can turn around, with their\n  animation clips.\n- **Search:** full-text over pack names, folders, file names and readmes; filter by type\n  (sprite, sheet, tileset, ui, sfx, music...), size, license and AI status; 3D models by\n  animated or rigged.\n- **Search by meaning (optional):** describe what you want (\"a slime monster\", \"wooden door\")\n  and get the images that show it, whatever their file names; or open an image and ask for\n  **more like this**. The same model notes what single images show (potion, sword, bread), so\n  word search finds `item_37.png` and pack pages list what a pack contains.\n- **AI tags (optional):** a local vision model looks at each pack and tags its kind, style,\n  perspective and genre (`style:pixel-art`, `perspective:top-down`), so you can filter by them.\n  You can remove or add tags with one click, and your changes survive any re-run.\n- **Pull into a project:** copies files with their license and writes a manifest with credit\n  lines; a 3D model brings the textures it loads. A Claude Code skill does the searching and\n  pulling for you.\n- **Read-only:** your library is never modified. The only folder AssetCat writes in it is its\n  own profile folder.\n\n![The pack wall: Kenney packs filtered to pixel art, with filters by media, content, style and perspective](docs\u002Fscreenshots\u002Fpacks.png)\n\n**Expectations:** AssetCat was built for one real library first (bundles, store packs and\nKenney) and is generalized as other libraries show up. Yours will probably need a few\ncorrections to how folders become packs, which the browse UI lets you make. If something\ndoesn't work for your library, please [open an issue](https:\u002F\u002Fgithub.com\u002Fdigitalhobbit\u002Fassetcat\u002Fissues).\n\n**Contributing:** I'm not taking pull requests for now, so the code stays consistent as it\nevolves. Feature requests are very welcome: [open an issue](https:\u002F\u002Fgithub.com\u002Fdigitalhobbit\u002Fassetcat\u002Fissues)\ndescribing what you need, ideally with a draft prompt for a coding agent that would build it.\n\n## Install\n\nWith [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) (it fetches Python 3.12+ if you don't have it):\n\n```sh\nuv tool install assetcat\n```\n\nor try it without installing: `uvx assetcat --help`. `pipx install assetcat` and `pip install\nassetcat` (Python 3.12+) work too. The latest unreleased version:\n`uv tool install git+https:\u002F\u002Fgithub.com\u002Fdigitalhobbit\u002Fassetcat`. Runs on macOS, Windows and Linux.\n\n## Getting started\n\n```sh\nassetcat init ~\u002FAssets      # 1. the folder that holds your asset folders\nassetcat index              # 2. read the library (the first run takes a few minutes on a big one)\nassetcat serve --open       # 3. browse it at http:\u002F\u002F127.0.0.1:8765\u002F\n```\n\n1. `init` looks at your top-level folders, guesses a layout, and writes a **profile** folder in\n   `\u003Clibrary>\u002Fassetcat\u002F`. It prints what it guessed; read it, and adjust `catalog.toml` in the\n   profile if a section looks wrong (see [How folders become packs](#how-folders-become-packs)).\n2. `index` reads every file's header (sizes, frames, durations, fonts, readme text), finds\n   sprite sheet grids and duplicates across bundles, and renders a contact sheet per pack.\n   Later runs only read what changed, so re-run it whenever you add assets.\n3. In the browse UI, check that packs look like packs. Where they don't (a bundle shown as one\n   giant pack, or a pack split into its sub-folders), open **Layout** and fix it.\n4. Record licenses and AI status: open a pack, **Edit curation**, and fill in the\n   **Bundle defaults** first; most packs inherit them.\n5. Run `assetcat doctor` to see what's left to do. Each problem comes with how to fix it.\n6. Optionally, tag packs with a local AI model ([AI tags](#ai-tags)) and make images searchable\n   by what they show ([Search by meaning](#search-by-meaning)).\n\n## The browse UI\n\nA pack page shows the pack's tags, previews, readme and license, where its license and AI status\ncome from, what its images show, and its files by folder:\n\n![A pack page: Pixel Platformer with its tags, what it contains, license, AI status and previews](docs\u002Fscreenshots\u002Fpack.png)\n\nThe viewer scales pixel art by whole numbers, overlays the sheet's grid (read from Tiled, atlas\nor Kenney files or a size in the file name, or set by you) and plays a row as an animation:\n\n![The viewer: a character sheet with its 24x24 grid and an animation preview](docs\u002Fscreenshots\u002Fviewer.png)\n\nAsset search covers the whole library, filtered by type, media, bundle and AI status. Search by\nwords, or by meaning to find images by what they show:\n\n![Search by meaning for \"a mushroom\": mushrooms from many Kenney packs, including files named only tile_NNNN](docs\u002Fscreenshots\u002Fmeaning.png)\n\nSound and music show as waveforms. Click one to play it in the player bar, which can go on to\nthe next one by itself (*auto-next*):\n\n![An sfx pack: footstep and impact sounds as waveform tiles, one playing](docs\u002Fscreenshots\u002Faudio.png)\n\n3D models (glTF\u002FGLB, OBJ, and FBX on a best-effort basis) show as rendered tiles. The viewer\nlets you turn a model around, switch between its formats and play its animation clips. Search\ncan narrow 3D models to animated or rigged ones:\n\n![Animated 3D characters from several Kenney packs, rendered as tiles](docs\u002Fscreenshots\u002Fmodels.png)\n\nStar packs, folders or single assets to collect them in shortlists (plain TOML in the\nprofile), for example to hand a set of candidates to Claude in a game project.\n\n## How folders become packs\n\nThe profile's `catalog.toml` lists **sections**, one per top-level folder:\n\n```toml\n[[sections]]\nname = \"bundles\"\nfolder = \"Bundles\"\nlayout = \"groups\"            # each folder inside is a group (a bundle or a store) holding packs\n\n[[sections]]\nname = \"kenney\"\nfolder = \"Kenney Game Assets All-in-1\"\nlayout = \"single-group\"      # the whole section is one group...\npack_depth = 2               # ...with packs at \u003Ccategory>\u002F\u003Cpack>\n```\n\nInside a group, every folder gets a **role**:\n\n- **grouping:** just a folder (`Graphics\u002F`, `Audio\u002F`); its sub-folders are looked at for packs.\n- **pack:** one pack; everything inside belongs to it.\n- **collection:** a pack whose sub-folders are packs too (a \"mega pack\" of several packs).\n- **ignore:** not indexed at all.\n\nAssetCat guesses roles from folder names and contents (previews, readmes and licenses mark a\npack). When it guesses wrong, the **Layout** page in the browse UI shows each group's folders\nwith their roles; change one and the tree below shows the result before you save. Roles are\nsaved in the group's curation file, and the page re-indexes to apply them.\n\n![The Layout page: Kenney's folders with their detected roles](docs\u002Fscreenshots\u002Flayout.png)\n\n## Licenses and AI provenance\n\n`index` creates one curation file per group in the profile's `curation\u002F` folder. Edit it in the\nbrowse UI (which keeps your comments and formatting) or by hand:\n\n```toml\nstore = \"Example Store\"\npurchased = 2020\nlicense = \"cc-by-4\"                 # a key in licenses.toml\nai_generated = \"no\"                 # yes | no | unknown\nai_reason = \"Released in 2017, before generative art tools\"\n\n[packs.\"graphics\u002Fforest-tiles\"]     # per-pack overrides, keyed by folder (the Layout page shows keys)\nlicense = \"cc0\"\ntags = [\"forest\", \"pixel-art\"]\ncover = \"Preview\u002Fcover.png\"\ngrid = { \"tiles\u002Fforest.png\" = [16, 16] }\n```\n\nValues inherit: a pack takes its group's license and AI status unless it sets its own, and the\npacks inside a collection inherit from the collection. `licenses.toml` holds your license table\n(CC0, CC BY and a few common store licenses to start with); add one entry per license you own\nassets under. Its summaries are reminders, not legal advice: check the terms that came with your\npurchase before you ship.\n\n`ai_generated = \"no\"` is the claim \"a human made this\", and `ai_reason` is why you believe it:\nthe release date, the artist, the store's policy. With storefronts asking about AI content and\nplayers caring, that reason is worth writing down while you still remember it.\n\n## AI tags\n\n`assetcat classify` shows each pack to a vision-language model running on your machine and\nstores the tags it answers with in the profile. For each pack, the model gets the cover and\ncontact sheet, plus what the index knows: the pack's name, folders, file formats and image sizes,\nand an excerpt of its readme. It answers only with values from the profile's `tags.toml`, which\nyou can extend. With the recommended model, a pack takes about 4 seconds on an M4 Pro Mac (850\npacks in about an hour), and later runs only tag packs that are new or changed.\n\nIt talks to any OpenAI-compatible server. The simplest is [LM Studio](https:\u002F\u002Flmstudio.ai\u002F):\n\n1. Install LM Studio, search for a model (below) and download it.\n2. Start its local server: the Developer tab, or `lms server start`.\n3. Try the model on a few packs (nothing is saved), then tag everything:\n\n```sh\nassetcat config ai_model google\u002Fgemma-4-26b-a4b-qat   # once per machine\nassetcat classify --sample 10                          # print tags for 10 random packs\nassetcat classify                                      # tag every pack; stop and resume anytime\n```\n\n| Model | Download | Notes |\n|---|---|---|\n| Gemma 4 26B-A4B, QAT 4-bit | ~16 GB | Recommended. Best at telling pixel art, vector and 3D apart; ~3.5 s per pack on an M4 Pro |\n| Gemma 4 E4B | ~5 GB | For machines with 16 GB of memory or less. Faster, but gets style wrong more often |\n\nOther models and servers work too: any model that takes images (a \"vision\" model) and a server\nwith an OpenAI-compatible API, such as Ollama (`assetcat config ai_url\nhttp:\u002F\u002F127.0.0.1:11434\u002Fv1`), llama.cpp's server or a cloud API (put the key in\n`ASSETCAT_AI_KEY`). Use `--sample` to see how a model does on your packs before a full run.\nEach model's results are kept apart (`ai\u002F\u003Cmodel>\u002F` in the profile), and the newest result per\npack is the one shown.\n\nAI tags show dashed on the pack page; yours are solid. Removing an AI tag records it in the\ncuration file (`tags_remove`), and adding one records it in `tags`, so a re-run never undoes your\nedits. Both work at bundle level too, by hand: `tags_remove = [\"genre:fantasy\"]` on a group\nremoves that tag from all its packs. Changing `tags.toml` marks the earlier tags outdated, and\nthe next `classify` redoes them.\n\n## Search by meaning\n\n`assetcat classify --kind embed` runs an image-text model (Google's SigLIP 2) over every image\nand stores one vector per image in the profile. Then you can search by description, in the\nbrowse UI (switch the asset search from *words* to *meaning*) or from the command line, and find\nimages that look like a given one:\n\n```sh\nuv tool install --force \"assetcat[ai]\"     # adds PyTorch\nassetcat classify --kind embed            # the model downloads on first use (~1.5 GB, shown)\nassetcat search --meaning a slime monster --type character,sheet\nassetcat search --similar \"Kenney Game Assets All-in-1\u002F2D assets\u002FTiny Dungeon\u002FTiles\u002Ftile_0100.png\"\n```\n\nDescribe what you want in a few words, style included: \"a pixel art slime monster\" finds more\nthan \"slime\". Sprite sheets and animation strips are searched by their frames, not as a whole.\n\nThe model runs inside AssetCat, no server needed. It uses an NVIDIA GPU or Apple Silicon when\nthere is one, and the CPU otherwise (much slower). On an M4 Pro Mac it does about 115 images a\nsecond, so about 200,000 images take half an hour; duplicates are done once, and later runs only\nadd new images. On Windows, PyPI's PyTorch is CPU-only; for an NVIDIA GPU, install the CUDA build\ninstead, which uv picks to match your driver:\n\n```sh\nuv tool install --force --torch-backend auto \"assetcat[ai]\"\n```\n\n`classify --kind embed` says which device it uses (\"... on cuda\").\n\nThe default model is `google\u002Fsiglip2-base-patch16-256`. Larger SigLIP 2 models\n(`siglip2-large-patch16-256`, `siglip2-so400m-patch16-256`) find a little more on hard queries\nand take 3-4 times as long: `assetcat config embed_model \u003Cname>`, then `classify --kind embed`\nagain. Vectors are kept per model, about 350 MB for 200,000 images.\n\n**Subjects.** The same vectors also say what an image shows: each image is scored against \"a\npotion\", \"a sword\" and the rest of the `subject` list in `tags.toml` (about 130 common game\nsubjects). Subjects above a confidence threshold are added to word search, shown in the image\nviewer (\"Shows: bread 43%\") and counted per pack (\"Contains: bottle 4, bread 3, apple 2\"). It's\ncautious on purpose: about one image in ten gets a subject, and tiny tiles rarely do. Add your own\nsubjects to the list and run `classify --kind embed` again; it re-scores the stored vectors in\nseconds without reading any images. A threshold change only needs `assetcat index`. \"More like\nthis\" needs only the stored vectors; searching by a typed description also needs the model (and\nthe `ai` extra) on the machine you search on.\n\n## The profile\n\n```\n\u003Clibrary>\u002Fassetcat\u002F\n├── catalog.toml        sections, junk file names, grouping folder names\n├── licenses.toml       your license table\n├── tags.toml           tag vocabulary: what `classify` may answer, which tags are filters\n├── curation\u002F           one TOML file per group: license, AI status, notes, tags, pack overrides\n├── shortlists\u002F         lists of packs, folders and assets starred in the browse UI\n└── ai\u002F                 AI results, one folder per model (written by `classify`)\n```\n\nEverything you decide lives here. The index (a SQLite database), thumbnails and contact sheets\ngo in your OS cache folder, never in a synced folder, and can be deleted any time:\n`assetcat index` rebuilds them.\n\n## Commands\n\nAll read commands take `--json`. `--library` and `--profile` override the configured paths.\n\n```sh\nassetcat init [LIBRARY] [--dry-run]\nassetcat index [--no-extract] [--no-hash] [--no-sheets] [--workers N]\nassetcat stats\nassetcat packs [--tree] [--section S] [--group G] [--kind K] [--license L] [--ai yes|no|unknown]\n               [--tag style:pixel-art]...\nassetcat search WORDS... [--meaning | --similar FILE] [--type T[,T]] [--media visual|audio|model|font]\n                [--pack P] [--tag T]... [--min-size 16x16] [--max-size 64x64] [--grid] [--limit N]\n                [--animated] [--rigged]\nassetcat search --packs WORDS...\nassetcat show PACK | LIBRARY-PATH [--docs]\nassetcat sheet PACK [FOLDER] [--limit N]\nassetcat pull TARGET... --to DIR [--manifest FILE] [--require-ai no] [--flatten] [--dry-run]\nassetcat classify [--kind tags|embed] [--sample N] [--pack P]... [--section S] [--group G]\n                  [--model M] [--url U] [--redo]\nassetcat config [KEY [VALUE] | KEY --unset]\nassetcat doctor\nassetcat serve [--port 8765] [--open] [--verbose]\n```\n\n`assetcat config` shows this machine's settings: the library, the AI server and model, and the\nmachine's name in AI result files. Environment: `ASSETCAT_LIBRARY`, `ASSETCAT_PROFILE`,\n`ASSETCAT_CACHE`, `ASSETCAT_CONFIG` (the user config file, normally in the OS config folder),\n`ASSETCAT_AI_KEY`.\n\nThe browse UI listens on 127.0.0.1 only, because it can edit your curation files. Keep it that\nway.\n\n## Pulling assets into a project\n\n`pull` copies assets from the library into a game project, together with each pack's license\nand a record of where every file came from. You can pull any mix of:\n\n- **a pack**, by its name or id, as `assetcat packs` and `assetcat search` show them;\n- **a folder or a single file** inside a pack, by its path in the library: as `assetcat search`\n  prints it (relative to the library) or as the viewer's *Copy path* button copies it.\n\nFor example, the whole Tiny Dungeon pack plus one character sheet from Pixel Platformer:\n\n```sh\nassetcat pull \"Tiny Dungeon\" \\\n    \"Kenney Game Assets All-in-1\u002F2D assets\u002FPixel Platformer\u002FTilemap\u002Ftilemap-characters_packed.png\" \\\n    --to my-game\u002Fassets --manifest my-game\u002Fassets\u002Fsources.toml --require-ai no\n```\n\n```\nmy-game\u002Fassets\u002F\n├── Tiny Dungeon\u002F                    the pack, with its folders as in the library\n├── tilemap-characters_packed.png    the sheet...\n├── tileset-characters.tsx           ...with its Tiled file, so the grid comes along\n├── License-Tiny-Dungeon.txt         each pack's license file\n├── License-Pixel-Platformer.txt\n└── sources.toml                     the manifest\n```\n\nThe manifest lists each pack's license, AI status and a ready-made credit line, and for every\nfile where it came from and its hash. Pulling again updates it and skips unchanged files.\n\n`pull` checks everything before copying anything. It refuses files that are still cloud\nplaceholders, packs that `--require-ai no` rules out (not marked human-made; `--force` pulls\nthem anyway) and existing files with different content (`--overwrite` replaces them). It never\nwrites inside the library, and `--dry-run` shows what it would do.\n\n## Claude skill\n\n`skills\u002Fassetcat\u002FSKILL.md` teaches Claude Code to search the library, look at contact sheets,\ncheck licenses and AI status, and pull assets with credits (\"find me a top-down dungeon tileset\nthat's human-made and pull it into this project\"). Copy the\n[`skills\u002Fassetcat`](https:\u002F\u002Fgithub.com\u002Fdigitalhobbit\u002Fassetcat\u002Ftree\u002Fmain\u002Fskills\u002Fassetcat) folder\nfrom this repository into a project's `.claude\u002Fskills\u002F` (or `~\u002F.claude\u002Fskills\u002F` for all\nprojects).\n\n## Cloud-synced libraries and several machines\n\n- **Online-only files:** files that haven't synced are 0 bytes; they're indexed by name and\n  shown as *not synced* until the next `assetcat index`. With Dropbox, make the library folder\n  (at least the profile folder) available offline. `doctor` lists what isn't synced yet.\n- **Several machines:** run `assetcat init \u003Clibrary>` once on each. On the second machine it\n  finds the existing profile and only records where the library is; each machine builds its\n  own index. Curation edits sync through the profile like any other file, and so do AI tags:\n  run `classify` on the machine with the GPU, and the other one picks the tags up on its next\n  `assetcat index`.\n- **Don't** put a git repository or the index inside the synced folder; sync tools corrupt\n  SQLite databases.\n\n## Not there yet\n\n- Search audio by description (\"dark ambient loop\").\n- License suggestions from known license texts and store terms, shown as unconfirmed until you\n  confirm them.\n- Captions for single images from a vision-language model.\n- Packs that are still zip files, and Unity and Godot package formats.\n- More 3D formats (STL, DAE, `.blend`, Draco-compressed glTF), and 3D models in search by\n  meaning (today only models with a bundled preview image are found that way).\n\nWhich of these comes first depends on what people ask for:\n[open an issue](https:\u002F\u002Fgithub.com\u002Fdigitalhobbit\u002Fassetcat\u002Fissues) with what you need.\n\n## Follow along\n\nI build games and tools like this one and write about it on\n[GammaVibe](https:\u002F\u002Fgammavibe.substack.com), starting with\n[how AssetCat came about](https:\u002F\u002Fgammavibe.substack.com\u002Fp\u002Fassetcat-finding-the-right-game-asset).\nVideos are on [YouTube](https:\u002F\u002Fwww.youtube.com\u002F@GammaVibeLab), and I'm also\n[@GammaVibe on X](https:\u002F\u002Fx.com\u002FGammaVibe).\n\n## Development\n\n```sh\nuv run pytest                                   # tests on a generated synthetic library\nuv run python tests\u002Fmake_library.py \u002Ftmp\u002Flib    # the same library, to play with\nuv run --with playwright python scripts\u002Fui_check.py http:\u002F\u002F127.0.0.1:8765\u002F   # browser checks (needs Chrome)\n```\n\nSee [CLAUDE.md](CLAUDE.md) for how the code is organized. AssetCat is built with\n[Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code).\n\n## License\n\n[MIT](LICENSE)\n","AssetCat 是一个面向游戏开发者的本地化游戏素材库管理工具，提供命令行与 Web 界面，用于索引、语义搜索和浏览本地存储的游戏资源。它通过解析文件结构并结合用户维护的纯文本 TOML 元数据（含许可证、AI 生成标识、人工标注等），实现对 sprite、tileset、音效、字体、3D 模型（glTF\u002FOBJ）等多类型资产的结构化管理；支持基于自然语言描述的语义搜索（依赖本地 SigLIP 视觉模型）、按风格\u002F视角\u002F内容等维度过滤，并确保所有操作只读、不修改原始素材。适用于独立开发者或小团队管理数百个商业\u002F开源游戏资源包，尤其适合需合规复用（如商用许可核查）与快速定位特定美术风格（如像素艺术、俯视角地牢）素材的场景。","2026-11-24 04:53:18","CREATED_QUERY"]