---
title: "Making a web app generator with open ML models"
description: "A Node.js/Express server can generate web apps from a text prompt by streaming tokens from a code LLM (WizardCoder-15B on Hugging Face Inference Endpoints) straight into the browser as HTML."
url: "https://swe.quest/articles/making-a-web-app-generator-with-open-ml-models-3da427bd1ac5acd0"
canonical: "https://huggingface.co/blog/text-to-webapp"
source: "Hugging Face"
published: "2023-07-03"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["llms","ai-coding","javascript","inference"]
---

# Making a web app generator with open ML models

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-07-03, 9 min read, How-to. Original: [https://huggingface.co/blog/text-to-webapp](https://huggingface.co/blog/text-to-webapp)

## Summary

A Node.js/Express server can generate web apps from a text prompt by streaming tokens from a code LLM (WizardCoder-15B on Hugging Face Inference Endpoints) straight into the browser as HTML. Prompt tuning does most of the work: terse imperative instructions, pre-seeding the output with \`\<html\>\<body class=...\>\`, and requiring TailwindCSS so styles arrive inline without a stylesheet that stalls rendering. Image URLs come from a Stable Diffusion \`/image\` endpoint that the model is told to call. Alpine.js provides a minimal UI, and DaisyUI's shorthand classes cut token usage compared with verbose Tailwind utility classes.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)

## Prerequisites

- Node.js and Express ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- basic HTML and CSS ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- LLM prompting basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

WizardCoder, Hugging Face Inference Endpoints, huggingface.js, Express, TailwindCSS, Stable Diffusion, Alpine.js, DaisyUI

## Related posts

- [Generate Images Locally with Docker Model Runner and Open WebUI](https://swe.quest/articles/generate-images-locally-with-docker-model-runner-and-open-webui-a7d2d8b5e6b87cba.md): Docker · 2026-05-05 · Medium · 7 min read · Inference & serving, Containers, Developer tools, Computer vision
  Docker Model Runner can now serve diffusion image models locally through an OpenAI-compatible /v1/images/generations endpoint.
- [Create an infinite icon library by fine-tuning Stable Diffusion](https://swe.quest/articles/create-an-infinite-icon-library-by-fine-tuning-stable-diffusion-bfc1ceb5caaf1412.md): Modal · 2024-05-21 · Medium · 12 min read · Model training, Computer vision, Inference & serving, Serverless, Python
  Stable Diffusion v1.5 is fully fine-tuned on the ~300-icon Heroicons set to generate new icons in a similar black-and-white line style.
- [Getting Started with the OpenAI SDK for Deno](https://swe.quest/articles/getting-started-with-the-openai-sdk-for-deno-c6fcd6c76fd10286.md): Deno · 2023-12-15 · Medium · 7 min read · TypeScript, LLMs, JavaScript
  OpenAI's official Deno SDK on deno.land/x is a TypeScript-first module loaded over HTTPS, which makes loading more efficient on edge platforms like Deno Deploy, Netlify and Supabase and gives VS Code type support without extra configuration.
- [Introducing Agents.js: Give tools to your LLMs using JavaScript](https://swe.quest/articles/introducing-agents-js-give-tools-to-your-llms-using-javascript-690428d96ad96e44.md): Hugging Face · 2023-07-24 · Medium · 4 min read · AI agents, JavaScript, LLMs
  Agents.js is a JavaScript library from huggingface.js that gives LLMs tool access in the browser or on Node.
- [Inference for PROs](https://swe.quest/articles/inference-for-pros-8849074774f039ec.md): Hugging Face · 2023-09-22 · Medium · 10 min read · Inference & serving, LLMs, API design, Python
  Hugging Face PRO subscribers get curated, rate-limit-boosted HTTP inference endpoints served by text-generation-inference for models such as Llama 3, Mixtral 8x7B, Zephyr, Code Llama, Stable Diffusion XL and Bark, intended for prototyping rather than heavy production (Inference Endpoints is recommended for that).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
