OmniBase (LibOmniBase-1.0) — The Modern Database, Cold-Vault, Search & Profile Engine
What OmniBase Does: OmniBase (LibOmniBase-1.0) is a high-performance, zero-dependency database, profile manager, cold-storage vault, compressed ID-set, instant search index, and reactive state library (with an in-game Diagnostic Studio at /ob) for Retail / Midnight (11.x–12.x), WoW Forever (1.60.1), and all Classic flavors. It replaces the 15-year-old stack nearly every WoW addon still relies on — AceDB-3.0, LibDualSpec-1.0, AceSerializer-3.0 + LibDeflate profile strings, and raw unindexed SavedVariables tables — with native C++ C_EncodingUtil CBOR/Deflate pipelines, modern database data structures, and zero-polling reactive signals.
Addon Authors: Upgrade Your Existing Addon in 1 Click (Zero Handler Rewrites)
1-Click Web Converter Studio: https://fishingbuddyforever.com/Omnibase | Offline Kit: OmniBase-Developer-Kit.zip
- Browser
.zip& Folder Converter (Hybrid or Bridge Mode): Drag & drop any existing addon.zipor unpacked folder at fishingbuddyforever.com/Omnibase to inspect exact unified diffs in-browser. Automatically routesAceDB-3.0andLibDualSpec-1.0calls overOmniBaseBridge-1.0, preserves vendoredLibs/and companionOmni*bridges, injects## Dependencies: OmniBase, bundles dual-compatOmniBase_Bridge.lua, and generates an optionalOmniBase_Storage.luastarter (16-shard Cold Vaults, 16-bit Roaring ID Bitmaps, 3-gram Search Tables, and 7D Context Rules). - Built-In
v1.0.3+1-Line Drop-In API (NewAceDB/CreateLegacyBridge): CallLibStub("LibOmniBase-1.0"):NewAceDB(sv, defaults, defaultProfile)(plus:EnhanceDatabase(db, name)/:EnhanceOptions(opts, db)) and your existingAceDB-3.0profiles,['*']/['**']wildcards,RegisterNamespace, and callbacks immediately gain-97.3%CoW profile savings,0 mslogout stripping, and automatic migration of existing playerSavedVariables. - Offline Python CLI, In-Game Studio & AI Coding Agent Skill: Download
OmniBase-Developer-Kit.zipand runmigrate_to_omnibase.py --mode hybrid, type/ob convert(or click Addon Authors: 1-Click Converter in/ob), or dropSKILL.md/MIGRATE_PROMPT.mdinto Cursor, Claude Code, Codex, and Antigravity. - License & CurseForge Required Dependency Policy (
All Rights Reserved): OmniBase is proprietary and non-embeddable — third-party addon makers may not bundleLibOmniBase-1.0files and must list standalone OmniBase as a Required Dependency on CurseForge (under Project/File Relations) in addition to## Dependencies: OmniBasein their.toc.
How Big of an Improvement Is OmniBase?
Compared head-to-head againstAceDB-3.0+LibDualSpec-1.0+ plain LuaSavedVariables, OmniBase cuts profileSavedVariablessize by 97.3% with 0 ms logout stripping (~16.9 KB→~456 B), shrinks large datasets by 82.6% while hydrating only 1/16th of the data on lookup (16× less cold work), compresses 5,000+ quest/item ID tables by 99.8% (576× smaller: 92.2 KB → 160 B), replaces frame-stutteringO(N)table scans with sub-millisecond typo-tolerant 3-gram search, upgrades 2-spec switching to 7-dimension combat-safe auto-profiles, prevents half-written corrupted settings via atomic rollback transactions, blocks Midnight 12.0 Secret Value taint, and runs at 0 idleOnUpdateCPU.
Head-to-Head Benchmark: Legacy WoW Storage vs. OmniBase
Most WoW addons still clone entire default trees into memory on login, recursively walk every table on /reload and PLAYER_LOGOUT to strip defaults, dump megabytes of uncompressed Lua text to disk, scan thousands of rows linearly on the render thread, and corrupt SavedVariables if a Lua error fires mid-save. OmniBase eliminates all of those bottlenecks at the root:
| Workload / Capability | Legacy Stack (AceDB-3.0 + LibDualSpec + Raw SavedVariables) | OmniBase (LibOmniBase-1.0) | Measured Improvement |
|---|---|---|---|
| Profile Settings (500 Nested Keys, 8 Overrides) | ~16.9 KB live table clone + recursive logout strip walk | Zero-Write Copy-on-Write Proxy (0 keys on read, 8 leaves = ~456 B) | -97.3% SV bloat · 37× smaller · 0 ms logout strip |
| Large Historical / AH Data (300 Rows) | 50.4 KB plain Lua table parsed & rewritten every /reload | 16-Shard Cold Vault (OBV1E!...) (8.7 KB total, 1/16 shard hydrated) | -82.6% disk size (5.8× smaller) · 16× less cold work |
| Quest / Item / Spell ID Sets (5,000+ IDs) | 92.2 KB Lua { [id] = true } hash table | 16-Bit Roaring Bitmaps (OBR1E!...) (160 B adaptive RLE / Bitset / Array) | -99.8% SV size (576× smaller) · Fast set math |
| Searching & Sorting 1,000+ Records | Linear O(N) string.find scans & repeated table.sort spikes | Secondary Hash + Binary Range/TopK + Padded 3-Gram Fuzzy Index | Sub-ms typo-tolerant queries · Zero frame stutter |
| Profile Import / Export Strings | AceSerializer + Base64 (+33.3%) or \" / \\ escape inflation | C++ CBOR/Deflate + Escape-Free basE91 (OB1E!...) + CRC32 + MAC48 | Compact, quote/pipe-safe & tamper-verified |
| UI & Module Config Updates | Manual callback wiring, full UI rebuilds, or OnUpdate polling | Wildcard Watch + Lazy Computed + Net-Zero Batch Coalescing | Zero polling · Surgical path-level updates |
| Crash Safety, Schema Upgrades & Undo | Mid-save Lua error leaves half-written corrupted SavedVariables | Atomic Transaction Rollback + Versioned Migrations + 16-Step Undo/Redo | 100% atomic writes · Instant user Undo/Redo |
| Automatic Profile Switching | 2-spec LibDualSpec-1.0 only | 7D Context Engine (Spec, Hero Talent, M+, Delve, Raid, Arena, Zone) | 7 dimensions + automatic combat-lockdown deferral |
| Midnight (12.0+) Secret Value Safety | “attempt to compare/persist secret value” taint errors | SecretGuard Write Firewall blocks/strips issecretvalue & issecrettable | Zero taint · Zero SavedVariables poisoning |
| Background Indexing & Idle Overhead | Unbudgeted login freezes or permanent background timers | C_AddOnProfiler-Adaptive Coroutine Slicer + Hidden Idle Frame | 0 idle OnUpdate CPU · Frame-rate aware |
Upgrading From AceDB-3.0 & Multi-Alt Sync | Manual migration scripts & custom addon-comm plumbing | 1-Line db:ImportAceDB(oldSV) + 1-Line db:EnableOmniSync(ns) | Drop-in migration & optional live CRDT sync |
Built to Power Every Addon in World of Warcraft
OmniBase is designed to be shared as one lightweight standalone engine across your entire AddOns folder. The more addons adopt ## Dependencies: OmniBase, the faster the whole game gets — eliminating duplicated library code, cutting total WTF/Account disk I/O, and making /reload and login/logout dramatically faster:
- Action Bars, Unit Frames, Nameplates, HUDs & Raid Mods: Zero-write CoW profiles across all 8 scopes (
global,profile,char,realm,faction,factionrealm,class,race), reactiveWatch("profile.bars.*")updates, and automatic Spec / Hero Talent / Mythic+ / Raid / Delve profile switching that safely waits outInCombatLockdown()untilPLAYER_REGEN_ENABLED. - Auction House, Crafting, Gathering & Economy Addons: Compress tens of thousands of historical price snapshots and reagent catalogs into 16-shard cold Vaults (82.6% smaller, decoding only the 1 shard queried) with instant binary
Range/TopKfiltering and typo-tolerant 3-gram item name search. - Quest, Collection, Mount, Toy, Pet, Achievement & Transmog Trackers: Store 5,000+ completed or collected IDs in 160 bytes instead of 92 KB using 16-bit Roaring bitmaps with instant
Has,Union,Intersect, andDifferenceacross characters. - Bags, Bank, Guild Ledger, Loot & Inventory Addons: Wrap multi-table inventory and ledger updates inside atomic
Transactionblocks that automatically roll back on error, run sequentialschemaVersionmigrations on addon updates, and give users built-in 16-stepUndo()/Redo(). - Instant Upgrade Path From
AceDB-3.0: Existing addons don’t lose a single user setting — calldb:ImportAceDB(LegacySavedVar)once to import all profiles and scopes while automatically stripping legacy default bloat.
Under the Hood: What Makes OmniBase So Fast
- Zero-Write Copy-on-Write (CoW) Overlay & Auto-Pruning: Reading nested defaults allocates zero keys in
SavedVariables. Writing a value back to its default automatically deletes the override and prunes empty parent tables; explicitniloverrides use printable tombstones (__OMNIBASE_NIL_V1__) so nothing has to be stripped at logout. - 16-Shard Lazy-Hydrated Cold Vaults (
OBV1E!...): Hashes keys across 16 independent compressed shards using Blizzard’s C++C_EncodingUtilCBOR + Deflate when available (with 100% compatible pure-Lua RFC 8949 CBOR / schema-mappedOmniPack+OmniLZfallbacks) and quote/backslash/pipe-freebasE91. Single-key reads hydrate 1 shard; logout re-serializes only dirty shards. - 16-Bit Partitioned Roaring Bitmaps (
OBR1E!...): Dynamically picks the smallest container per 65,536-ID chunk — sorted 16-bitArray, 2048-wordBitset, or run-length encodedRLEintervals — turning sparse and contiguous WoW ID ranges into tiny byte payloads. - Secondary Hash, Binary Range/TopK & Padded 3-Gram Fuzzy Index: Gives addons real database queries in Lua:
FindByexact hash lookups, binary-searched numericRangeandTopKqueries, typo-tolerant 3-gramSearch, and non-blockingRebuildIndexesAsync. - Reactive Signals (
Watch,Computed,Batch): Subscribe to exact paths or globs ("profile.ui.*","profile.**"), derive memoized values withComputed, and coalesce burst edits inBatch(suppressing callbacks completely when a batch’s net change isA → B → A). - Atomic Transactions, Guarded Migrations & 16-Step Undo/Redo:
db:Transaction(fn)snapshots affected state and rolls back bothSavedVariablesand undo history cleanly on Lua error ordb:Abort(). - Midnight
SecretGuard, SignedOB1E!...Strings & OptionalOmniSyncBridge: Protects every write boundary against Midnightissecretvalue/issecrettabletaint, exports authenticatedCRC32+ optional 48-bit MAC profile strings (OB1E!...), and pairs withOmniSyncviadb:EnableOmniSync(namespace)for live CRDT replication. - Standalone 4-Tab Diagnostic Studio (
/ob,/omnibase): Inspect registered databases, export/import profile strings, inspect & flush cold vaults, test live 3-gram fuzzy search, monitor 7D context rules, and run the live benchmark suite againstAceDB-3.0in-game.
30-Second Addon Author Quickstart
-- 1. Add "## Dependencies: OmniBase" to your addon's .toc
local OmniBase = LibStub("LibOmniBase-1.0")
-- 2. Create a zero-write CoW database (with optional 7D auto-profile rules)
local db = OmniBase:New("MyAddonDB", {
profile = {
scale = 1.0,
ui = { locked = false, opacity = 0.95 },
},
}, {
schemaVersion = 1,
contextRules = {
{ profile = "MythicPlus", priority = 90, contentType = "mythicplus" },
{ profile = "DelveSolo", priority = 80, contentType = "delve" },
},
})
-- 3. React to setting changes without polling
db:Watch("profile.ui.*", function(newVal, oldVal, path)
print(path, "changed from", oldVal, "to", newVal)
end)
-- 4. Cold Vaults, Roaring ID Sets & Indexed Tables
local vault = db:CreateVault("PriceHistory", { shards = 16, schema = { "itemID", "minBuyout", "seenAt" } })
local owned = db:CreateIdSet("CompletedIDs")
local items = db:CreateTable("Catalog", { primaryKey = "id", rangeIndexes = { "minBuyout" }, textFields = { "name" } })
-- Optional: 1-line migration from AceDB-3.0 & 1-line live sync when OmniSync is installed
-- db:ImportAceDB(MyLegacyAceDBSavedVar)
-- db:EnableOmniSync("MyAddon:Profile")Slash Commands (Standalone Studio)
/obor/omnibase— Open the 4-tab OmniBase Diagnostic Studio/ob bench— Run the in-game benchmark suite comparing OmniBase vs.AceDB-3.0& rawSavedVariables/ob stats— Print active databases, shard hydrations, blocked secrets, rollbacks & idle CPU metrics/ob flush— Flush dirty cold-vault shards and compact Roaring ID sets
Required Dependency Policy & License: All Rights Reserved (c) 2026 XyGoT. OmniBase is non-embeddable — third-party addons may not bundle, copy, or redistribute LibOmniBase-1.0 files inside their own archives (enforced by license and runtime guard). To use OmniBase, other addon makers are required to list standalone OmniBase as a Required Dependency on CurseForge (under Project/File Relations) and declare ## Dependencies: OmniBase in their .toc, accessing it via LibStub("LibOmniBase-1.0").