<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yxingggg</title>
    <description>The latest articles on DEV Community by yxingggg (@yxingggg).</description>
    <link>https://dev.to/yxingggg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281036%2F2b7b8ad7-c2c1-4209-a181-c8a45bad3130.png</url>
      <title>DEV Community: yxingggg</title>
      <link>https://dev.to/yxingggg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yxingggg"/>
    <language>en</language>
    <item>
      <title>Building GhostOS with Kiro: Bringing Classic Personal Computing Back to Life</title>
      <dc:creator>yxingggg</dc:creator>
      <pubDate>Thu, 03 Dec 2026 16:24:21 +0000</pubDate>
      <link>https://dev.to/yxingggg/building-ghostos-with-kiro-bringing-classic-personal-computing-back-to-life-3af9</link>
      <guid>https://dev.to/yxingggg/building-ghostos-with-kiro-bringing-classic-personal-computing-back-to-life-3af9</guid>
      <description>&lt;h2&gt;
  
  
  How it started
&lt;/h2&gt;

&lt;p&gt;This article is written as part of the Kiroween 2026 hackathon, where I developed GhostOS for the Resurrection category.&lt;/p&gt;

&lt;p&gt;When I first came across the Resurrection theme, I started thinking about how personal computing has changed over the years. Many applications today depend on internet connections, cloud storage and user accounts, even for relatively simple tasks.&lt;/p&gt;

&lt;p&gt;I wanted to bring back some of the independence that older computers offered while still taking advantage of modern web technology.&lt;/p&gt;

&lt;p&gt;That idea eventually became GhostOS — a gothic, retro-inspired desktop workspace that runs entirely within a browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is GhostOS?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzjpn3ga0pfzmo3ate6ss.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzjpn3ga0pfzmo3ate6ss.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GhostOS is an offline-first desktop environment designed to give users more control over their digital workspace without requiring a cloud account.&lt;/p&gt;

&lt;p&gt;It comes with eight functional applications:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcn3jt3rxnsi8kbhxwa35.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcn3jt3rxnsi8kbhxwa35.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GraveNotes:&lt;/strong&gt; A text and Markdown editor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tomb Explorer:&lt;/strong&gt; A virtual file manager.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phantom Terminal:&lt;/strong&gt; A simulated command-line interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DeadWave:&lt;/strong&gt; A local music player with an audio visualizer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spectral Viewer:&lt;/strong&gt; An image viewer with zoom and rotation controls.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spirit Assistant:&lt;/strong&gt; An offline assistant with optional online AI integration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calculator:&lt;/strong&gt; A desktop calculator.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Settings:&lt;/strong&gt; Workspace customization and backup management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Users can open multiple applications, move and resize windows, customize their wallpapers and save files locally.&lt;/p&gt;

&lt;p&gt;Once the application has been loaded and cached, its core functionality remains accessible even without an internet connection.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Kiro changed my development approach
&lt;/h2&gt;

&lt;p&gt;My favourite thing about Kiro is its spec-driven development workflow.&lt;/p&gt;

&lt;p&gt;Normally, when I have an idea for a project, my first instinct is to start coding and figure things out along the way. However, as a project becomes larger, this approach can make it difficult to maintain consistency and keep track of requirements.&lt;/p&gt;

&lt;p&gt;With Kiro, I approached development differently.&lt;/p&gt;

&lt;p&gt;I structured GhostOS around three specification documents:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjfb1fxy69ekhz5ywiesa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjfb1fxy69ekhz5ywiesa.png" alt=" " width="799" height="389"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;requirements.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;design.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tasks.md&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These documents helped me break down the project into smaller tasks, establish acceptance criteria and define how different components should interact.&lt;/p&gt;

&lt;p&gt;Having requirements written down also made it easier to determine whether a feature was actually complete rather than simply assuming it worked.&lt;/p&gt;

&lt;p&gt;I also used three steering documents covering architecture, TypeScript and testing. These provided consistent development guidelines across different Kiro sessions.&lt;/p&gt;

&lt;p&gt;This became particularly useful as the codebase grew and new features needed to work alongside existing ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Not everything worked on the first attempt
&lt;/h2&gt;

&lt;p&gt;One of the biggest lessons from this project was that generating working code and building reliable software are two different things.&lt;/p&gt;

&lt;p&gt;During development, I encountered several issues that were not immediately obvious.&lt;/p&gt;

