VYRINA
Student developer. I build small tools for Honkai: Star Rail, mostly for fun.
(A mask, half joy and half something else. Pull the cord or scroll down.)
(The mask comes off. There is another one underneath.)
Rehearsal notes
(Intermission. The stage manager is calling cues. Watch the lamps.)
- 1
Fixed: • `getLevelMultiplier` uses the full level 1-95 table instead of interpolating between 11 breakpoints (up to ~4% off at some levels, exact at 80). `LEVEL_MULT` and `LEVEL_MULT_KEYS` now cover all 95 levels. • `calculateResMultiplier` limits RES minus RES PEN to -100%..90%, so the multiplier stays between 0.1 and 2.0. • `resolveCharacter` returns `Trailblazer` instead of the raw `{NICKNAME}` placeholder name. • Super Break divides Toughness Reduction by 10 instead of 30, matching the in-game values (a Basic ATK is typically 10). Results are 3x higher for the same input, so if you passed 30 for a Basic ATK, pass 10. Changed: • Documented the units of `toughnessMax` and `toughnessReduce` and how `superBreakBuff` is applied; the README `toughnessMax` example uses 120 instead of 360.
- 2
Changed: • Load the wasm only ONNX Runtime build and pin its version (14 MB instead of 28 MB) • Start loading models when the scan button is clicked or an image is dragged over
- 3
Added: • Screenshot decode with a text line detector (`text_detector.onnx`) • Translated image for screenshots (decoded text drawn over the original lines) • Larger preview with Save PNG • Line overlay on the preview (green = read, orange = skipped) • Click the script badge to switch to the next most likely script • Support light text on dark background in screenshot decode Changed: • Retrain all 4 OCR models (Jarilo, Xianzhou, Penacony, Amphoreus) with screenshot style text and icon training • Detect script from the 12 biggest lines instead of 1 in screenshots • Skip lines under 11px or with low confidence • Add version to OCR model URLs to avoid old models in browser cache Fixed: • Fix random characters when decoding game screenshots (icons, small text)
- 4
Added: • Decode progress status (model loading, script detection 1/4, multiline reading) • Loading spinner on script badge and output pulse during decode Changed: • Retrain all 4 OCR models (Jarilo, Xianzhou, Penacony, Amphoreus) with improved punctuation training • Expand Penacony and Amphoreus alphabets to support standard symbols and punctuation Fixed: • Fix repeated punctuation collapsing into single characters in OCR (e.g. "...", "!!!")
- 5
Changed: • Use canvas smoothing for OCR line downsampling Fixed: • Fix OCR misdetection and corrupted glyphs on large font sizes (e.g. 120px) • Fix aspect ratio distortion when cropping long text lines in OCR • Fix glyph index cells stretching vertically on desktop (0-9 tab)
- 6
Fixed: • `LRUCache.has()` no longer promotes entries in LRU order (previously prevented eviction on subsequent `set()`). Added: • Tests for `LRUCache` operations and `getLevelMultiplier` interpolation. Changed: • Extracted request retry, backoff, and caching logic from `EnkaClient` and `StarRailResClient` into `HttpClientBase`.
- 7
Added: • Support Amphoreus glyph decode (CRNN model and alphabet mapping)
- 8
Added: • Support Penacony glyph decode (CRNN model and alphabet mapping)
- 9
Fixed: • `resolveFullStats` no longer double-counts base HP/ATK/DEF/SPD/CritRate/CritDmg when the character was parsed via Enka's `_statsMap` path. • `applyProps()` no longer silently drops `BaseSpeed`, `HealRatioBase`, `HealTakenRatio`, and `ElationDamageAddedRatioBase` property types. Added: • `statsSource` field on `PlayerCharacter` (`'statsMap' | 'flatProps'`), indicates which Enka API path produced the character's stats. • `healBoost`, `healTakenBoost`, `elationDmgBoost` fields on `ComputedStats`. • `BaseSpeed`, `HealRatioBase`, `HealTakenRatio`, `ElationDamageAddedRatioBase` entries in `ENKA_PROPERTY_MAP`. • Tests for `statsSource` marker, double-count regression, `skillTreeList` parsing, and property map coverage. Changed: • `resolveFullStats` JSDoc now documents that it is mandatory for correct crit values on the `flatProps` path, and notes the eidolon data-source limitation.
- 10
Added: • Support Xianzhou glyph decode (CRNN model and alphabet mapping) Fixed: • Run model inference sequentially to avoid ONNX WASM session crash
- 11
Added: • `resolveFullStats` now computes character base HP/ATK/DEF/SPD from `character_promotions.json`. • `StarRailResClient.getCharacterPromotions()`. • `headIcon` on `PlayerProfile`. • `characterPromotions` on `StatsResolverData` and `StarRailResCharacterPromotion` types. Changed: • Base CRIT (5% CR / 50% CD) moved from `EnkaClient` to `resolveFullStats` via promotion data.
- 12
Added: • `resolveCharacter`, `resolveLightCone`, `resolveRelic` for mapping Enka IDs to StarRailRes game data. • `resolveFullStats` for aggregating trace, LC rank, and relic set stat bonuses. • `StarRailResClient.getSkillTrees()` and `StarRailResClient.getLightConeRanks()`. • `skillTreePoints` on `PlayerCharacter`, `subAffixes` on `PlayerRelic`. • Codename maps for element, path, and relic slot (`hsr_code_names.ts`). Fixed: • `EnkaClient` now computes character stats from equipment and relic `_flat.props` when `_statsMap` is omitted by Enka.
- 13
Added: • In browser glyph OCR engine using ONNX Runtime Web and CTC decoding • Support Jarilo VI glyph decode (CRNN model and alphabet mapping) • Multiline image decode with line segmentation and densest line script detection • Support paste from clipboard (Ctrl + V), drag and drop, and file upload • Decode preview card with thumbnail, script badge, confidence, and dismiss button • Multiline PNG export with line measurement and vertical spacing Fixed: • Lock controls (script select, swap, export) during active decode
- 14
Added: • `calculateTotalRollValueDetailed` for a per-substat roll value breakdown. Fixed: • `calculateRealHitRate` is now clamped to a maximum of 100%. • `StarRailResClient` now throws `HSRRateLimitError` on 429, consistent with `EnkaClient`. • `EnkaClient` now throws a clear error when a profile has no detail data (private/uncached). • Wrong JSDoc substat key example in `relic.ts`. Changed: • `calculateResMultiplier`/`calculateCritMultiplier` now use internal `clamp()` utility (no output change).
- 15
Fixed: • Break Damage toughness multiplier was using the wrong divisor (120 instead of 40). • Level Multiplier table had incorrect values at levels 20/50/60. • Relic DEF% max roll was wrong (0.0432 instead of 0.054).
- 16
Added: • Filter tabs for uppercase, lowercase, and numbers in glyph index (A to Z, a to z, 0 to 9) • Shortcut tooltips on swap, clear, and copy buttons Changed: • Insert clicked glyphs at text cursor position instead of appending to end • Center GitHub repo link in sidebar
- 17
Changed: • Change default font size to 18px (was 24px) • Update size presets to 18, 24, 36, 48 (desktop) and 18, 24, 32 (mobile) • Update third sample quote to Reach the ending of the story in your own way Fixed: • Fix mobile input and output overflow (add 220px max height and touch scroll)
- 18
Added: • Latin to in game script translation (Jarilo VI, Xianzhou, Penacony, Amphoreus) • Reverse translation mode (script to Latin) • 2x retina PNG export directly to clipboard with toast popup • Font size slider (16px to 120px) with quick presets • Character map sidebar with click to insert • Live char and word counter • Preset sample quotes for quick testing • Keyboard shortcuts: Ctrl + Shift + S (swap), Ctrl + Shift + C (copy PNG), Esc (clear) • Mobile responsive layout with script selection modal
- 19
Fixed: • Fixed CommonJS bundle emitting `.js` instead of `.cjs`, which caused `MODULE_NOT_FOUND` when using `require()`. • Fixed `canReachUltimate` parameter documentation in README (4th arg represents flat energy bonus). • Aligned CONTRIBUTING coverage target with Vitest config thresholds.
- 20
Fixed: • `calculateResMultiplier` now clamps result to a minimum of 0, consistent with `calculateDefMultiplier`. Added: • JSDoc comments for all calculator functions and API client classes. • Request deduplication tests for `EnkaClient` and `StarRailResClient`. • `StarRailResClient` error handling example in README. • New example: `examples/discord_bot_damage.ts`.
- 21
Added: • Initial release of `starrail-sdk`. • Calculations for Damage, Break/Super Break, Turn Timeline, Status EHR, Energy, and Relic Roll Values. • API integration for Enka.Network and StarRailRes. • Multi-provider fallback support for `StarRailResClient` with default CDN mirrors (`raw.githubusercontent.com` and `cdn.jsdelivr.net`). • Custom `resProviders` and `enkaProviders` option fields in `StarRailSDKOptions`. • Runnable `examples/` directory and full TypeScript definitions. Fixed: • Cache key scoping for `StarRailResClient` when multiple language instances are used.
Curtain call
A fan-made tribute inspired by Honkai: Star Rail. Not affiliated with or endorsed by HoYoverse.