Static sites on .space

Advertisement · Ad space — your ad here

Every static site lives at .space/url/name — the name is chosen by the site owner, e.g. 3xy.space/url/testsite/. The same site works on all three domains: 3xy.space, 3xi.space and c4m.space.

Short links stay at the root (.space/chatsxi, .space/apk, .space/<code>), so static sites never clog up the short links.

Want your own site? Sign up and verify your email, then make your site — email + password, a code emailed to you (never shown on screen), and your site is tied to your account. Same signup page on all three domains: 3xy.space/url/signup/, 3xi.space/url/signup/, c4m.space/url/signup/.

Live examples

testsite — a demo static site hosted right here.
clouddemo — pictures & video hosted on the cloud, site still tiny.
docdemo — a document site (PDF-style pages) with a built-in editor.

How to add a site

Sign up first: 3xy.space/url/signup/ — verify the emailed code, then name your site and it goes live. (Owner path, VPS only: run /opt/space-sites/new-site.sh <name> — it creates /var/www/space-sites/<name>/ with a starter page. Then edit that folder's index.html (plain static HTML/CSS/JS, no server code). Or create the folder by hand and drop an index.html in it.)

For a document site instead: /opt/space-sites/new-site.sh <name> doc — see “Document sites” below.

Names: 1–30 characters, letters, numbers, - or _.

Max total size per site: 1.5 MB — all files in the site folder together. A site over 1.5 MB is refused and taken down until it is trimmed back under the limit.

10-day inactivity rule — sites get deleted if nobody uses them

To save space, a site with no activity for 10 days is deleted.

What counts as activity: the newest of two times, checked across all files in the site folder — the last time a file was edited (changed) or the last time a file was visited (opened in a browser). Editing a file counts. Opening the site in a browser counts. Saving from the built-in document editor counts (it edits a file). Just checking the site from the server does not count.

What happens: after 7 days with no activity the site is flagged “expiring soon”. After 10 days with no activity it is moved aside (it stops being served) and after 5 more days it is permanently deleted. So a site gets 10 days idle + 5 days grace (15 days total) before it is really gone. A daily check runs at 03:45 and the owner can restore a moved-aside site from /var/www/space-sites/.expired/ during the 5-day grace period.

How to keep a site alive: just visit it, or edit a file in it, at least once every 10 days. testsite and the demo sites are protected and never auto-deleted.

Cloud pictures & videos — save your 1.5 MB

You don't have to upload pictures and videos into your site folder. Host them on the cloud — Dropbox, Google Drive, TeraBox or any host that gives a direct link — and just link to them from your page. Only files stored in the site folder count toward the 1.5 MB limit; pictures and videos linked from off-site do not count at all. See the working example: clouddemo.

Dropbox — share the file, then change the end of the link from ?dl=0 to ?raw=1:

<img src="https://www.dropbox.com/s/YOURFILEID/photo.jpg?raw=1" alt="My photo">

Google Drive — share as “Anyone with the link”, copy the file ID from the share URL:

<img src="https://drive.google.com/uc?export=view&id=YOUR_FILE_ID" alt="My photo">
<video controls preload="metadata" src="https://drive.google.com/uc?export=download&id=YOUR_FILE_ID"></video>

TeraBox — share the file and use the direct link TeraBox gives you, the same way:

<img src="https://YOUR_TERABOX_DIRECT_LINK" alt="My photo">

Rule of thumb: if the link opens the picture/video directly in a browser tab, it will embed in your page. If it opens a preview page instead, find the “direct link” / “raw” version. Use preload="metadata" on videos so the page loads fast.

Advertisement · Ad space — your ad here

Document sites — a PDF-style site with a built-in editor

A document site turns a static site into readable document pages, like a PDF in the browser: clean pages, a page list on the side, and a Print / save as PDF button (choose “Save as PDF” in your browser's print dialog).

Make one: /opt/space-sites/new-site.sh <name> doc — live at .space/url/<name>/. Try the demo: docdemo.

Edit it on the site itself: open the page, click ✎ Edit — the page becomes editable right in the browser. Use the toolbar for bold, italic, headings and lists, add links, then press 💾 Save — your changes are written back into the site's folder on the server (same 1.5 MB total limit; a save that would go over it is refused). + New page adds a page. ⤓ Download saves a copy of the current page to your device. Saving counts as activity, so it also keeps the site alive under the 10-day rule. Pages are stored as files in the site's pages/ folder, listed in pages.json.

One honest limit: there is no login on these static sites — anyone who can open the page can press ✎ Edit and save changes. The edit token only stops drive-by edits. Don't put anything private in a document site.

Advertisement · Ad space — your ad here

← Back to home