iTranslated by AI
Revamping a Monster Hunter Now TA Site with Hono SSG and LLMs: 5x Faster Builds, Enhanced Testing, and a Sleeker Design
Since around April 2024, I have been operating a site called MHN Leaderboard, which compiles time attack (TA) records for Monster Hunter Now. The site has accumulated about 50,000 posts to date and still attracts 3,000 to 4,000 active users every month.
I have renewed and released the site as of January 1, 2026.
The site's architecture is as follows:
User posts are submitted via Google Form. Users post their clear videos to their own YouTube/X/TikTok accounts and provide the link in the form.
The submitted data is saved to a Spreadsheet. Since not all submitted data is necessarily correct, some manual and automated checks are performed.
I then fetch the data using the Spreadsheet API, perform various aggregation processes, and use Hono's SSG helper (specifically @hono/vite-ssg) to export static files and deploy them to Cloudflare Pages.
There is no user login, and since the post form is a Google Form and the data source is a Spreadsheet, there is no need for a server or database that runs 24/7. Since only static pages generated by SSG exist, once the build is successful, the site scales by riding on the redundancy of the CDN, ensuring it almost never goes down.
Because of this configuration, I haven't really incurred any costs, and I have been able to operate it for nearly two years with zero infrastructure costs.
However, it is not entirely "cost-free" in terms of effort. Monster Hunter Now seasons are updated every three months, so development is required to accommodate new monsters, new weapon types, and new mechanics. I also spend time on customer support activities, such as responding to incorrect data submissions or suggestions for new rules. Thus, a certain amount of effort is constantly required for game updates and site maintenance.
I am sometimes told that I should add ads to earn a little extra money, but current ad networks truly degrade the user experience. As a user of this site myself, my policy is to not include ads.
Renewal
Finally reaching the main topic, the background for the renewal is:
I got bored during winter break- The display had become chaotic due to the increase in monsters, weapon types, and categories.
- The build time had become long due to the increase in data volume.
The display had become chaotic due to the increase in monsters, weapon types, and categories
In particular, I personally felt the site was difficult to use because I couldn't understand what was what, as the TA categories had increased.

