← Back to Discover

unpkg.ai

Service that has an LLM write a JavaScript ES module on request from a URL that spells out the function signature, with no signup or API key and permanent caching of generated modules.

App builders

What it does

unpkg.ai builds JavaScript modules on demand. You request a URL of the form /esm/{url-encoded-prompt}.js, where the prompt is a function signature such as formatCurrency(amount:number,currency?:string):string, and the service returns an ES module generated by an LLM. You then import the function straight from that address in your own code. The site says no signup, API keys or authentication are needed. Optional parameters let you choose the model (gpt-4 and claude-3 are given as examples) and set a seed for repeatable output. Generated modules are cached permanently and served with long cache headers, so repeat requests come back quickly. The home page includes interactive examples such as a currency formatter, a tip calculator, a password generator, a color palette generator, a Minesweeper game and a rich text editor. It also lists a health check endpoint and an llms.txt document, and it is described as a product of strawberry.computer.

Capabilities

  • Generate an ES module from a URL-encoded prompt
  • Type signatures in the prompt define parameters and return values
  • No signup, API keys or authentication
  • Optional model and seed parameters
  • Generated modules cached permanently
  • Interactive gallery of example modules

When to use it

  • You want to prototype quickly by importing a function you have only described.
  • You are experimenting with generated helpers in a setup that loads plugins dynamically.