{
  "id": 10983665,
  "title": "I spent 6 months building a real operating system for web apps",
  "url": "https://urgent.news/2026/09/30/i-spent-6-months-building-a-real-operating-system-for-web-apps",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-30T16:26:15.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/zohayr_slileh_6e6ee4a17c8/i-spent-6-months-building-a-real-operating-system-for-web-apps-179k"
  },
  "original_language": "en",
  "account": "For the past six months, the individual has been developing a novel concept: an operating system specifically tailored for web applications, named PhreshOS. This open-source software (under the MIT license) can be accessed through a live demonstration at https://demo.phreshos.com/. The purpose of this interview is to elucidate the nature of PhreshOS, which diverges from conventional definitions of a web app operating system.\n\nPhreshOS operates as a programmable system running on the user's device, with a desktop interface accessible via the browser. Users can access it from any location where they can reach their machine. The applications, or \"Programs,\" run within this system and are constructed using familiar web development tools such as TypeScript, React, and Vite. The unique feature of PhreshOS is that it handles routine tasks like user authentication, communication between app components, and managing app windows, storage, and permissions. Consequently, developers only need to focus on crafting the unique functionality of their applications.\n\nIn PhreshOS, each application consists of two components: a Server and a Client. The Server runs in the background, managing application logic, while the Client presents the application within a window. For instance, a simple Program might look like this:\n\nThe Server component maintains a counter:\n\n```javascript\nimport { context } from '@phreshos/server'\nlet count = 0\ncontext.answer('read', () => count)\ncontext.subscribe('increment', () => { count += 1 })\ncontext.publish('changed', count)\n```\n\nAnd the Client component retrieves the counter value and reacts to changes:\n\n```javascript\nimport { context } from '@phreshos/client'\nconst count = await context.server.ask('number', 'read')\ncontext.server.subscribe('changed', render)\ncontext.server.publish('increment')\n```\n\nThis model eliminates the need for HTTP routes, WebSocket setups, or authentication middleware. Both the Server and Client components interact through three commands: `ask` retrieves data, `publish` broadcasts changes, and `subscribe` listens for updates. This system can be utilized by AI agents directly, enabling them to execute system operations as if they were human users. For example, an agent can list installed programs, create new ones, maximize app windows, or query system logs.\n\nThe system's design aims to integrate seamlessly with existing agent workflows. Agents can access the entire system and its applications using standard commands, without requiring custom interfaces. For instance, the command `phresh endpoint ask --program notes --process main --endpoint server --event notes.list --json` allows an agent to retrieve notes data from a specific application, demonstrating the system's flexibility and efficiency. PhreshOS is being developed using Node.js 24.15 or later, and can be installed globally with `npm install --global @phreshos/cli`. To test it, users should open the provided URL in their browser and create an account. The development team is currently focusing on enhancing compatibility with different operating systems, particularly Windows. For those interested in trying it out, the system is available for use on macOS and Linux, with potential support for Windows in the future. For more information, users can refer to the project's GitHub repository, documentation, or live demo.",
  "summary": "For the last six months or so I've been building something a bit unusual: a real operating system for web apps. It's called PhreshOS. It's open source (MIT), and you can try a live demo right now: https://demo.phreshos.com/ I want to explain what it is, because \"OS for web apps\" can mean a lot of things. The idea PhreshOS is a programmable system that runs on your machine, with a desktop you open…",
  "key_points": [
    "PhreshOS is an open-source operating system for web apps",
    "Users access via browser, no HTTP/WS setup needed",
    "Supports AI agents interacting with system directly"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}