Course

How the web works.

Short chapters, in order. In each: what it is, the terminal command, what to tell your assistant and how many credits it takes.

00

The journey of a click

Ana taps a link to bucataria-ioanei.ro. In under a second, four things happen. The rest of this course is about each of them.

  • She asks. Ana's phone asks DNS, the internet's phone book: "where is bucataria-ioanei.ro?"
  • She gets the address. DNS answers: "at 203.0.113.10".
  • She asks for the files. The phone asks for them there, from a server or from IPFS, over HTTPS.
  • The page is drawn. It gets index.html, the photos and the styles, and the browser puts the page on screen.

What's behind them

  • The domain: bucataria-ioanei.ro, rented for a year. Chapter 02.
  • DNS: the records that point your domain at your site, turning it into an address. Chapter 03.
  • Hosting: where the site's folder lives. Chapter 04.
01

A site is a folder

Every site, however pretty, is in the end a folder of text files and images. The browser downloads them and puts them together.

  • index.html: the content
  • stil.css: the look
  • script.js: the behaviour
  • poze/: the images

HTML is the content and structure (headings, paragraphs, photos). CSS is the look (colours, fonts, layout). JavaScript is the behaviour (what happens when you tap something). A site made only of these files is called static: everyone gets the same files. Most personal sites are like this, and that's good: they're fast, cheap and hard to break.

A folder can also carry two small text files that aren't pages. _redirects holds lines like /old-page /new-page 301 (a page that moved) or /* /404.html 404 (your own page for addresses that don't exist). _headers holds instructions for the browser, such as how long to keep your files. Both are optional; many static hosts read them, weird included.

In the terminal

# what's in the folder$ ls ./deseneindex.html  stil.css  poze/# put it online: you get a fingerprint, a CID$ weird storage add ./desene# and serve it on your domain$ weird storage domains attach your-name.ro bafy…
Every command and its flags, in the documentation

Tell your assistant

„Make me a one-page site with my drawings, as a folder with index.html and a stylesheet. No frameworks.”

In credits

loading the credit charge…

The files stay yours: credits are spent only on keeping them online, for each MB and each copy, and a typical site is a few MB.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

02

The domain

A domain like your-name.ro isn't yours forever. You register it by the year with the extension's registry, through a company that registers domains there; you can register .ro domains through weird, where registering and renewing spend credits.

For .ro, the registry is ROTLD. Through weird you register it for one year or more, up to ten. You're the holder: the domain is yours as long as you renew it. Automatic renewal is on from the start, and you get a reminder beforehand.

Once you have it, you can make as many subdomains as you like: blog.your-name.ro, photos.your-name.ro. You can even share a subdomain with another account, which spends its own credits. If the domain is already at another company, you bring it to weird with its authorisation code. And when you want to leave, you start the move in your account and take the transfer key from the registry's panel, under the registry's rules.

Not ready for a domain yet? A first site can start on a free address under one of weird's own domains, like ana.e-weird.ro. The name is lent to you, not sold: you can use it while a site is on it, it is taken back if nothing stays on it for a while, it carries only a site from your storage (no mail), and keeping and serving the site spends credits as usual. You need an account with a complete profile. When you register a domain later, you move the same site to it.

In the terminal

# is it available?$ weird domains check your-name.ro# take it for two years: it shows the credit charge and asks first$ weird domains register your-name.ro --years 2# who holds a domain$ whois your-name.ro
Every command and its flags, in the documentation

Tell your assistant

„Find me 10 available .ro domains for a pottery studio. Short, no numbers, easy to say on the phone.”

In credits

loading the credit charge…

One year of a .ro domain, registered in your name; renewal spends credits by the year too.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

03

DNS

Computers don't know names, only addresses, which are numbers. DNS is the internet's phone book: it turns a name into an address.

