NEWS, EDITORIALS, REFERENCE

Subscribe to C64OS.com with your favorite RSS Reader
November 24, 2026 #139 Software

Site Reader

Post Archive Icon

The web is a tough nut to crack for a Commodore 64.

Back in the late 90s Maurice Randall from Click Here Software1 worked on a native C64 web browser called "The Wave." It required a SuperCPU with SuperRAM, so exactly how native to the C64 it really was can be disputed. But it was certainly an ambitious undertaking.

Despite having the 20MHz 65816 SuperCPU to work with, plus up to 16MB of SuperRAM, it is my contention that this was always a fool's errand. The SuperCPU, in one fell swoop, made a C64 run 20X faster than the original, and gave the CPU (more or less) direct access to 256 times the amount of RAM in a stock C64. This is an impressive leap in relative terms. Rarely does any computing platform—in one step or one year—increase in raw computational power by such an extraordinary factor. But PC and Mac computers were continually doubling in power period-over-period, and the web was correspondingly undergoing a tremendous increase in complexity.

As fraught as this is, let's try to put some numbers behind it. A survey of 2.5 million websites in 1995 found their average HTML size to be 4.4KB with around 70 HTML tags of about 11 different kinds. I think a SuperCPU could easily handle this. Maybe even a stock C64 with clever programming could have handled this. These numbers are only an average, though. Some webpages even then must have been quite a bit larger than this.

Since then, the average total page weight has ballooned to almost 300X the page weight from 1995. The total number of DOM nodes in a page has increased by 18X. But there is also a less tangible increase in complexity. Javascript and CSS now play a huge role in webpage design, and their interpretation and application to that more complex DOM means anywhere from 25X to 100X more computational power is required to accurately compute the layout of the average modern webpage.

 

The complexity of layout, the size of the resources, and the overall page weight are only part of the problem; there is also screen resolution.

Screen resolutions then, 640x480 was common. Screen resolutions now, 2880x1800 is just a middling laptop.
Comparison of how relative screen resolutions have changed

On the left we have a typical screen resolution from the mid 90s. This is Mac OS 8 at 640x480. You can see the C64 screenshot overlaid. It is 320x200, plus the black screen border is included even though in practice, besides sprites under limited conditions, bitmaps cannot generally extend into that area. Even in the mid 90s, the C64 was suffering from a small screen resolution relative to the Macs and PCs of the day.

On the right we have a typical screen resolution from a recent MacBook Air. 2880x1800 and this is by no means a towering resolution. An iMac 5K, which is a consumer-level desktop, displays almost 3X the number of pixels. Where is the C64's screen in relation to this? Don't miss it! It's that tiny little postage stamp down in the bottom corner, barely wider than 2 dock icons. Imagine trying to fit a webpage into a viewport that's only an inch high and maybe an inch and a half wide?

