About unpkg.ai
unpkg.ai is an experimental service that generates JavaScript ES modules on demand using large language models. Instead of installing a package, a developer writes an import from a URL whose path is a function signature, such as a currency formatter with typed parameters, and the service returns a module that implements it.
The request format is a GET to /esm/ followed by the URL encoded prompt and a .js ending. The result can be imported directly in a browser or a script. Optional query parameters choose the model, with GPT 4 and Claude 3 given as examples, and a seed to make output repeatable. The home page demonstrates the idea with a currency formatter, a tip calculator with bill splitting, a secure password generator, a color palette generator and a complete playable Minesweeper game, each with a button to try it and view the module.
The vendor describes the approach as top down vibe coding: imagine any module you need and import it before it exists. It calls out systems with dynamic plugins as a good fit. There is no signup, no API key and no authentication, and the site lists no pricing. Because modules are produced by a model at request time, output should be reviewed before being relied on in anything important.
It is aimed at developers prototyping quickly, building plugin style architectures, or exploring what generated code on demand looks like in practice.