Each line in this book is called a record. When someone asks about your name, the question climbs step by step to your nameservers, which give the answer. The answer is remembered for a while, as long as the TTL says, so nobody has to ask every time.

  • The phone asks for your-name.ro.
  • Your ISP's resolver asks in turn. The root: "ask .ro". The .ro registry: "ask ….a1.weirdnames.ro".
  • Your nameserver answers: 203.0.113.10, remembered for 5 minutes (TTL 300).
TypeIn shortExample
A / AAAAthe address where the site lives (IPv4 / IPv6)@ → 203.0.113.10
CNAME"this name is really that other one"www → your-name.ro
TXTnotes: proofs, verifications, links (IPFS, Bluesky)_atproto → did=did:plc:…
MXwhere email for your name goes@ → 10 mx.provider.ro
NSwho answers questions about your name….a1.weirdnames.ro

At weird you can keep your phone book even for a domain registered elsewhere: you only move the nameservers. You add records of every usual type, and the zone is signed with DNSSEC, so resolvers that check signatures can spot a fake answer.

In the terminal

# ask like a browser does$ dig +short your-name.ro203.0.113.10# all your records$ weird dns records your-name.ro$ weird dns set your-name.ro www CNAME your-name.ro
Every command and its flags, in the documentation

Tell your assistant

„I want my domain to be my Bluesky handle too. Tell me which DNS record I need and add it with weird.”

In credits

loading the credit charge…

That's how many credits keeping one line of your phone book for a year takes; each change has a small credit charge of its own too, also in credits.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

04

Where the site lives (hosting)

The folder has to sit somewhere anyone can ask for it, any time. There are three ways, and for most people the first one is enough.

On IPFS

For static sites: diaries, galleries, small shops, project pages. Nothing for you to keep running. The files are kept as several copies at independent storage providers, and served on your domain, over HTTPS.

Through a tunnel to your laptop

What runs on your laptop shows up at your address, over HTTPS. It works while the laptop is on and connected. For when it's off, you can set a page of your own to send visitors to.

On a server

A computer in the EU, all yours, that runs on its own, without your laptop. For apps that compute, databases, GitLab. It spends credits by the hour while it exists, with extra disks and backup copies (snapshots) if you want them.

On IPFS, files get a unique fingerprint, a CID. Change a comma and the fingerprint changes too. That's why your domain points at one particular CID: when you have a new version, you upload it and move your domain to its CID. The old version stays stored as long as you keep it; you delete it when you no longer need it.

In the terminal

$ weird storage add ./site# a new version: move the domain to its CID$ weird storage domains retarget your-name.ro bafy…$ weird tunnel demo.your-name.ro 3000# your own page, for when the laptop is off$ weird tunnels update demo.your-name.ro --offline-url https://your-name.ro/away$ weird servers tiers$ weird servers create site --tier small --ssh-key ~/.ssh/id_ed25519.pub
Every command and its flags, in the documentation

Tell your assistant

„I have an app that [describe what it does]. Where should it live: on IPFS, through a tunnel or on a server? Explain why, with the credits each one takes.”

In credits

loading the credit charge…

One MB kept on IPFS for a year, for each copy; what you send to visitors spends credits separately, by the MB.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

05

HTTPS (the padlock)

The padlock in the browser bar means two things: what you send is encrypted on the way (those in between see which site you talk to, not what you say), and the site really is who it says it is.

  • Between the browser and the site there's an encrypted channel: from outside, it's just noise.
  • The site shows its certificate: "it's really me".

The proof is a certificate, issued by an authority browsers trust. It used to cost money and be done by hand. Today it's automatic: for sites stored at weird and for tunnels, weird requests it, installs it and renews it before it expires. On a server of your own, whatever runs on the server takes care of it.

In the terminal

# does the site answer over HTTPS?$ curl -sI https://your-name.ro | head -1HTTP/2 200

Tell your assistant

„Check whether my site has HTTPS set up properly and tell me in plain words what the certificate says.”

In credits

no credit charge of its own at weird

