An adventure log about how I remade deno.land module registry from scratch for denoland.id

Third party modules explorer for Deno Land Indonesia (https://denoland.id/x)

When Deno premiered its version 1.0.0, everyone was on the Deno hype train. And one of the most interesting feature about Deno is that external modules are imported using direct URLs, so rather than downloading a module then store metadata on some package-lock.json-like file, Deno uses URLs which the runtime will download and cache the module locally for future usage. But if you need to have some kind of lockfile, Deno can do this too, which you can read more on the manual about integrity checking.

Third Party Modules 📦

And speaking of modules, lots of third party modules are being submitted on deno.land/x


An adventure log on discovering the secrets of the getInitialProps function and its mysterious object properties — updated March 2020

Sometime around 2018, I was working on a web app using Next.js on an older version. At the time, one of the features of Next.js is that it supports initial data population using the getInitialProps static method, which means that you can populate the page component props before loading the page (e.g. fetching news feeds).

The latest docs for Next.js is available on their official website. At version 9.1.7 and before, the docs was published on GitHub. Specifically at the “Fetching data and component lifecycle” section, it shows how to use getInitialProps and what parameters that can be destructured. …

Griko Nibras

Remote software developer doing web dev things. Email at hello@griko.id.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store