Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

The Pokédex Is 2.4MB. My Users Never Download It.

A random Pokémon generator is a strange thing to optimize. The entire product is: press a button, get a Pokémon. But behind that one button sits the whole dataset of the franchise — 1,025 species across nine generations, an 18×18 type chart, hundreds of moves and abilities, and a learnset table for every single species. The naive versions of this app either hammer a public API on every click or…

The Pokédex, a collection of over 1,025 Pokémon species, weighs 2.4MB when downloaded. However, the author of the application responsible for delivering the Pokédex to users implemented a clever solution to minimize the data that needs to be downloaded. Instead of fetching data from an API each time a user interacts with the app, the entire dataset is compiled during the build step into a single, trimmed JSON file weighing 13MB.

This file contains just the fields necessary for displaying the Pokédex in the app, discarding unnecessary details such as URLs for sprite images and generation data. This approach significantly reduces the amount of data that users need to download, allowing for a faster and more efficient user experience.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Modeling Recurring vs One-Off Events in a Bilingual City Guide

An events listing looks like a simple content type until you notice that two things share the shape and behave nothing alike. A dated concert exists once.

  • Dated events have ISO date and random suffix, recurring events have "-weekly" marker but no date
  • Bolivamos uses a discriminated type to effectively handle these challenges

Building an offline CAD tool that can also turn photos into 3D meshes

I originally put PolyForge together as a ChatGPT skill, just for OpenSCAD, so I could describe a bracket or an enclosure and get back something I could actually print on my modified Ender 3 V2 or my…

  • PolyForge is a standalone Python package for CAD tool
  • Added offline photogrammetry capability without cloud API
  • Runs COLMAP for sparse reconstruction, OpenMVS for dense mesh

More from Sunday 16 August →