跳到正文
DEV Community· Priti Yadav·· 3 小時前AI 評分32

《Ghost in the Machine:以本地開源 AI 和 Web Speech API 打造幽靈終端》

"Ghost in the Machine: Building a Haunted Terminal with Local Open-Source AI & Web Speech API"

AI 導讀

Haunted Terminal & Ghost Shell Whisperer 是一款本地優先的終端伴侶,會監察 Shell 指令,並在畫面上顯示及以語音播放情境式評論。它以 HTML、CSS、JavaScript 和瀏覽器的 Web Speech API 建構,可離線評估指令,無須把指令或專案檔案路徑傳送至外部伺服器;亦可替換回應規則或接入本地 Ollama/開放權重模型。

正文

Priti Yadav

Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission 👻🌼

👻 Introduction

For Hacktoberfest 2026 Week 4: Ghost in the Machine, I wanted to build something that blends retro nostalgia, privacy-first open-source AI, and immersive audio. Introducing the Haunted Terminal & Ghost Shell Whisperer—a local-first terminal companion that watches your shell commands and whispers eerie, contextual commentary both on screen and out loud!

🛠️ What I Built

A retro CRT-styled web terminal interface built with pure HTML, CSS, and lightweight JavaScript inference logic combined with the browser's Web Speech API (speechSynthesis).

When users type commands like git status, npm install, sudo, or hack:

  1. The local machine instantly evaluates the command without sending any data to external cloud servers.
  2. It outputs spooky CRT text styling.
  3. It triggers a synthesized, low-pitched voice whisper that speaks the haunting commentary directly through your speakers!

💡 Why Open Innovation Matters Here

  • Zero Internet Required: Works completely offline on your laptop with the lights (and Wi-Fi) turned off.
  • Privacy First: Your terminal commands and project file paths never leave your local workspace to feed a third-party server.
  • Customizable Spirits: Easily swap response rules or plug in local Ollama/open-weight models.

🚀 Check out the Code & Try It Out

Explore the open-source repository on GitHub: Priti2008/haunted-terminal-whisperer

來源:DEV Community · dev.to