The certificate has no credit charge of its own: it comes with the hosting or the tunnel and renews itself.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

06

Email at your name

hello@your-name.ro looks good on a business card. To make it work, you need a place that receives the mail and a few DNS records telling the world where that place is.

MX says where mail goes. SPF says who may send in your name. DKIM signs each message to show it's really from you. DMARC tells others what to do with fakes. Without the last three, your mail often lands in spam.

Running your own mail server is hard, so we don't recommend it at first. It's simpler to get a mailbox from an email provider; many can also forward your mail to the address you already have. weird doesn't keep mailboxes: at weird you add the DNS records that point to the provider you chose.

In the terminal

$ dig +short MX your-name.ro$ weird dns set your-name.ro @ MX 10 mx.provider.ro$ weird dns set your-name.ro @ TXT "v=spf1 include:provider.ro -all"$ weird dns set your-name.ro _dmarc TXT "v=DMARC1; p=quarantine"
Every command and its flags, in the documentation

Tell your assistant

„I want email at your-name.ro with [chosen provider]. Tell me exactly which MX, SPF, DKIM and DMARC records I need, add them with weird, and check at the end.”

In credits

no credit charge of its own at weird

The records live in your DNS zone at weird, and the mailbox you pay to the email provider you chose.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

07

Sites that do things

A static site looks the same for everyone. When you want comments, logins, games with friends or payments, you need something working in real time.

You have three paths.

  • A P2P room connects browsers directly to each other, usually with no server in the middle: that's how the chat, whiteboards and games on ardegazu.ro work. When a direct link isn't possible, it goes through a relay (TURN). Messages for someone who's offline are kept as long as the app says: 24 hours by default, longer if you set it, up to the platform's ceiling.
  • Someone else's service does one job well, like payments. Payment fees go to the payment processor.
  • A server of your own runs any app, like the git.ardegazu.ro code server. Some apps go onto a new server with a single command.

In the terminal

# a room for your game$ weird p2p create game --origin https://game.your-name.ro# relay credentials for one player$ weird p2p turn game# the apps that go up with one command$ weird servers apps catalog
Every command and its flags, in the documentation

Tell your assistant

„Make a two-player game that runs directly between browsers through a weird P2P room, with no server. Put it at game.your-name.ro.”

In credits

loading the credit charge…

One room kept for a year, with its signalling and relay; what passes through the relay spends credits separately, by the MB.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

08

How people follow you

A site doesn't come with an app's "Follow" button. There are two older ways that work everywhere: RSS and the newsletter.

RSS is a file on your site, usually feed.xml, listing the latest things you've put up. Anyone who wants to follow you adds it to an RSS reader, which checks every so often for anything new. No account with you, no algorithm: everything shows up, in order. Podcasts run on RSS too.

A newsletter is a list of email addresses you write to now and then. A newsletter service sends it and handles delivery, subscribers' consent and the unsubscribe link in every email, as EU rules require. On your site you only add the signup form. Pick a service that lets you export your list: that way your subscribers stay yours wherever you move. Many services can also email whatever appears in your RSS automatically.

In the terminal

# what's new on a site$ curl -s https://desenele-sarei.ro/feed.xml | grep "<title>"

Tell your assistant

„Add a feed.xml (RSS) with the latest 20 posts to my site, a 'Follow by RSS' link and a newsletter signup form that sends to [the service I picked].”

In credits

no credit charge of its own at weird

feed.xml is a small file of your site and stays online with it, and the newsletter you pay to the service you pick.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

09

Describe what you want

Today's tools, like Claude, Codex, Cursor or Antigravity, build a site from a description. What comes out depends mostly on how well you describe it. It takes five minutes to learn: five questions, then a few short messages.

Vague: "Make me a site for my band." The assistant guesses: some template, made-up text, stock photos.

