
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Modular file previewer utility for images, video, audio, and text with polished UI and improved UX.
Qirra is a modular, extensible file preview utility. It detects file types and loads the appropriate viewer/player for text, images, audio, video, or unsupported files. Optional encryption check is included. Qirra is designed for clarity, usability, and easy integration into modern web projects.
qirra/
│
├── index.js # Main controller (entry point)
├── qirra.css # Default styles for modals/previews
├── fileType.js # Handles file type detection (MIME/ext)
├── renderer.js # Loads the correct player/viewer based on file type
├── encryptionCheck.js # Checks if a file is encrypted (optional)
│
└── players/ # Contains viewers/players for different file types
├── textViewer.js # Renders text files
├── imageViewer.js # Renders image files
├── audioPlayer.js # Plays audio files (MP3, WAV, etc.)
├── videoPlayer.js # Plays video files (MP4, WebM, etc.)
└── unsupported.js # Handles unsupported file types
Install Qirra
Copy the qirra folder into your project or install via your preferred package manager (if published).
Import and use Qirra
import { previewFile } from './qirra/index.js';
// Inline preview:
previewFile('path/to/file.ext', { container: document.getElementById('preview-area'), modal: false });
// Modal preview:
previewFile('path/to/file.ext', { modal: true });
Include CSS
<link rel="stylesheet" href="./qirra/qirra.css">
Demo Page
demo.html for a modern, interactive example.import { previewFile } from './qirra/index.js';
// Inline preview
previewFile('examples/example.txt', { container: document.getElementById('preview-area') });
// Modal preview
previewFile('examples/image.jpg', { modal: true });
Add a new player module:
Create players/myTypeViewer.js for your new file type.
Update renderer.js:
Add logic to detect and load your new player based on file type.
Style as needed:
Update qirra.css for new preview styles.
Qirra aims to be the best, most extensible, and user-friendly file preview utility for web projects. Contributions and suggestions are welcome!
FAQs
Modular file previewer utility for images, video, audio, and text with polished UI and improved UX.
We found that qirra demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.