One good point about the existing record display was that it could list all records regardless of the monster or weapon. If the goal is to find the fastest record among a certain monster, this listing view was convenient. Certainly, this view was sufficient while there was less data.
However, there is now too much data, so information other than what you want to see is displayed, making it difficult to grasp at a glance which record is which. For example, if you want to see the record for a 10-star Paolumu, Light Bowgun, paralysis, no heroics, no refinement, Step Shot, it's quite difficult to access it immediately (though it might be possible if you have good eyesight).
Additionally, since about 65% of users are mobile users, it is possible that they are not even getting a good overview with the current data display.
The build time had become long due to the increase in data volume
In the current CI, the SSG file generation process was taking about 5 minutes. This is quite slow for generating only around 1,200 files. I use the scheduling feature of GitHub Actions for regular execution, but since GitHub Actions has limits on the CI time available in the free tier, it would eventually cost money if left as is.
Being able to operate for free without burden is quite important. Operating a community site like this has a strong philanthropic aspect, and since it is a personal project, it is easy to quit. In such a situation, the burden of even a small amount of money tends to increase the pressure to shut down the site.
What I did
Adding unit tests using Vitest
Before cleaning up the design, I added minimal tests for the existing core logic. Basically, since it is a design change, I assumed there would be no logic changes, but it was a good opportunity to write tests.
One might ask why there were no tests until now, but since the core logic was only about 300 lines per file (within my mental memory) and there were only about 6 types of pages, I left it alone, thinking "well, only I am touching it..." considering the frequency of changes.
That said, I expect more modifications by LLMs in the future. When having an LLM write code, it is important to be able to confirm quickly and easily that there are no regressions. Therefore, I wrote tests for the core logic part before making changes.
Design cleanup
As you can see from the original design, I am not a designer and have no UI design skills. I had concerns that if I were to just change the design normally, I would end up making a similarly mediocre UI.
However, we are now in an era where LLMs can do a good job, so I created the following prompt.
# Background
`./mhn-leaderboard` is a leaderboard site for managing time attack records for Monster Hunter Now. The site URL is `https://mhn-leaderboard.pages.dev/`. This site has a massive amount of records for each monster and weapon. I would like to renew the site. In particular, the site design is old, and visibility and operability have become worse due to the increase in monsters and records, so I want to do something about it.
## Target Site
Representative pages of the target site are shown below:
- `https://mhn-leaderboard.pages.dev/`
- `https://mhn-leaderboard.pages.dev/%E6%98%9F10/%E5%85%A8%E5%B1%9E%E6%80%A7/beatTime`
- `https://mhn-leaderboard.pages.dev/%E6%98%9F10/%E5%85%A8%E5%B1%9E%E6%80%A7/weaponGrade`
- `https://mhn-leaderboard.pages.dev/rankers/monsterGrade/%E6%98%9F10`
- `https://mhn-leaderboard.pages.dev/archives/%E3%83%89%E3%82%B9%E3%82%B8%E3%83%A3%E3%82%B0%E3%83%A9%E3%82%B9`
- `https://mhn-leaderboard.pages.dev/guideline`
- `https://mhn-leaderboard.pages.dev/changelogs`
- `https://mhn-leaderboard.pages.dev/supportus`
Also, the implementation of how these pages are dynamically generated is described in `./mhn-leaderboard/src/index.tsx`.
# Available MCP
- playwright
- chrome-devtools
# Development Guide
- The target repository is `./mhn-leaderboard`. Let's add the created code and documentation under this repository.
- However, pre-development artifacts such as design proposals can be added to `./.claude/tmp`.
- Do not write code all at once; let's write in small units.
- Every time you finish a section of coding, check it while using chrome-devtools and playwright.
- If you have several options for design or coding and are unsure, consult me to confirm before proceeding.
# Important Notes
- Utilize frontend-design skills to the maximum.
- Designs that make heavy use of AI-generated-like emojis are prohibited.
- Please value simplicity, sophistication, and functionality.
# Requests
- Thoroughly analyze the existing site's design.
- Propose a new site design plan.
- If necessary, you may interview me beforehand.
- Once you get approval for the proposed design, please actually modify the repository code.
I had the LLM analyze the existing site and think of a design plan for the new site by writing out "why I want to change the design," "where the targets are," "how to proceed with development," etc.
Skills and MCP are already prepared to a minimum. Specifically, I have the LLM resize screenshots taken by Playwright using Imagemagick before throwing them at the LLM. If you neglect that, you will die from frequent errors like this:
At least one of the image dimensions exceed max allowed size: 8000 pixels
After throwing the prompt, the LLM will present several confirmation items or questions, so I answered them to keep the rally going, approved the final proposal, and had it proceed with the implementation. Ultimately, it became this UI.

