News

Featured:

1.0.2 Release

I am happy to announce that i got a real bust of speed in development the past few days and that happy to announce that Im release 1.0.2 ahead of schedule.

This is the first feature release with all new API endpoints!

Here is a list of some of the things you will find in this update.

  • Complete rewite of the /legions endpoint. Now featuring several query params for sorting.
  • Same with /legion/:id, rewritten completly to rely more on parameters.
  • More data on every endpoint! Getting data for a specific legion now gives you an entire {Object} for the Primarch! And you will now find a list of characters for each legion aswell.
  • NEW endpoints for /primarch and /characters with lots of new data!

Thats it for 1.0.2, right now im focusing on updates to the examples page to conform to this new data, and im always revisiting the styling of the site.

And lastly, I'll be updating the documentation during the day today. So if you get stale data, just wait for about a minute and refresh without cache.

Archive :

1.0.0 RELEASE - And Breaking Prod

So i have finally managed to release v1.0.0 of the Horus Heresy API, finally I realized i had to get around to finishing it.

It was roughly 1 week ago when I started my internship at Volvo Group when I realized I should probably resume one of my older projects and try to incorperate some of the tech I'll be using during the internship.
So some of the highlights of this release where:

  • Sanity CMS for the documentation.
  • Simplifying the endpoints.
  • Updating to Nextjs 15.2 (up from v13, when the app router was new)
  • Updating CSS and simplifing it abit.
  • Move to SSR only.

Anyhow, now its out hope you enjoy!

Breaking PROD

Some newbie mistakes of mine caused my entire production build to collapse from the pull request. Everything worked fine on my local machine so i tested it in Development deployment on Vercel and it build fine there....but I didnt test.

So what happend is that when I adjusted the API Endpoints in code there is a difference on how Nextjs handles the API routes. Well they are pretty much gone, and replaced with a moore "App Router'esque" approach.

And since my fetches where always against my deployed URL I never noticed i had acctually broken the API until i acctually deployed.

That tought me the hash lesson of always testing in Dev with the Dev environment before proceeding.

So how does this affect you? Well it dosnt, there is an unfinished feature on the homepage. But if you look past that, well then everything should work!

API Athentication - v0.3.0

Starting with version 0.3.0, the Horus Heresy API now requires authentication to access endpoints. This means you will need to include an X-API-KEY header with all your requests.

Why the change? Well it turns out free database tiers don't love getting hammered by unlimited requests. To keep this hobby project sustainable I have added some basic rate limits.

How to get an API key: Just throw me an email, LinkedIn or whatever method works for you to reack me, I'll hook you up with a key manually.
Oldschool, yes. But it works.