&lt;h3&gt;
  
  
  Fixing the desktop icons
&lt;/h3&gt;

&lt;p&gt;One of the issues involved desktop icons appearing larger than expected, causing application labels to become clipped.&lt;/p&gt;

&lt;p&gt;Instead of repeatedly adjusting the icon dimensions, I worked with Kiro to investigate the underlying problem.&lt;/p&gt;

&lt;p&gt;The issue was eventually traced to inline wrappers around the SVG icons, which prevented the intended sizing utilities from working correctly.&lt;/p&gt;

&lt;p&gt;After correcting the layout, regression tests were added to check the desktop across different viewport sizes.&lt;/p&gt;

&lt;p&gt;This taught me the importance of understanding why a bug occurs instead of repeatedly changing values until something looks right.&lt;/p&gt;

&lt;h3&gt;
  
  
  Making offline functionality reliable
&lt;/h3&gt;

&lt;p&gt;Another challenge involved service worker caching.&lt;/p&gt;

&lt;p&gt;After deploying updates, older cached versions of the application could still appear in the browser.&lt;/p&gt;

&lt;p&gt;Kiro helped investigate the application's update lifecycle and improve the way new service workers became active.&lt;/p&gt;

&lt;p&gt;This was especially important because offline functionality is one of GhostOS's main features. It needed to remain useful without connectivity while still receiving updates when users returned online.&lt;/p&gt;

&lt;h3&gt;
  
  
  Handling unexpected failures
&lt;/h3&gt;

&lt;p&gt;I also wanted to test situations that users might encounter outside normal operating conditions.&lt;/p&gt;

&lt;p&gt;With Kiro, I introduced tests covering delayed database initialization, blocked audio autoplay, failed storage writes and narrow mobile screens.&lt;/p&gt;

&lt;p&gt;For example, if a storage write fails, the application should not incorrectly tell the user that their document has been saved.&lt;/p&gt;

&lt;p&gt;These situations made me think more carefully about how software should behave when something goes wrong, rather than only testing successful operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bringing the Resurrection theme to life
&lt;/h2&gt;

&lt;p&gt;The feature that best represents the hackathon theme is Ghost Memory.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz0pvrwtv9qlshd9sqhqr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz0pvrwtv9qlshd9sqhqr.png" alt=" " width="763" height="349"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ghost Memory allows users to export their saved workspace, including files, music and settings, into a portable backup.&lt;/p&gt;

&lt;p&gt;They can then import that backup into a fresh browser environment and restore their digital workspace.&lt;/p&gt;

&lt;p&gt;However, implementing this feature involved more than exporting and importing data.&lt;/p&gt;

&lt;p&gt;I needed to consider questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What happens if the backup file is invalid?&lt;/li&gt;
&lt;li&gt;How can users preview what they are about to restore?&lt;/li&gt;
&lt;li&gt;What happens if restoration fails?&lt;/li&gt;
&lt;li&gt;Could pending storage writes interfere with restored data?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Using Kiro, I introduced defensive backup validation, restoration previews, replacement confirmation, write freezing and clearer failure feedback.&lt;/p&gt;

&lt;p&gt;The process also taught me about the limitations of restoring data across multiple storage areas. I learned that it was important to communicate these limitations rather than promise that every possible failure could be recovered from automatically.&lt;/p&gt;

&lt;p&gt;Ghost Memory became my favourite feature because it represents something more meaningful than the project's Halloween-inspired appearance.&lt;/p&gt;

&lt;p&gt;It gives users the ability to preserve their digital memories and bring their saved workspace back to life.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdmhso5fkuet21x5tsdrt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdmhso5fkuet21x5tsdrt.png" alt=" " width="775" height="777"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing beyond normal use cases
&lt;/h2&gt;

&lt;p&gt;Before this project, I was more familiar with testing individual inputs and checking their expected outputs.&lt;/p&gt;

&lt;p&gt;Through Kiro's spec-driven workflow, I explored property-based testing using &lt;code&gt;fast-check&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Instead of manually defining every possible test case, property-based testing generates different inputs and checks whether important correctness properties remain true.&lt;/p&gt;

&lt;p&gt;For GhostOS, this was particularly useful for testing the window manager. Users can open, move and resize windows in many different combinations, making it difficult to anticipate every possible interaction manually.&lt;/p&gt;

