Guides

How can I connect my Claude Artifact to the World Wide Web?

Turn a Claude Artifact into a real website on your own domain. Step by step for Windows and Linux: GitHub, Vercel or Cloudflare, and DNS, in plain English.

From Claude to live: a Claude Artifact moves to a private GitHub, then Vercel or Cloudflare, then your own domain.

Say you’ve asked Claude to build something like a quote calculator, a booking page or a price list. It works and it looks right. The problem is that it only exists inside Claude, so nobody can visit it at yourname.com.

This guide goes from that artifact to a real website on your own domain. You don’t need to be a programmer to follow it. Claude writes the code and I give you the commands to copy. Where a technical term comes up I’ll explain it, and there’s a glossary at the bottom.

First, check whether you need any of this

You might not. If you only want to show a few people what you’ve made, Claude can share it for you. Open the artifact, click Publish (on some plans it’s called Share) and send them the link. It’s free and takes a few seconds.

The rest of this guide is for when you want your own domain, your own branding, or something people are going to rely on. With a Claude link you don’t control the address or the hosting, and there’s not much room to build on it later.

The six stops

The whole route. Allow an afternoon, plus some waiting time for the domain.

Step 1: Ask Claude what it should be built with

Rather than guessing, go back to the conversation where you built the artifact and paste this in. The last line is the important one. Some features only work inside Claude, and you want to find that out now rather than after it’s live.

Prompt 1: choose the technology

I built this artifact with you and I want to publish it as a real website on my own domain. I'm a beginner. What technology is best suited to it? Compare two or three options in plain English, with the pros and cons for my case (cost, difficulty, room to grow), and recommend one. Then tell me what else it needs, such as a database or login, and list anything that only works inside Claude and will need replacing.

Claude will usually land on one of these.

If the artifact is written in React, the answer will often be TypeScript with Next.js, so that’s what I’ve used for the rest of this guide. React builds pages out of reusable components. TypeScript catches a lot of mistakes before the code ever runs. Next.js handles the parts of a real website you don’t want to build yourself, such as routing, server code and production builds. If Claude recommends something else, the later steps are much the same.

Step 2: Ask Claude to build it properly

An artifact is built to look right in the moment. A real product has to keep working, and still be easy to change a year from now. Most of that comes down to how the code is organised, and you can ask for it directly.

You can view, copy or download the code from the artifact window, but a real project needs more files than the artifact has. It’s simpler to have Claude write out the full project.

Prompt 2: turn the artifact into a proper project

Turn this artifact into a complete, production-ready project using the technology we agreed. Use TypeScript in strict mode and current, non-deprecated methods only, and tell me which versions you're targeting. Organise the code for scalability using object-oriented principles and design patterns (such as repository, strategy, factory and dependency injection), but only where they genuinely help, and explain each one you use in one plain sentence. Keep the screens, the business rules and the data separate. Validate all input on the server, handle errors properly, and make it accessible and work on phones. Never put secret keys in the code: use environment variables and an .env.example file. Add a README, a .gitignore, ESLint and tests for the important logic. Give me every file in full with its path, and the exact commands to run it.

There are a few technical terms in that prompt. You don’t need to understand them to use it, but this is roughly what each one means.

The termWhat it meansAn everyday example
Object-oriented (OOP)Code is split into small parts, each with one job.A restaurant. The chef cooks, the waiter serves, the cashier takes payment.
Repository patternOne part knows where the data is kept. Everything else asks it.A librarian. You ask for the book; you don’t need to know the shelf.
Strategy patternYou can swap how something is done without rewriting the rest.Standard or express delivery. Same order, different method.
Factory patternOne part builds the right thing for the situation.A cookie cutter. Pick the shape and you get that cookie.
Dependency injectionA part is handed what it needs rather than going to find it.Handing a plumber the spanner, not making them search your house.
ScalabilityIt keeps working, and stays easy to change, as it grows.A shop with room for more shelves.

A one-page tool doesn’t need five design patterns, which is why the prompt says “only where they genuinely help”. Every extra layer is more code to read and more places for something to go wrong.

Once Claude has finished, ask it to review its own work. It’s one more message and it’s worth sending.

Prompt 3: ask Claude to review it

Review the project you just wrote as a senior engineer would. Look for outdated methods, security problems, accessibility problems, anything that will break in production, and anything more complicated than it needs to be. List the problems in priority order and fix them.

