Spek showed whether your "lossless" files were fake. SpectreGram brings it back as a haunted desktop app that does the checking for you, across a whole folder.

Who it's for: anyone with a ripped or downloaded music library who wants to know which "FLAC" files are really lossless. Why it matters: the checking is slow and boring by hand, so most of us never finish it. SpectreGram gives you a verdict per file, labelled an estimate, and a Markdown report for the whole folder. It runs entirely on your machine, with no uploads and no accounts.

Kiro features used: spec-driven development (7 specs in .kiro/specs/), steering docs (3 in .kiro/steering/), an agent hook (SessionStart, in .kiro/hooks/), and Kiro workflows with a code-review loop. MCP, property-based testing and powers were not used.

Inspiration

In the 2000s, everybody I knew had a music collection they built by hand. We ripped our own CDs, traded albums, and burned mixes. A big part of the fun was bragging: how many albums you had, how well organized the folders were, and above all, how good the quality was. A "lossless" label on a folder was a badge of honor.

Then came the doubt. That "FLAC" you downloaded might really be a low-bitrate MP3 someone had re-saved — a lossy file wearing a lossless costume. So people checked, and the tool I knew was Spek. You opened a file, looked at its spectrogram, and watched for a hard cutoff where the sound just stops. I used it by hand, file after file.

Then streaming took over. Nobody cares about their collection anymore, and I lost my momentum on that long, boring job of checking everything. I kept putting it off. I still have plenty left to check.

So I wanted to resurrect it: could a Kiro agent help me build something like Spek — and also automate the boring part, and add some fun?

What it does

Drop in an audio file. SpectreGram draws the full-track spectrogram, estimates where the real frequency cutoff sits, and stamps the file GENUINE or COSTUME. A genuine lossless file reaches the top of the spectrum. A 128 kbps MP3 stops at a hard shelf near 16 kHz.

The automation and the fun are what the original never had:

  • Folder report. Scan a folder and its subfolders. A drumroll builds, you click Reveal, and the collection gets a rating from "Crypt Keeper" to "Costume Party Noob". Save the results as a Markdown report. This is the boring job I kept putting off, done for me.
  • Zoom that re-analyses. Drag, or Ctrl/Cmd + wheel. The audio is recomputed at full detail, not stretched.
  • Phase overlay. An optional hue tint shows each bin's phase inside the same graph.
  • Spectral message. Write up to 32 characters (emoji work) into a new WAV so the words appear in its spectrogram. The original is never changed, and a built-in check refuses any result that would change the verdict.
  • Haunted from the first screen. A ghost playhead, verdict stamps, a ghost that floats over the empty screen ("Drop a file... if you dare"), an idle screensaver and a synthesized drumroll.
  • PNG export of the current view, the whole track, or stacked strips.

How I built it with Kiro

  • Specs first. Each feature has requirements.md, design.md and tasks.md in .kiro/specs/ (the core, the Electron shell, folder report, spectral message, ruler seek, phase view and submission readiness). The write-up in the repo lists spec and first-code timestamps from git log. For two features the spec and the first code landed in the same commit, and it says so.
  • Steering. .kiro/steering/ locks the stack (vanilla TypeScript and Vite, Canvas 2D, fft.js, a Web Worker), states the clean-room rule for Spek, and bans local paths in tracked files.
  • A hook. A SessionStart hook reminds every agent session of those rules: clean room, verdicts are estimates, no new framework.
  • Workflows with review. Features were built through design, code and review loops. One review caught a real cutoff edge case, and a Vitest regression test now guards it.
  • Open source. MIT licensed, so a collector or a student can read, run or extend it after the hackathon. The stack is plain TypeScript with no framework or backend.

Spek is GPL-3.0 and SpectreGram is MIT. No Spek code is used. Only the idea is reimplemented: an STFT spectrogram and a frequency-cutoff reading are standard DSP. The FFT is the MIT-licensed fft.js, and decoding is the browser's own decodeAudioData.

Challenges

  • A spectral message that is comfortable. My first versions added sound to the track. They sounded bad and barely showed over real music. What worked was cutting the letters out of the existing sound instead.
  • Not overclaiming. A legitimately filtered master can look suspicious, and a genuine 44.1 kHz file can read "inconclusive" on a 48 kHz device. Those stay estimates.
  • Size. Electron bundles a full browser, so the app is large (about 112 MB portable).

Honest limits and future work

  • The cutoff thresholds are heuristic estimates, tested with synthetic fixtures and several real lossy files. Calibration against a labelled corpus of genuine and lossy files is future work. Ambiguous results are reported as inconclusive.
  • Some features (zoom, the export panel, the About card, the Halloween styling) were built without a Kiro spec. The Kiro write-up lists them.
  • The Linux and macOS builds come from GitHub Actions and were not launched by the maintainer. The macOS build is Apple Silicon only. [MAINTAINER: edit if you test them.]
  • Builds are unsigned, so SmartScreen or Gatekeeper will warn on first launch.
  • Future work: faster folder scans by running files in parallel, a much smaller download, broader calibration, and signed builds.

Pre-existing code and assets disclosure

  • New project, first commit 2026-11-06, inside the submission period.
  • Libraries: fft.js (MIT), Electron, Vite, TypeScript, Vitest.
  • The app icon and the idle-screensaver video are AI-generated artwork made for this project. [MAINTAINER: confirm the tools used and that you have the rights.]
  • The drumroll is synthesized in code. No third-party audio ships.

Built with (up to 25 tags)

Kiro, TypeScript, Vite, Electron, electron-builder, HTML5 Canvas, Web Audio API, Web Workers, fft.js, Vitest, CSS, GitHub Actions

Try it out links

  1. https://github.com/lanly-dev/SpectreGram/releases/tag/1.0.0 (downloads for Windows, Linux and macOS)
  2. https://github.com/lanly-dev/SpectreGram (source, MIT)

Image gallery (JPG/PNG/GIF, 5 MB max each, 3:2 ratio)

Use the snipping tool, not the app's PNG export, which can exceed 5 MB. In order:

  1. The fake FLAC with the COSTUME stamp (this becomes the thumbnail).
  2. The genuine file and its verdict.
  3. The folder-report rating reveal.
  4. A zoomed view with the phase overlay on.
  5. A spectral message showing in a spectrogram.
  6. The .kiro/specs/ folder, so Kiro is visible on the project page.

Demo video

https://www.youtube.com/watch?v=mLtPvLh_rKY (public, "SpectreGram demo"). Script: demo-script.md.

Project page

https://devpost.com/software/spectregram

Thank you

Thank you to the Kiro team for the free Kiro credits that made this Kiroween 2026 project possible.

Built With

Share this project:

Updates

Submission history