The biggest change is that I have changed it to display records within a monster by weapon type. The UI has been changed from the previous state where all records were displayed regardless of the weapon type, to one where records are not displayed until a weapon is selected.
In a sense, this means abandoning the overall list view. Either way, monsters and weapon types will increase more or less, and it will inevitably reach a state where they cannot be listed, so I decided that I would have to give up on it someday.
Since the vertically stacked hunt record display is in time order, the fastest ones are always at the top. The weapon tab is yellow where the fastest record across weapons is posted, so it is obvious even for people who want to know the overall fastest record.
As for other pages, I only made changes such as matching the colors and tastes; I did not incorporate any differences in essential display information or usability.
Adding E2E tests using Playwright
Once the design changes settled down, I added E2E tests using Playwright. I wrote minimal E2E tests here as well, anticipating that there will be more modifications by LLMs in the future.
Regarding fixture data, I wanted to use data as close to production as possible for the tests, so I created them by sampling some from production data. I assume there is no problem as I do not keep any personal information.
Incidentally, I made the fixture data created here usable during normal development as well. Previously, I had to call the Spreadsheet API during initial development to fetch data and save it as a local file, so development startup was slow. I am low-key happy that it became faster since I started using fixtures.
Speeding up build time
I initially thought the cause of the build taking time was in the current tech stack. I am using Hono's SSG feature, but Hono itself is not a framework specialized for SSG. At the time, Hono's SSG feature had just been added, and I was using it as a "human guinea pig," but I had roughly assumed that if I used a dedicated framework like Astro, 11y, or Gatsby for the current scale, it would become faster on its own.
However, when I actually executed bun run build (internally using @hono/vite-ssg) at hand, I found that it was reading the local file containing the data obtained from the Spreadsheet (called cache.json) every time it generated a file with SSG.
Hono's SSG makes responses by accessing the app directly in Vite's SSR mode (probably), but local file access IO was occurring each time. When viewed as one access during local development, the IO to the local file doesn't actually feel that slow, but the problem is during the build. Because it was in a state of generating IO for 1,200+ pages at once, they piled up, eventually taking about 5 minutes.
So, the countermeasure is to reduce this IO occurring each time. I stopped accessing the local file for every access, instead reading all data into a variable like cachedData on the first access, and reading from that memory cache access thereafter. Memory usage temporarily skyrockets, but I decided it was acceptable and acceptable.
By incorporating this change, I was able to shorten the SSG build time, which used to take about 5 minutes, to about 1 minute and 20 seconds. Is this almost all the fault of this... Sorry for suspecting you on my own, Mr. Hono.
Updating Vite/Bun/Hono
I updated Vite, Bun, and Hono. That said, Bun and Hono were minor version upgrades, so it was no big deal. The impact was significant for Vite. I was originally using the 5 series, but when I raised it to the 7 series at once, the parts importing node:fs and node:path began to be included in the build target for the browser, causing the SSG build to fail. I don't feel like Vite is bad, but that's how the phenomenon appeared.
It was possible to revert the Vite version, but I thought it would be cleaner in terms of design to stop accessing data sources (CSV) obtained from Spreadsheets etc. using fs in the first place, so I changed the implementation. Specifically:
- Added a separate task to fetch data from Spreadsheet and create CSV
- On the app side, access CSV using Vite's static asset import (like
import cachedMasterData from './generated/cache.json')
By doing this, I was able to strip all processing using node from the app side.
As a result, I don't know why, but the build began to complete in about 1 minute to 1 minute and 10 seconds.
Summary
There were two major things I wanted to achieve with this renewal: "Making a UI that can quickly reach the records you want to see" and "Not breaking the form that can be operated continuously for free."
On the UI side, the previous policy of "lining everything up on one sheet" was nearing its limits against the increasing amount of information on categories, monsters, and weapons. By switching to accordion + weapon type tabs, I think I was able to prioritize finding ease for mobile users, even if I sacrificed a little bit of list-viewability.
On the operational side, it was a pain point that the SSG build time was increasing and starting to press the free tier. When tracking the cause, the structure of re-reading data for every page generation was a bottleneck, and by shifting this to a "create a cache at build time and load statically" method, I was able to significantly shorten the build time. As a result, I was able to maintain the site's best quality of scaling as a static site delivered via CDN without having a server or database.
As long as Niantic continues to update Monster Hunter Now, the effort for data maintenance and specification tracking will not disappear, but at least I have made it a state where the "psychological burden for maintaining" does not increase. I will continue to calmly update it as a place where you can use it comfortably without ads.
Advertisement
If you are interested in Monster Hunter Now, I would be happy if you register from the link below, as you can get items such as recovery potions.
If you are already playing, let's be friends!!!
- Friend Code:
436994896396
Related Links
Discussion