Step 3: Get it running on your computer

You need three free programs. Node.js builds and runs the project. Git records every change, so you can always go back to an earlier version. The GitHub CLI lets you work with GitHub from your own computer.

You’ll type the commands into a terminal, which is a window where you give the computer instructions by typing. On Windows, search the Start menu for PowerShell. On Linux, open Terminal.

Terminal (Ubuntu or Debian)
sudo apt update
sudo apt install -y git curl
# Node.js: copy the install line from github.com/nvm-sh/nvm,
# reopen the terminal, then run:
nvm install --lts
# GitHub CLI: follow the steps for your system at cli.github.com

Close the terminal, open it again and run the commands below. The first three should each print a version number. The last two tell Git who you are, so put in your own name and email.

Terminal
node --version
git --version
gh --version
git config --global user.name "Your Name"
git config --global user.email "you@example.com"

Then create the project.

Terminal
npx create-next-app@latest my-site
cd my-site
npm run dev

When it asks you questions, take the recommended defaults. They include TypeScript and Tailwind, and artifacts are usually styled with Tailwind anyway. Open http://localhost:3000 in your browser and you’ll see the starter project running on your own machine. Nobody else can see it yet.

Now replace the starter files with the ones Claude wrote in Step 2, and check it looks the way it did in Claude. If you get an error, paste the whole thing into Claude. Press Ctrl+C in the terminal when you want to stop it.

Step 4: Store your code on GitHub, privately

GitHub stores your code online and keeps every version of it. The code is part of your business, so keep it private.

Choose private.
  1. Create a free account at github.com.
  2. Turn on two-factor authentication in Settings, so someone with your password still can’t get in without your phone.
  3. Log in from the terminal with gh auth login and follow the prompts.
  4. From inside your project folder, run the commands below.
Terminal
git add .
git commit -m "First version"
gh repo create my-site --private --source=. --remote=origin --push

A repository, or repo, is a project folder that Git keeps track of. Open yours on github.com and check there’s a small Private label next to its name.

Step 5: Publish it with Vercel or Cloudflare

Hosting is the server that keeps your site available all the time. Vercel and Cloudflare both connect directly to GitHub and both run Next.js. This is how I’d choose between them.

VercelCloudflare
Best forThe easiest start with Next.jsGood value as you grow
Set-upAlmost no settingsA little more work for Next.js
Free planPersonal, non-commercial use onlyYes, but check the limits
Paid planPro is $20 per person a month (about £16)Workers Paid plan is $5 a month (about £4)
Pick it ifIt’s a personal project, or you’ll pay for ProIt’s for a business and you want to keep costs low

Option A: Vercel

  1. Go to vercel.com, choose Sign up, then continue with GitHub.
  2. Click Add New, then Project.
  3. When it asks which repositories it can see, choose only my-site, so it can read that code and nothing else.
  4. Click Import, leave the settings as they are, and click Deploy.
  5. After a minute or so you’ll have a free address like my-site.vercel.app.

Option B: Cloudflare

  1. Create a free account at dash.cloudflare.com.
  2. Next.js needs a small adapter to run on Cloudflare. Ask Claude: “Set this project up to deploy on Cloudflare Workers using the OpenNext adapter, and give me the exact build and deploy commands.” This website runs that way.
  3. In the dashboard, open Workers & Pages, create an application and connect it to your GitHub repo, again choosing only my-site.
  4. Enter the commands Claude gave you. You’ll get a free .workers.dev address.

Button names change from time to time, so if something doesn’t match, look for the closest option or ask Claude. Whichever host you pick, publishing is automatic from here. Push a change to GitHub and the live site rebuilds itself.

Once it’s connected, this is how every change goes live.
Terminal (to publish a change)
git add .
git commit -m "Describe what you changed"
git push

If the project uses secrets from .env.local, add them in your host’s settings as well, under Environment Variables on Vercel or Variables and Secrets on Cloudflare. Skip this and anything that relies on them will fail on the live site, even though it works fine on your computer.

Step 6: Connect your own domain