&lt;p&gt;One important property was ensuring that windows capable of fitting within the desktop remain within its boundaries.&lt;/p&gt;

&lt;p&gt;Alongside property-based testing, I used Vitest, Playwright and GitHub Actions to verify the application.&lt;/p&gt;

&lt;p&gt;The final tested release achieved:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv9xvoudx1m4hj14d7ioa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv9xvoudx1m4hj14d7ioa.png" alt=" " width="672" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;204 passing unit and integration tests.&lt;/li&gt;
&lt;li&gt;21 passing end-to-end tests.&lt;/li&gt;
&lt;li&gt;225 passing automated tests in total.&lt;/li&gt;
&lt;li&gt;A successful production build and deployment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Seeing these tests pass was one of the most satisfying parts of completing the project.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tools behind GhostOS
&lt;/h2&gt;

&lt;p&gt;The main technologies used were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React and TypeScript&lt;/li&gt;
&lt;li&gt;Vite&lt;/li&gt;
&lt;li&gt;Tailwind CSS&lt;/li&gt;
&lt;li&gt;Zustand&lt;/li&gt;
&lt;li&gt;IndexedDB&lt;/li&gt;
&lt;li&gt;Service Workers&lt;/li&gt;
&lt;li&gt;Vitest and fast-check&lt;/li&gt;
&lt;li&gt;Playwright&lt;/li&gt;
&lt;li&gt;GitHub Actions and GitHub Pages&lt;/li&gt;
&lt;li&gt;Kiro Web&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also used ChatGPT to generate the four gothic pixel-art wallpapers and assist with submission preparation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9igu2bbs8ihcc8b0f32.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9igu2bbs8ihcc8b0f32.png" alt=" " width="774" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Kiro remained my primary AI-assisted development environment throughout the implementation, debugging and testing process.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learnt
&lt;/h2&gt;

&lt;p&gt;As a student, this hackathon was a valuable opportunity to work on a project from the initial idea all the way to a public release.&lt;/p&gt;

&lt;p&gt;My biggest takeaway is that AI-assisted development still requires planning, technical understanding and human judgment.&lt;/p&gt;

&lt;p&gt;Kiro helped me generate implementations, investigate problems and develop tests, but I still needed to decide what the application should do, evaluate the proposed changes and manually verify that features worked as intended.&lt;/p&gt;

&lt;p&gt;I also learnt when to stop adding features. Towards the end of development, I focused on fixing genuine issues, improving reliability and preparing the project for submission instead of continuously expanding its scope.&lt;/p&gt;

&lt;p&gt;Going forward, I would like to apply this spec-driven approach to more of my projects, even when working on smaller applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next for GhostOS?
&lt;/h2&gt;

&lt;p&gt;There are still areas I would like to explore in the future, such as improved accessibility, stronger storage recovery mechanisms and additional offline productivity applications.&lt;/p&gt;

&lt;p&gt;For now, I'm happy to have completed a working application that reflects my original idea for the Resurrection theme.&lt;/p&gt;

&lt;p&gt;GhostOS started as an idea about bringing back the independence of classic personal computing. It eventually became a functional desktop workspace that I could build, test, deploy and share with others.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try GhostOS
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live application: &lt;a href="https://yxingggg.github.io/ghostos/" rel="noopener noreferrer"&gt;https://yxingggg.github.io/ghostos/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub repository: &lt;a href="https://github.com/yxingggg/ghostos" rel="noopener noreferrer"&gt;https://github.com/yxingggg/ghostos&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Kiro development documentation: &lt;a href="https://github.com/yxingggg/ghostos/blob/main/docs/KIRO.md" rel="noopener noreferrer"&gt;https://github.com/yxingggg/ghostos/blob/main/docs/KIRO.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Kiro specifications: &lt;a href="https://github.com/yxingggg/ghostos/tree/main/.kiro" rel="noopener noreferrer"&gt;https://github.com/yxingggg/ghostos/tree/main/.kiro&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CI and test results: &lt;a href="https://github.com/yxingggg/ghostos/actions" rel="noopener noreferrer"&gt;https://github.com/yxingggg/ghostos/actions&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project is open source, and I'd be interested to hear feedback or suggestions from other developers.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GhostOS — The operating system that refused to die.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create. Preserve. Resurrect.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>webdev</category>
      <category>opensource</category>
      <category>hackathon</category>
    </item>
  </channel>
</rss>
