TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ClassicUO/classicuo-web/llms.txt
Use this file to discover all available pages before exploring further.
@classicuo/modding package ships a dedicated types subpath export that contains all Zod schemas and their inferred TypeScript types. These types are used internally by the ClassicUO Web platform to validate shard configuration, manifests, patches, and player profiles. Mod authors can import them for runtime validation or to type their own tooling.
Every type listed on this page is the inferred output of a Zod schema (via
z.infer<typeof schema>). The schemas themselves (shardSchema, shardRulesSchema, etc.) are also exported and can be used for runtime parsing with .parse() or .safeParse().ClientManifest and SourceManifest
Defined in src/types/manifest.ts. The ClientManifest is the top-level configuration object fetched by the client when connecting to a shard. It references the game files, mods, patches, and shard rules.
ClientManifest
mods array is the mechanism by which the client knows which mod bundles to load. Each entry must be a valid HTTPS URL pointing directly to a JavaScript bundle that calls mountInterfaceRoot.
SourceManifest
A simpler manifest used to describe the raw game file source.
ShardRules
Defined in src/types/rules.ts. Controls which ClassicUO Web assistant features are available to players on your shard, and allows you to lock or preset game profile options.
Shard
Defined in src/types/shard.ts. Represents a registered shard entry as stored in the ClassicUO Web shard registry.
Fields
Unique numeric shard ID assigned by the platform.
URL of the shard’s
ClientManifest JSON file. Must begin with https://.Optional list of named mod entries. Each entry has a display
name and a valid HTTPS url pointing to the mod bundle.Optional shard rules configuration. See
ShardRules above.URL of the shard’s logo image.
Display name of the shard.
Geographic region where the shard’s servers are hosted.
Gameplay focus of the shard.
The shard’s official website URL. Must begin with
https://.Optional Discord invite URL. Must match
https://discord.gg/{code}.Numeric encryption mode used by the shard server.
Required client version string. Must match the pattern
\d+.\d+.\d+(.d+)?[a-z]* (e.g. 7.0.95.0).Whether the shard requires
verdata.mul patch file.Semicolon-separated list of map layout pairs, e.g.
0,0;1,1;2,2. Must match (\d+,\d+;?)*.Optional. When
true, the client uses token-based authentication for this shard.Patch and PatchConfig
Defined in src/types/patch.ts. Describe individual file patches applied to the game client and the CDN configuration used to host them.
Patch
PatchConfig
GameProfile
Defined in src/types/gameProfile.ts. The GameProfile interface represents the full set of in-game options stored in a player’s profile. It is validated and serialised by profileSchema (a Zod object schema with over 150 fields).
| Category | Example fields |
|---|---|
| Sound & Music | enableSound, soundVolume, enableMusic, musicVolume, enableCombatMusic |
| Chat & Journal | speechHue, whisperHue, emoteHue, yellHue, partyMessageHue, guildMessageHue |
| Combat colours | innocentHue, criminalHue, enemyHue, murdererHue, beneficHue, harmfulHue |
| Display & Rendering | defaultScale, drawRoofs, treeToStumps, useXBR, shadowsEnabled, auraUnderFeetType |
| Lighting | useAlternativeLights, lightLevel, useColoredLights, useDarkNights |
| Movement | alwaysRun, smoothMovements, enablePathfind, useShiftToPathfind |
| Tooltip | useTooltip, tooltipTextHue, tooltipDelayBeforeDisplay, tooltipDisplayZoom |
| Window & Layout | windowClientBounds, gameWindowSize, gameWindowPosition, windowBorderless |
| Container behaviour | containersScale, doubleClickToLootInsideContainers, useLargeContainerGumps |
| World Map | worldMapWidth, worldMapHeight, worldMapShowParty, worldMapZoomIndex |
| Macro & Counter Bar | macros, counterBarEnabled, counterBarCellSize, counterBarRows |
ShardRules.options.profileOverrides must be valid keys of GameProfile. The Zod profileOverridesSchema is automatically derived from profileSchema.shape, so the type system enforces correctness at compile time.
Runtime parse example:
Import Paths Summary
See Also
Shard Owner Overview
Learn how Shard configuration fits into the broader ClassicUO Web platform.
Shard Rules
Configure ShardRules to control scripting and feature availability.
API Reference
setShardRules() and other runtime API functions.
Overview
Introduction to the modding SDK architecture.