From 88c6dfc4feb79e7028ddcf26277952d6ff200145 Mon Sep 17 00:00:00 2001 From: dhkatz Date: Sat, 7 Nov 2026 17:06:57 -0800 Subject: [PATCH] docs: import spike findings One IMVU product, converted by hand to a local pack, is worn as a T5 product with its parent loading from IMVU. A sample of 60 products fits the pack limits easily; probing revisions takes about 5.5 HEADs a product, and IMVU's CDN met 5 requests a second without limiting. IMVU's CFLs are LZMA-compressed and their index.xml has no ProductRating, so the importer needs LZMA in t5de-api's cfl package and adds the rating. Co-Authored-By: Claude Opus 5.5 --- docs/imports.md | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/docs/imports.md b/docs/imports.md index 748c0f1..a91a8b7 100644 --- a/docs/imports.md +++ b/docs/imports.md @@ -155,8 +155,12 @@ pair and the IMVU accounts' passwords. - Revisions: without an IMVU account, the CDN is probed (`HEAD productdata//`) once per product; afterwards a recheck tries the next few numbers. With one, `authorizeProducts` gives exact revisions. - Reads CFLs with t5de-api's `cfl` package; the conversion follows `@imvu/chkn` (dhkatz/imvu.js) as a reference. -- Validates with t5de-api's `pack` rules before uploading; a product breaking them fails with the reason. (The spike - checks whether typical IMVU products fit; imports may need their own limits.) + IMVU's CFLs are LZMA-compressed (directory and entries), which `cfl` doesn't read yet: it needs LZMA (pylzma's + format; the streams end with an end marker). +- Adds `` to `index.xml` (IMVU's files don't have it; pack rules need it): IMVU's rating, or the + files' if they have a higher one. +- Validates with t5de-api's `pack` rules before uploading; a product breaking them fails with the reason. (In the + spike, products were far inside them.) ### IMVU accounts @@ -252,17 +256,36 @@ products ("Whole shops"). Built (2026-11-07): whole shops listed on IMVU ("Whole shops" above), and `GET /imports/available`. -t5de-catalog takes `t5de-import` tokens on uploads (its PR #2). Still to do: the spike and `t5de-importer` (and -its report of Access Pass products' info). +t5de-catalog takes `t5de-import` tokens on uploads (its PR #2). Still to do: `t5de-importer` (and its report of +Access Pass products' info); the spike is done ("Spike" below). -## Spike (before building the importer) +## Spike (2026-11-07) -1. Import one product by hand as a local pack (full-size textures, no `_contents.json`, parent kept). Does the - client wear it as a T5 product, with the parent loading from IMVU? (Never committed: it's IMVU's files.) -2. Do typical IMVU products fit the `pack` limits? -3. How many HEAD requests does probing take for real shops; does the CDN limit them? +Done by hand with a script (never committed: it's IMVU's files), on general-rated products of one shop (NellLuna, +639 products: mostly furniture, some clothing). + +1. **Worn as a T5 product, parent from IMVU: yes.** A dress and a top, converted to local packs (originals in + place of placeholders, no `_contents.json`, `__DATAIMPORT` kept, `ProductRating` added) and served by the proxy: + the client loaded the dress onto the avatar (local ID 2000000003), took the pack's files from the proxy and the parent's + (`productdata/70310723/1/...`) from IMVU's CDN, and broadcast the outfit. Its only errors ("Asset failed to load" + for a base texture) appear for IMVU's own products as well. +2. **Pack limits: far inside.** 60 products sampled: at most 55 files, 0.29 MiB in all, largest file 0.14 MiB + (derived products carry only what they change; the meshes are mostly in parents). All have a parent. All file + names are Latin-1 and flat. +3. **Probing: 5.5 HEADs a product on average** (revisions 1 to 5, mean 2.5, none missing in between; stopping after + 3 missing in a row), then about 5 GETs (the CFL and its originals). At 5 requests a second, 626 requests over 8 + minutes met no limit from the CDN (only 200s and 404s; Cloudflare, `max-age` a week). About 10 requests a product: a shop of 639 is + about 22 minutes' first import at that pace. 4. ~~Is there a public way to list a creator's products?~~ Yes, general-rated ones ("Whole shops"). +Also found: +- **CFLs**: all `CFL3`, every entry and the directory LZMA-compressed (pylzma's format, with end markers). +- **`_contents.json`** lists each file; originals (`tags` with `original`) and files kept only on the CDN have a + `url`, fetched from `productdata///`. Small originals have no `url`: the CFL's copy is the + original. +- **`index.xml` never has `ProductRating`** (0 of 60), so the importer adds it. +- File names are often URL-encoded (`Skin%20%5B03%5D.xrf`), as IMVU stores them; they're kept as they are. + ## Later - Flattened imports (parent included), if keeping the parent on IMVU causes problems. -- 2.54.0