jsparrow.uk

Hanzibase 2.0 Now Live
10 September 2023

Hanzibase 2.0 Now Live

你好 again!

Hanzibase, a project I started in early 2020 and finished around May that year, had essentially remained in the same state since I had finished it. Unfortunately, my last server got hacked and I had to shut down jsparrow.uk and Hanzibase. Over some of my free time whilst on my placement year at Uni, I’ve redone Hanzibase in javascript (switched over from PHP and Laravel), which is live now here.

I’ve added some new features in addition to bringing back (most of) the old functionality. These include:

  • Dark mode, similar to jsparrow.uk
  • Updates system, a mini blog of sorts on Hanzibase itself to announce smaller changes
  • A lot more characters
  • Like, a lot more


Characters Galore

The main gimmick of Hanzibase previously was its ability to fetch data from APIs for characters that weren’t in its main database. However, there are only a limited amount of unicode han characters, and this gimmick relied on those free APIs (the globse one of which doesn’t seem functional anymore). So I instead decided for this updated version to just fully flesh out the local db with all of the characters I could find in the main API previously used, CCDB.

The result is the character count ballooning from ~4000 to over 20,000. Whilst this certainly adds more coverage, many characters are simply rare variants of other more common ones. On top of that, some very rare characters have no pinyin or translations available in the CCDB API. A lot of these rarer characters also have no animation with hanziwriter.

This is something I’m planning on addressing, but I’m still not sure what the best approach is. CCDB has a field I previously hadn’t used which lists similar characters. This could be of help in reducing the amount of stubs or dead end characters with no content on their page. Another factor is that now the Hanzibase DB is fully self-contained (that is, not liable to changes based upon user input / api calls) I could curate it manually, at least for some entries.