Skip to content

Domain enables people to seamlessly get started with their own place on the Small Web in under a minute.

License

Notifications You must be signed in to change notification settings

matthiasjg/domain

 
 

Repository files navigation

Domain

Work-in-progress (not ready for use).

Domain enables people to seamlessly get started with their own place on the Small Web in under a minute.

You can use Domain to run a Small Web Domain as a commercial activity (e.g., charging €10/month for a Small Web place on small-web.org), a public good (e.g., a city providing free Small Web places to its citizens via tokens), or on a hyperlocal or more intimate level (e.g., providing Small Web places for your neighbourhood or your own family via a private instance).

A Small Web Domain is, for all intents and purposes, like a top-level domain but:

  1. It is a second-level domain (e.g., small-web.org)
  2. Places are registered as subdomains.
  3. Unless it is being run as a private instance (e.g., for your family), the second-level domain is registered in the Public Suffix List.

If a person wants to move their place to a different Small Web Domain or to a Big Web domain (i.e., their own second-level domain), they can at anytime. (Feature not implemented yet.)

Is this ready for use?

No. It is under heavy development.

Why such a generic name?

On purpose. We are not trying to create A Brand™ here. The “brand”, if anything, is the instantly-recognisable simplicity and typographic treatment of the public-facing sign-up page itself which will enable people to recognise Small Web Domains (due to the lack of bullshit/noise). Otherwise, the focus is on the domain itself, as it should be.

What does it take to run a Small Web Domain?

Domain integrates three* main services:

  1. A Domain Name Service (DNS) provider for setting up domains.

  2. A Virtual Private Server (VPS) provider for settings up servers.

  3. A payment provider to limit access to scarce resources.

* For public instances, it also requires that your domain is registered on the Public Suffix List.

Supported service providers

Domain provides support for the following service providers. You will need to get accounts with them to configure it.

DNS

VPS

Payment

  • None: for private instances (e.g., families, internal use at organisations, etc.)

  • Tokens: for use in place of money by organisations running public instances (e.g., a city providing free Small Web Places to its citizens). (Under construction.)

  • Stripe: for commercial payments (e.g., for making your Small Web Domain financially sustainable within the capitalist system you find yourself living under) (Under construction.)

What is the token payment type?

The Small Web aims to be a bridge between the capitalist centralised web and a post-capitalist humanscale web of individually-owned-and-controlled single-tenant web places. As such, we have the unenviable task of trying to design a system that is both sustainable under capitalism and viable for post-capitalist use.

Supporting both Stripe and tokens as a payment type is an example of this.

A token is simply a secret code that you can enter in place of traditional payment with money.

For example, a municipality might decide that its citizens having their own place on the Small Web is good for human rights and democracy and might budget to provide them with this service from the common purse, for the common good. As such, it might create codes that get mailed out to all citizens. They can then use these codes in place of payment. (We prototyped an early version of this with the City of Ghent several years ago. Unfortunately, a conservative government came into power and our funding for the project was cut off.)

Traditional/token payment doesn’t have to be mutually exclusive. The municipality in question might, for example, enable both so that people can sign up for more than one Small Web place or if it wants to enable others (e.g., people who are not residents of their city) to sign up.

Install

  1. Install Site.js
  2. Clone this repo.
  3. npm install

Run

Dev (Site.js + SvelteKit)

npm run dev

Once the servers are running, you will have:

  • SvelteKit: Running at http://localhost:3000 with HMR and serving the frontend.
  • Site.js: Running at https://localhost and serving the backend.

Note: the dev task will only run on Linux-esque systems. If you’re on Windows, please run site in one terminal tab and npm run kit in another manually to start both servers. Pull requests are welcome for a dev-windows task that runs a PowerShell script to do the same thing.

Configure

Once you have signed up for accounts with the supported service providers and Domain is running, you can configure your account at http://localhost:3000/settings.

SvelteKit only

npm run kit

This will run the SvelteKit dev server only (not Site.js) at http://localhost:3000.

Build

npm run build

This will build the SvelteKit source into the .generated folder that is served by Site.js.

Serve

npm run serve

This will:

  1. Build the latest Vite source using vite build
  2. Serve the site using Site.js.

Hit https://localhost to view and test your site.

Note that the Vite dev server will not be run. If that’s what you want, please run the dev task.

LICENSE

Copyright ⓒ 2021-present Aral Balkan, Small Technology Foundation

Released under AGPL version 3.0.

About

Domain enables people to seamlessly get started with their own place on the Small Web in under a minute.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.0%
  • Svelte 43.6%
  • Other 0.4%