general

Basic Item Database

by jarette25 Aug 20251 min readOriginal thread on Discord

Links to a web-based item database for Kathana that shows basic item stats. Also documents a simple JSON API endpoint (itemdb/api.html?item=ID) and a drop-in tooltip-loader.js script with sample HTML for embedding item tooltips on your own pages.

This item database is very basic and is just showing you the basic stats.

Item DB

https://dbuena.github.io/Kathana/itemdb/

If you want to integrate it in your app, you can use this basic end-point api.

Simple API

https://dbuena.github.io/Kathana/itemdb/api.html?item=4001 where 4001 is the ItemID It will respond in json format.

Cross-page Tooltip

https://dbuena.github.io/Kathana/itemdb/test.html If you want to show tooltip of items in your webpages, only include the tooltip-load.js in your page.

<script src="https://dbuena.github.io/Kathana/itemdb/js/tooltip-loader.js"></script>```

And use it like so:
```html
  <p>
    This is <a href="#" class="item-link" data-item-id="4001">Item#5</a>  
    And here is <a href="#" class="item-link" data-item-id="4002">Item#12</a>
  </p>```

Screenshots

Item database table showing five one-handed blade weapons with their IDs, names, descriptions, and level requirements
What this shows
IDItem NameDescriptionLevel Req
4001Old SwordOne Hand Blade0
4002Long SwordOne Hand Blade6
4003ShamshirOne Hand Blade12
4004Earth ShamshirOne Hand Blade10
4005PataOne Hand Blade20