A domain name is your address, like yourname.com. You rent it by the year, usually for somewhere around £6 to £15 ($8 to $20) depending on the ending.

  1. Buy one from a registrar, a company that sells domain names, such as Cloudflare Registrar, Namecheap or Porkbun. Keep it short and easy to spell, and turn on auto-renew so it doesn’t lapse.
  2. In your host, find the Domains settings for the project and add your domain. Add www.yourname.com as well, so both versions work.
  3. Your host will show you one or two DNS records. Copy them exactly into the DNS settings at your registrar. If the domain is already with Cloudflare and you’re hosting there too, it can add them for you.
  4. Wait. It’s often a few minutes, but it can take up to a day or two. Your host turns on HTTPS (the padlock) once the domain is connected.
DNS works like the internet’s phone book. A DNS record is one entry in it.

To check whether the domain is pointing at the right place yet, run this. It works on both systems. An error or an old address just means it hasn’t updated yet.

Terminal
nslookup yourname.com

Once it’s live

That’s the route from Claude to a live site. Before you start telling people about it, I’d read these two, because they cover the problems that don’t show up until real people use it:

What it costs, in pounds and dollars

For a small site the bill is smaller than most people expect. This is what I’d budget, and I’ve shown both currencies because the tools bill in dollars. Prices were checked in November 2026 and change often, so confirm them on each company’s pricing page.

WhatUKUS
GitHub (storing your code)FreeFree
Hosting, hobby or low traffic£0 on Cloudflare, or Vercel’s free plan if it isn’t a business$0, same plans
Hosting, a real business on VercelAbout £16 a month$20 a month
Domain name£6 to £15 a year$8 to $20 a year
Typical total to get liveAround £6 to £15 in year oneAround $8 to $20 in year one

Database, email and login services add to this only if you need them, and most have a free tier to start. See what your app actually needs for those costs.

If you’d rather hand it over, that’s what I do. Tell me what you’ve built and I’ll tell you what it needs, give you a fixed price and get it live. See my services and pricing, or get in touch for a free 20-minute call.

Common questions

Can I publish a Claude Artifact as a real website?

Yes. Ask Claude to turn it into a proper project, store the code privately on GitHub, publish it with a host like Vercel or Cloudflare, then connect your own domain. If you only need to share it with a few people, Claude’s own Publish link may be enough.

How do I get the code out of Claude?

Open the artifact and use the options in the artifact window to view, copy or download the code. In practice it’s easier to ask Claude to write out the full project, because a real project needs more files than the artifact has.

Is it free to put a Claude Artifact online?

It can be free to start. GitHub, Vercel and Cloudflare all have free plans, although Vercel’s doesn’t allow commercial use. The main cost is the domain, usually around £6 to £15 ($8 to $20) a year, plus any database, email or AI service you add.

Do I need to know how to code?

No. Claude writes the code and this guide gives you the commands to copy. You do need to follow the steps carefully and ask Claude when something doesn’t make sense. For anything that handles money or personal information, get someone experienced to check it.

Should my GitHub repository be private?

For almost every business project, yes. Only you and the people you invite can see it, and your host can still read it if you give it permission.

How long does a domain take to work?

It’s often a few minutes, but DNS changes can take up to a day or two to reach everywhere. That wait is normal.

Glossary: the jargon explained

Artifact
A small page or app that Claude builds next to the chat.
Repository (repo)
A project folder that Git keeps track of, including every past version.
Git
A free tool that records the history of your project, so any change can be undone.
GitHub
A website that stores your Git projects online, publicly or privately.
Commit and push
A commit is a saved snapshot with a note. A push sends your snapshots to GitHub.
Terminal
A window where you give your computer instructions by typing. On Windows, that’s PowerShell.
Node.js
A free program that lets your computer build and run modern web projects.
React
A toolkit for building pages out of reusable components.
TypeScript
JavaScript with type checking, which catches many mistakes before the code runs.
Next.js
A framework built on React that handles routing, server code and production builds.
Hosting
A server that’s always on, so your site is always available.
Domain name
Your address, like yourname.com, rented by the year.
DNS
The system that turns a name like yourname.com into the address of the server hosting it.
HTTPS
The padlock in the address bar. It means the connection is encrypted.
API key
A secret value that lets your site use another company’s service.
Environment variable
A setting or secret kept outside your code and entered on your host.
Deploy
To publish your project so people can use it.

Want this done for you?

Tell me what you’ve built. I’ll tell you what it needs, give you a fixed price and get it live.

Get in touch