Speaking of such small physical dimensions, it reminds me of an Apple Watch. The 46mm Series 12 Apple Watch (that's the big version) has a resolution of 416x496. That's 206,336 pixels or just over 3.2X the resolution of a C64. Ouch. A C64 has less than a third the resolution of a wrist-mounted smart watch.

Screen resolution Apple Watch, 420x500 on the wrist.
Screen resolution Apple Watch, 416x496 on the wrist.

Categories of websites

Using a C64 to fetch content directly from a website and then render it is literally an impossible task. The idea that it needs some sort of proxy is a forgone conclusion. (If you don't believe me, just the HTML content from the bbc.com's homepage is 693KB.)

However, even with a proxy that could handle the large HTML size and stripping it down and converting it to its essentials, there are still some pretty big difficulties. Every website is unique. Menus and footers, sidebars, popovers, sections that scroll horizontally, there is so much variation between websites, how can we tame this beast and bring order to chaos?

A thought occurred to me while I was on one of my nightly walks. Websites have a tendency to fall into a few different categories. Like stories in a genre, the details vary but the overarching theme follows a pattern.

Although layouts within a category vary, many sites can still be grouped by broad thematic patterns. (Of course, there will always be outliers, sites that refuse to be categorized, but just leave them to one side.) Then my thought was, what if we tried to tackle just one category of website? Set aside the idea of a general web browser; what if we had a solution that enabled us to consume even just a single kind of website? Wouldn't that be better than no websites?

The wiki-style website

Wikipedia is a kind of website. Or rather, the "wiki" format is a genre of website. There are in fact lots of wiki-style websites out there. Here are a few examples:

Science fiction and fantasy
  • A Wiki of Ice and Fire
  • Battlestar Wiki
  • Memory Alpha
  • Stargate Wiki
  • TARDIS Wiki
  • Tolkien Gateway
  • Wookieepedia
Comics, animation, and television
  • DC Database
  • Dragon Ball Wiki
  • Harry Potter Wiki
  • Lostpedia
  • Marvel Database
  • The Simpsons Wiki
Video games
  • Fallout Wiki
  • Minecraft Wiki
  • Zelda Wiki
  • Warcraft Wiki
  • Halopedia

You get the idea. This is just a sample, but they're all in the "wiki" genre. Well, the Wikipedia App for C64 OS is pretty good at presenting the wiki-style website format. In theory, it shouldn't be too tricky to modify the Wikipedia App for C64 OS to connect to different backends, or to customize the existing backend, to be able to search and consume content from a wide variety of wiki-style apps. This is just one idea. I haven't done it yet, but it's on the radar.

Wikipedia App, Star Trek: Deep Space Nine.
Wikipedia App, Star Trek: Deep Space Nine.

The blog or news category of website

There is another genre of website that is less structured than a wiki, but still follows a conceptual template. This is the blog-style website, or the news-style website; both have a very similar model.

That model is as follows:

  • An index page that lists articles in reverse chronological order.
  • New articles are added to the top, pushing older articles off the bottom or onto a second page.
  • Each article consists of a title, often with a date, and sometimes an author or a category.
  • Each article has a link to a page for that article's content.
  • The base URL is the same with a uniquely identifying slug for each article.
  • Built on a content management system to publish new articles with minimal effort.
  • The CMS model typically means each article page has the same template.

I started thinking about this genre for a specific reason. Software Center has a What's New section in it. The idea was to periodically add short pieces of news that give updates about new developments in the app.

My concern was that maintaining everything is a lot of work. I already have my blog, and the User's Guides for all the C64 OS Apps, and the help content within each App, and the content for Software Center that I have to keep adding to; it's a lot of work.

What if I could somehow integrate the C64 OS blog into Software Center? Publish once, view either on the web or in Software Center. Gregory Nacu, on a nightly walk, 2026.

Software Center's document structure

I don't think I've blogged about how Software Center really works yet, but it's worth going into a bit.

The backend server is built on NodeJS and a MySQL database. The C64 OS Application (i.e., the client) has four main regions and uses two CNP network sockets.

Software Center, four main sections.
Software Center, four main sections.
Header and footer

There is a header with back and forward buttons, a path indicator, and a stop/refresh button. At the bottom is a footer for downloading files. The footer only appears when a file is selected to be downloaded, and even when a file is downloading it can be hidden again. The header can also be hidden to get more room for the content, although in practice the header would probably be left visible more often than the footer.

Middle content

The middle region is for content. A vertical split separates a scrollable table of contents on the left from the main article content on the right. The main article section itself is made of two parts, a centered logo that is 72px by 16px, and a scrollable text region that renders MText.

The importance of MText

When I first introduced MText in an early demo at World of Commodore, I told people that it was going be huge. Although that wasn't obvious from the demo, it now lies at the heart of many UIs in C64 OS. The Help content, About This C64, Eliza's chat viewer, READYChat's viewer, Wikipedia's article content, and now Software Center's article content.

A full description of everything that MText can do and how it works is found in its own blog post. In summary:

  • It automatically wraps text breaking between words.
  • Text can be left, right or center aligned.
  • Text styles can be strong, emphatic or plain.
  • Text styles get their definition from the global C64 OS color theme.
  • MText can also specify absolute colors for doing special effects.
  • It can make horizontal rules from any single repeating character.
  • It has support for clickable hyperlinks.

An official horizontal rule is better than just a bunch of dashes in the text, because the width of the rule flexes to fit the width of the view without wrapping if the view is too narrow. Hyperlink markers wrap clickable text and a value that can be up to 128 characters. The text appears in reverse and colored with the same global style as a push button. Therefore, with some formatting, a link can be made to look like a standard button.

Sockets and requests

There are two sockets; one is only for content, the other is only for transferring file data. When the App starts it opens a connection to the server, authenticates and requests the table of contents. By default, it selects the topmost item in the table and requests that page from the server.

Every content request is made with a resource identifier. These are application-specific URIs. They're not registered with the IANA, but are syntactically valid URIs. Like this:

pg:Games/Category/Puzzle?s=y&p=2

The link type "pg:" tells the server that it is a request for page content. The path immediately follows the link type and is separated by front slashes. The first element of the path selects a page type handler, which is essentially a Software Center plugin. Each plugin is also written in NodeJS. The remainder of the path and the query variables are passed through to the page type handler, which does whatever it wants with them. The variables are separated from the path by a question mark, just as in a URL, and the variables are separated by ampersands. Each variable consists of a name=value pair, very much like a URL.

The server maintains a session for each user and that session stays connected by what is essentially a cookie. So if the same Software Center user account is logged in from two different C64s, each login gets its own session. I'm a web developer, if you can't tell; this is all very familiar to how the web works.

There are some differences of course. Each time you request a new page, i.e., each time you make a request where the resource identifier is different, the server pushes that address onto a navigation stack. If you press the refresh button, the same page is re-requested but there is no change to the navigation stack. If you click the back button, a back request is sent to the server, and the server manipulates the navigation stack, moving your previous location to the forward stack. Very much like how web browsers manage the back/forward stack. Except, it's done in your server session, so there are no memory constraints.

Upon requesting a page, the handler for the page type loads a template file from a large directory tree of page templates. It then loads data from the MySQL database according to the subpath and variables, formats the results and inserts them into the template. Each template also includes a reference to a logo graphic for that page. In response to each page request, the logo graphic is sent down first. All logos have the same specification, 72x16 pixels, black and white, for a total of 144 bytes. So the first 144 bytes fill in the logo, and the rest of the response is the MText content to be rendered by the main text view.

Navigation

There are three ways to navigate:

  1. Select a new starting point by choosing something from the table of contents
  2. Click a "pg:" type link within a document to navigate forward to a new address
  3. Use the back, forward and refresh buttons as you would in a web browser.

There are also "fi:" type links that occur in MText documents. Clicking these doesn't change what page you're on. Instead it pops up the download footer and populates it with metadata about a file that can be downloaded.

Software Center is a document browser

If you know how web browsers work, Software Center will feel familiar. Sessions and cookies, addresses that identify resources, query string variables, links to other pages, formatted documents that are generated from server-side templates and populated by data from a database. It's very much like web 1.0, but the addresses are restricted to within the Software Center's server.

As a document browser, what Software Center presents is quite flexible. The path indicator always shows the path component of the address, but front slashes are converted to chevrons with some spacing to make it look nice. For example, the following page address:

pg:Games/Category/Puzzle?s=y&p=2

Is displayed in the path indicator as:

Games › Category › Puzzle

If a page handler displays a list of items, it can offer buttons at the top to select the sort criteria. Clicking one of these buttons refreshes the page but with a query variable that specifies the sort criteria. The page handler does the sorting and re-renders the page content.

Pagination is also handled serverside. If there are too many items, the page handler can present a set of page buttons with only, say, 20 or 30 items listed per page. Clicking a page button is precisely the same as clicking any link; the page refreshes, but it includes a page number in a query variable.

Sorting and pagination are not in any way part of the Software Center protocol. These are entirely generated by the logic of the page handler, and implemented using standard links and variables included at the end of an address. Each page handler makes up and interprets its own variables. Also, how a page handler formats its content is entirely up to it. For example, there are page handlers for various media type files. One page lets the user look for CGFX files (animations, panoramas, 3D-look-around scenes), and another page lets the user browse for digital audio clips (.wavs, .aiffs, etc.) In these listings, the page handler actually reads in the header structure from each file and extracts metadata. The page listing for animated CGFX files can tell you how many frames of animation there are and how long the animation lasts. The page for audio files can tell you if the files are mono or stereo and how many minutes and seconds they playback.

Very cool stuff, but also very flexible.

Software Center is truly like a web browser, able to show you any kind of content, formatted in any way that the backend page handlers choose.

Software Center is ... a web browser?

With all this flexibility and this fantastic structure for delivering dynamically generated content, paired with formatted MText documents, embedded links, and back and forward navigation, I don't know about you, but it sounds a whole lot like a web browser to me. Why isn't it actually a web browser?

In other words, why don't we just add page handlers that allow Software Center to break out onto the web? 99% of the required infrastructure is already in place.


Introducing Site Reader

Today I'm introducing a new feature to Software Center:2

Site Reader - Logo.
Browse. Read. Download.
Your C64 just got a whole lot bigger. Software Center, Welcome, C64 OS v1.09


Software Center, Welcome.
Software Center, Welcome. Browse. Read. Download.

This tagline was originally written because you can browse the Software Center sections; you can read the section editorials and you can download apps, utilities, games, demos, pictures, animations and sounds.

With the addition of Site Reader the tagline becomes even more meaningful.

Find a site

In the table of contents you will notice a new section near the top called, "Reader" which takes you into the new Site Reader section of the app.

Site Reader provides access to a curated collection of blog- and news-style websites. The sites are tagged and a directory is constructed dynamically from the tags. A site may appear in more than one category and the number of sites available within each category is listed in parentheses.

Software Center, Categories. Software Center, Categories.
Software Center, Categories.

At launch there are ten sites available, but that list will continue to grow. The sites cover news, editorials and opinions across a variety of subject areas:

  • Business
  • Computing
    • Amiga
    • Apple
    • Commodore
    • Programming
    • Retrocomputing
    • Hardware
  • Culture
    • Books
    • Design
    • Education
  • News
    • Investigations
    • Politics
  • Health
  • History
  • Science
    • Environment
    • Technology

Select any category to view the list of the sites in that category in alphabetical order. Each site listing consists of its title and a summary of what the site is about.

Software Center, sites in a category.
Software Center, sites in a category.

At the bottom of the list of categories there is a "Browse Site Directory" button, which gives you the option to browse the directory which lists all the available sites in alphabetical order. Because the layout is server-side generated, pagination of division by alphabet can be added down the road when the set of sites grows beyond what is manageable on a single page.

Software Center, site directory.
Software Center, site directory.

Site logos

When you're at a site, the "Site Reader" logo is changed for a logo of the site you're viewing. There are obvious limitations to this logo's rendering. Software Center offers a logo block which is composed of two rows of 8 custom characters, centered, for a total of 72px by 16px, black and white.

To create these logos, I take a site's original logo in as high resolution as I can find it and convert it to 1-bit black and white. This means no anti-aliasing with intermediate shades of grey; zooming in you find only black pixels on a white background. I then fit the logo as best I can inside some multiple of 72x16, such as 1080x240 (this is the original aspect ratio, but 15 times bigger.) After fitting the logo into that space, I scale it back down to 72x16 using the nearest neighbor algorithm, which is best for pixel art.

This inevitably leads to some wonkiness, like the thin stroke of a letter disappearing, or two identical letters rendering slightly differently. I touch up the miniature version of the logo to try to correct for these imperfections but without fundamentally changing the logo. For example, in "ScienceDaily" I make sure that both C's and both E's look the same. Some results are better than others, but it nonetheless provides each site with a unique branded identity from a rendering of the site's actual logo as best as it can be displayed within the constraints.

Here are a few examples:

Site logo examples.
Site logo examples

Read a site

Upon first navigating to one of the supported sites you get the site's index page featuring its most recent posts and articles. News and Blog-type websites were selected specifically because by their nature they display a list of news articles or blog posts, starting with the most recent.

Not every site is the same. Some sites list only an article's title with links to its feature page. Some sites include additional information such as published date, the category, a by-line, and or a brief summary. What appears in the Site Reader rendering depends on what the website you're viewing includes.

Site index pages, at least for now, are not paginated automatically by Site Reader. Some sites list only a handful of the most recent articles on their main page, while other sites may list a huge number of articles. For this reason, Site Reader only renders the first so-many posts. It could be 20, 30, 40, but at some point there is a cutoff.

Here are some examples of these index pages:

The Conversation - Index. Literary Hub - Index. Daring Fireball - Index. C64 OS Blog - Index.
Site index page examples

As discussed above, the site logo appears at the top. Next is the site's official title and a summary of what the site is about. Then follow the articles, with the variations inherent to the site. The Conversation has by-lines for each article, Daring Fireball has a published date, the C64 OS Blog has a publish date and an article category, while LitHub has only the article titles.

The article titles themselves are highlighed red because they are the clickable links to browse the article's content.

Unlike the site's index page, article content is automatically paginated by Site Reader. This is because while it is acceptable that you can only see, say, the 30 most recent articles, it is not acceptable to say that you can read only the first, say, 20% of a given article. The pagination is performed automatically by Site Reader's rendering while the original source is expected to come as just one page. If the content of an article is paginated by the source, Site Reader does not support concatenating those pages and then re-paginating it for the C64's memory limits.

Obviously Site Reader uses a proxy, but all website requests are on-demand. If a user doesn't explicitly choose to navigate to a website, Site Reader never autonomously requests the site. When a user does initiate an action to read a site, the proxy temporarily caches the results. This is done for three reasons, all of which are pretty standard.

  • It decreases the bandwidth demands on the remote server
  • It lowers the CPU load and bandwidth demands on the proxy server
  • It delivers faster results to the C64 OS client, especially if navigating with the back button.

Here are some examples of article content:

The Conversation - Article. TechCrunch - Article.
Site article page examples

There are several things in these examples that I want to draw attention to. Starting with The Conversation article, the logo is again displayed at the top, followed by the article's full title. Next comes whatever metadata is available, publish date, author by-line, category, etc.

If the article is paginated, the pagination links are displayed at the top and the bottom of each page. They're not shown as simply [ Next Page ] and [ Prev Page ]. Buttons like these would require you to step linearly through each page and without any indication about where you are.

In my opinion, Site Reader's pagination buttons are more useful. If the article has 8 pages, you see 7 buttons, each with a page number, plus the page you're currently on is displayed with the same spacing but not as a button. In the article from The Conversation, above, there are two pages and we're on page one.

Software Center pages have addresses that can be copied and pasted. (You can read about this in the User's Guide under Additional Features.) A paginated article in Site Reader has a unique address for each page. Page addresses can be copied and shared with a friend via READYChat, for example, or pasted into Memos as a makeshift bookmarking system.

The example from TechCrunch shows that the bottom of each page has the full URL to the webpage you are currently viewing. Immediately above the URL are two convenient navigation buttons: back to the index page for this site, or back to the list of categories. If an article has several pages and you've read through them all, it would be a tedious process to click back, back, back, back through each page just to return to the site's index.

C64 OS Blog - Article. Literary Hub - Article.
Site article page examples

The third example is taken from the C64 OS Blog. Being able to read the C64 OS blog, from within C64 OS itself, was one of the driving motivations to create Site Reader. This screenshot shows a few HTML styles that translate nicely to MText. Heading tags, paragraphs, bold and italic text, and horizontal rules, all convert nicely to MText. Horizontal rules are native, so they stretch and contract without wrapping, paragraphs automatically wrap at word breaks, and different levels of headings stand out by color, spacing and alignment.

Also in this screenshot we can see an image link. We'll return to these next.

The fourth example, an article from Literary Hub, shows a combination of previous examples. The pagination buttons appear at the bottom of the article; we're on page 2 in this example. The full URL is displayed at the bottom, the link back to Literary Hub's index page, and the categories button. We can also see a block of content that comes in the footer of LitHub articles with the title, author, publisher, copyright year, etc. for the book discussed in the article. You can see in-line style changes in this text.

View images

Sometimes articles have images. How can we view these?

Unfortunately, the first version of Software Center did not anticipate that there would be any reason to handle links to images. In this first version of Site Reader, images are displayed as their URLs inside angle brackets and separated into their own line. If the image has alt text that is displayed in the emphatic style on the line below.

C64 OS Blog - TheC64 Handheld.
C64 OS Blog - TheC64 Handheld

Fortunately, using the universal copy gesture that was introduced in C64 OS v1.09, you can hold the COMMODORE key and then left click at the start of the link and right click at the end of the link to copy it to the clipboard. Then switch apps to Image Search, paste the link into the field and then use all of the conversion, dithering and scaling options to get the best view.

In the next version of Software Center I'll add support for image links that will open the image URL directly in Image Search. The Copy/Paste manoeuvre is a temporary solution until then.

Image Search - TheC64 Handheld.
Image Search - TheC64 Handheld - (open_and_closed.jpg here, sorry, not front.png from the link)

The Image Search text field is limited to 80 characters while some URLs are longer than this. To overcome this limitation, Site Reader automatically generates temporary short URLs from any original longer than 75 characters using the C64 OS URL shortener service. This is what you see in the image above.

http://services.c64os.com/su/front.png
?id=4cfv9FPg
(50 characters)

Is the short encoding of:

https://s3.amazonaws.com/com.c64os.resources/
weblog/thec64handheld/front.png
(76 characters)

At the time of this writing, that short URL is still resolving. But it will not continue to resolve forever. Whenever the service is asked to shorten a URL, if it already has that exact URL it doesn't create a duplicate. It finds and returns an existing shortcode and re-ups its expiration time.

I made a couple of modifications to the URL shortener service and Image Search to improve results form Site Reader. The official URL shortener format is:

http://services.c64os.com/su/?id=shortcode

The problem is, as you can see, the short URL doesn't include a filename or an extension that identifies the image type. This works okay in some contexts, but Image Search extracts the filename and displays it as the "Description" (with some mild text reformatting, like underscores replaced by spaces.) The extension to the short URL allows any filename to be included after the "/su/" and before the "?id=..." This name isn't used to locate the resource but it can be used by things like Image Search to help present the file as intended.

Image Search - TheC64 Handheld - Original. Image Search - TheC64 Handheld - RGB colorspace. Image Search - TheC64 Handheld - XYZ colorspace.
Image Search - TheC64 Handheld, Original, RGB colorspace, and XYZ colorspace

The aspect ratio on the C64 screenshots looks slightly too wide. That's because in Image Search the machine's actual monitor shows the image more square with pixels taller than they are wide. The aspect ratio adjustment feature was used to stretch the images wider to correct for that. However, when screen grabbing the Ultimate64 using U64View, those pixels get stretched back out again. The point is, the aspect looked right when viewed on my C64.

You get all the abilities of Image Search to play with the conversion options. You can drag a box to zoom in on a part. The image in the middle is using the RGB colorspace. It tries to map the colors "accurately" except the C64 palette is limited so you end up with an over abundance of greys. The image on the right is using the XYZ colorspace. This gives more color variation and vibrancy, which can sometimes look nicer, but in exchange for some false colors.


Here's another example of an article from The Conversation with an image link, copied and pasted to Image Search, and then dragzoom used to zoom in on the signs.

Site Reader - The Conversation - Article. Image Search - The Conversation - Image listing. Image Search - The Conversation - Image rendering.
Site Reader: The Conversation, Image Search image listing, and image rendering.

In the alt text displayed below the image URL in the article, left, it says, "Protesters hold a sign saying 'No War in Iran.'" In point of fact the sign says "NO WAR with IRAN". There is something almost titillating about using a Commodore 64, a computer released 44 years ago, to notice an imprecision between the alt text of an image on a webpage and the image content itself.

I made two additional updates to Image Search's backend. It used to support JPG, PNG and GIF, which combined account for ~75% of all the images on the web, according to the 2025 Web Almanac. It now supports WebP as well, which accounts for another 14%, a sizable minority. In image search results, it didn't seem that big of a deal to simply omit images in unsupported formats. WebP was omitted right alongside TIFF, BMP, SVG, etc. Since you never sees them in the list you don't know what you're missing.

However, when you're reading an article through Site Reader and the article has an image in WebP, it feels worse in that context to say, sorry, you can't view this image. WebP hits now also appear in search results.

One more improvement. Image Search downloads the original image, then opens it with JIMP (The JavaScript Image Manipulation Program.) It can then use JIMP to apply a number of effects, adjustments and transformations. However, it is not particularly memory efficient when opening huge images. The server is powerful, but it's shared by lots of people. Originally, I picked a size, and just said, it can't handle images above this resolution. The dimensions don't much matter, it's the total number of pixels. I set that limit at 2500x2500 or 6,250,000 pixels. If an image is 3000x2000 (6,000,000) that's fine. Or 4000x1550 (6,200,000) that's fine too.

The situation is the same as it was for WebP. In the search results, I simply filter out all hits for images that have more 6,250,000 pixels and the user never even knows they've been omitted. But in Site Reader, I was encountering articles that have images with 12 million pixels (like 4000x3000.) I added support for mega-sized images by pre-scaling them with sharp. It's another NodeJS package that does hiqh quality image scaling very quickly and memory efficiently. And, like WebP images, I now show extra-large images in the search results.


One last triptych to show how cool this is.

Site article page examples

You can now boot up C64 OS every single day, open up Software Center, pop into Site Reader, and read news, editorials, opinions, in long form. It's pretty great.


How does it actually work?

Websites are complicated beasts. It's hard to render them in a way that is usable, truly useful and enjoyable, on a screen that only has 40 characters across by 25 lines high. In practice it's even smaller than that.

Practical article content area.

To display anything of any sense, a lot has to be left out. It's that simple. Most HTML elements cannot be used to improve a site's presentation when the resolution is this low. So what we have to know is, what's essential? And whatever is not essential, it can't be displayed.

We're starting with 10 sites, but how does Site Reader know which sites it can render?

The Site Reader page-type handler has its own folder for site plugins. The plugins are JSON objects in a text file. The whole thing is quite straightforward.

Name and description is how it appears in the listings in Site Reader. Tags defines the categories this site is listed under. The logo names the file in the HBM (hi-res bitmap, 72x16) format. baseUrl and indexUrl are used to resolve relative image links and the specify which page is the index. For example, the C64 OS blog index page is not what you find immediately at www.c64os.com.

indexCacheHours and articleCacheHours are adjustable on a site-by-site basis. Some sites publish new material much more frequently than others. Articles themselves, once published rarely change, so their cache time can be set to significantly longer. maxArticles puts a hard limit on the number of articles that will be included.

And then lastly there are two sections, index and article. I think of these as DOM hints. They are just CSS selectors that provide loose hints about what to look for. There can be significant variation in layout, and these selectors will continue to identify essential content areas. From raw HTML, coupled with a very small number of hints, a complex page can be rendered into a fairly consistent MText layout.

And that's all there is to it.

Opera Mini

This works similar to something like Opera Mini.

Opera Mini is one of the world's foremost mobile browsers, which runs on a range of devices and operating systems ranging from expensive smart phones and tablets to less expensive feature phones that are in common use across many parts of the world.[...]

Much of the reason for Mini's popularity is that it is capable of rendering complex web pages, even on low-spec devices. It does this by using a proxy-based architecture. Requests from the user's handset pass through the carrier's internet gateway on their way to Opera's transcoding servers.[...]

The server sends the response back as normal — when this is received by the Opera transcoding servers, they parse the markup and styles, execute the JavaScript, and transcode the data into Opera Binary Markup Language (OBML). This OBML data is progressively loaded by Opera Mini on the user's device. Opera Help, https://help.opera.com/en/opera-mini-and-javascript/

How it works in detail is obviously different, but conceptually it's very similar. When the Site Reader user makes a request to view a site, the proxy server makes the request on its behalf, parses the markup and styles and transcodes the data into MText. OBML is the Opera Binary Markup Language, well, MText could just as easily have been called the C64 OS Binary Markup Language.

Site Reader lacks a lot of features of a more generalized web browser, but there is still a lot that it can do. Look forward to more sites being added as we discover the ones that are able to be sensibly transcoded for display on our favorite brown breadbox.

The World Wide Web via MText delivered to a C64.
  1. Regardless of his flaws and the discontent that was created in the C64 world around that time, I'm not here to open old wounds or to pass judgment on the past. He nonetheless wrote software and I need to be able to talk about it.
  2. Which is a play on words for the skill that musicians have to "sight read." I.e., to take in and to perform, to play, or to re-present, musical content which they have no prior experience with.