Clear: "I play drums in Zgomot Alb. I want a site for people who saw us at a gig: upcoming shows, three tracks to play, rehearsal photos. Black and white, big letters, like our poster. At the bottom, a 'Book us' button." It comes out close to what you had in mind. The rest you tune in two or three messages.

Five questions

Answer them in your own words, the way you'd explain it to a friend. Here's how it sounds for the band; then write your own.

  • 1 · What is it? What you do and what kind of site you want. I play drums in Zgomot Alb and I want a site for the band.
  • 2 · Who is it for? Who will open it, and why. People who saw us at a gig and want to hear us again.
  • 3 · What's on it? The pages, photos and text, in order. Upcoming gigs, three tracks to play, rehearsal photos.
  • 4 · How should it feel? Three words, or something you already like. Like our poster: black and white, big letters, a bit loud.
  • 5 · What do visitors do? What you want them to do at the end. Book us, with a button that opens an email.
  • Where? The address, if you have one. zgomot-alb.ro

Three habits

  • Show, don't just tell. Attach photos, the poster, a sketch on paper or a link to a site you like, and say what exactly you like about it.
  • Change one thing at a time. "Bigger title." "Less red." "Move the button up." Short messages, one after another, work better than one long one.
  • Say what you don't want. No stock photos, no pop-ups, no made-up text about you. One sentence saves ten corrections.

When the assistant works in your account

MCP is how an AI uses tools outside itself, like weird's commands. weird's MCP server runs on your own computer. You set it up with weird mcp setup, which makes the assistant a key of its own, limited to the tools you choose: say, putting things online and changing DNS, but not registering domains. It can also be a key that only reads.

Every one-off charge and every deletion asks for a clear confirmation first; what runs by the hour spends credits while it exists. Sensitive tools, like billing or keys, are never included unless you name them yourself and confirm with a code from your authenticator app. And you can take the key back at any time, with weird keys revoke.

In the terminal

# a key just for the assistant: storage and DNS$ weird mcp setup --toolsets storage,dns# then, in Claude Code:$ claude mcp add weird -- weird mcp
Every command and its flags, in the documentation

Tell your assistant

„You have access to weird. Put the site in this folder at [address]. Tell me how many credits it takes before anything that spends credits, and tell me at the end what you did.”

In credits

no credit charge of its own at weird

The weird command and its MCP server are free to install; the AI itself you pay to whoever provides it, and what it does spends credits as if you'd done it.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought

10

The cheat sheet

All the words of the course, on one page. Today's credit charges are on Credits and charges.

  • Domain: your name on the internet. At weird: your domain, registered through weird or brought over from another company.
  • Subdomain: blog.your-name.ro, another address on your domain.
  • DNS: the phone book, name → address. At weird: hosted DNS, with DNSSEC.
  • Record · TTL · nameserver: one line of the phone book, how long it's remembered, and who answers.
  • IPFS · CID: fingerprinted files, stored as several copies. At weird: hosting, on your domain.
  • Traffic: how much data you send visitors.
  • HTTPS · certificate: encrypted channel and proof of identity. At weird: automatic.
  • Tunnel: a public address for something on your computer. At weird: a tunnel, on your domain.
  • P2P · WebRTC · TURN: browsers linked directly, with a fallback relay. At weird: a P2P room.
  • VPS · server: an always-on computer of your own. At weird: a server in the EU, spending credits by the hour.
  • MX · SPF · DKIM · DMARC: where email goes and proof it's yours. At weird: the DNS records; the mailbox, at the email provider.
  • RSS · feed.xml: a list of what's new, for readers. A file in your site.
  • Newsletter: emails to people who subscribed. The form on your site, sending by a service.
  • MCP · key: the AI's tools and their access, with limits. At weird: weird mcp, with a key limited to what you choose.

The weird commands may gain new things; weird <command> --help always shows you today's form. dig, curl and whois are already on any Mac or Linux computer.

Credit charges are in credits. You buy credits in your account; VAT is added when you buy them. How credits are bought