mirror of
https://github.com/imjasonh/apkviz
synced 2026-07-11 19:19:49 +00:00
This web application visualizes package dependencies in the Wolfi Linux distribution, providing powerful insights into the package ecosystem. Features: - Interactive force-directed dependency graph visualization - Shows both forward dependencies (what a package depends on) and reverse dependencies (what depends on it) - Click any node to re-center the visualization on that package - Transitive dependency analysis with toggle control - Advanced package analytics including: - Criticality scores showing how many packages depend on each package - Total size impact analysis (package + all dependencies) - Dependency depth metrics - Bus factor warnings for critical infrastructure packages - "Most Critical Packages" dashboard showing system-wide statistics - Real-time search with auto-complete - Different visual styles for direct vs transitive dependencies - Playwright-based testing infrastructure for automated UI testing Technical implementation: - TypeScript + D3.js for visualization - Webpack build system - Analyzes Wolfi's APKINDEX for package metadata - Efficient dependency graph algorithms - Responsive design with detailed package information panel 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
No EOL
926 B
JavaScript
30 lines
No EOL
926 B
JavaScript
const { chromium } = require('playwright');
|
|
|
|
async function testInteraction() {
|
|
const browser = await chromium.launch({ headless: true });
|
|
const page = await browser.newPage();
|
|
|
|
await page.goto('http://localhost:8081', { waitUntil: 'networkidle' });
|
|
await page.waitForTimeout(2000);
|
|
|
|
// Click on the busybox node
|
|
await page.click('circle');
|
|
await page.waitForTimeout(1000);
|
|
|
|
// Get the package details
|
|
const details = await page.evaluate(() => {
|
|
const detailsEl = document.getElementById('package-info');
|
|
return detailsEl ? detailsEl.innerText : 'No details found';
|
|
});
|
|
|
|
console.log('Package details after click:');
|
|
console.log(details);
|
|
|
|
// Take screenshot
|
|
await page.screenshot({ path: 'playwright-output/after-interaction.png', fullPage: true });
|
|
console.log('Screenshot saved to after-interaction.png');
|
|
|
|
await browser.close();
|
|
}
|
|
|
|
testInteraction().catch(console.error); |