npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2025 โ€“ย Pkg Stats / Ryan Hefner

@mantisware/cursor-bridge-server

v1.0.0

Published

The brain of browser automation! ๐Ÿง ๐Ÿค– Captures browser events, logs, and screenshots with style - because debugging should be fun! โœจ

Readme

๐Ÿ–ฅ๏ธ CursorBridge Server

The ultimate browser whisperer! Your AI's best friend for capturing and managing browser events, logs, and screenshots! ๐ŸŽฏ

Version: Beta 1.0.0 ๐Ÿš€

Meet the CursorBridge Server - the powerful middleware that makes all the browser magic happen! This server works hand-in-hand with the CursorBridge Chrome Extension to give your AI superpowers for comprehensive browser debugging and analysis. It's like having a super-attentive assistant that never misses a thing! ๐Ÿ‘€โœจ

๐Ÿš€ Superpowers (AKA Features)

  • ๐Ÿ‘€ Console Log Capture: Never miss a single console message (even the sneaky ones!)
  • ๐ŸŒ Network Request Monitoring: Watch every network request like a hawk
  • ๐Ÿ“ธ Screenshot Capture: Snap perfect screenshots at the perfect moment
  • ๐ŸŽฏ Element Selection Tracking: Keep track of what users are clicking on
  • โšก WebSocket Real-time Communication: Lightning-fast communication with your browser
  • โš™๏ธ Smart Configuration: Customizable log limits and settings (because you're the boss!)
  • ๐Ÿ” Lighthouse-Powered Audits: Accessibility, performance, SEO, and best practices audits that actually make sense!

๐Ÿ“ฆ Installation (Let's Get This Party Started!)

Ready to fire up your browser server? Here's how to get it running! ๐ŸŽ‰

npx @mantisware/cursor-bridge-server

Or if you want to install it globally (like a proper power user!):

npm install -g @mantisware/cursor-bridge-server

๐ŸŽฎ Usage (The Fun Part!)

  1. Fire Up the Server: Start your server with this magic command:
npx @mantisware/cursor-bridge-server
  1. Port Magic: The server will start on port 3035 by default (it's like having a secret door to your browser!)

  2. Extension Time: Install and enable the CursorBridge Chrome Extension (your browser's new best friend!)

  3. API Endpoints: The server exposes these amazing endpoints for all your browser needs:

  • ๐Ÿ“ /console-logs - Get console logs (the good, the bad, and the ugly!)
  • โŒ /console-errors - Get console errors (because we all make mistakes!)
  • ๐ŸŒ /network-errors - Get network error logs (when things go sideways)
  • โœ… /network-success - Get successful network requests (the happy path!)
  • ๐Ÿ”„ /all-xhr - Get all network requests (the complete picture!)
  • ๐Ÿ“ธ /screenshot - Capture screenshots (perfect timing every time!)
  • ๐ŸŽฏ /selected-element - Get currently selected DOM element (what's the user looking at?)
  • โ™ฟ /accessibility-audit - Run accessibility audit on current page (making the web accessible!)
  • โšก /performance-audit - Run performance audit on current page (speed demon mode!)
  • ๐Ÿ” /seo-audit - Run SEO audit on current page (Google will love you!)

๐Ÿ“š API Documentation (The Technical Stuff!)

๐Ÿ” GET Endpoints (The Information Gatherers)

  • GET /console-logs - Returns recent console logs (all the juicy details!)
  • GET /console-errors - Returns recent console errors (the oops moments!)
  • GET /network-errors - Returns recent network errors (when the internet misbehaves!)
  • GET /network-success - Returns recent successful network requests (the wins!)
  • GET /all-xhr - Returns all recent network requests (the complete story!)
  • GET /selected-element - Returns the currently selected DOM element (what caught your eye!)

๐Ÿ“ค POST Endpoints (The Action Takers)

  • POST /extension-log - Receive logs from the extension (the data pipeline!)
  • POST /screenshot - Capture and save screenshots (snap that perfect moment!)
  • POST /selected-element - Update the selected element (tracking user focus!)
  • POST /wipelogs - Clear all stored logs (fresh start, anyone?)
  • POST /accessibility-audit - Run a WCAG-compliant accessibility audit on the current page (making the web inclusive!)
  • POST /performance-audit - Run a performance audit on the current page (speed optimization time!)
  • POST /seo-audit - Run a SEO audit on the current page (search engine optimization magic!)

๐Ÿ” Audit Functionality (The Magic Behind the Scenes!)

The server provides Lighthouse-powered audit capabilities through four AI-optimized endpoints. These audits have been specifically tailored for AI consumption, with structured data, clear categorization, and smart prioritization. It's like having a team of web development experts analyze your site 24/7! ๐Ÿง โœจ

Smart Limit Implementation

All audit tools implement a "smart limit" approach to provide the most relevant information based on impact severity:

  • Critical issues: No limit (all issues are shown)
  • Serious issues: Up to 15 items per issue
  • Moderate issues: Up to 10 items per issue
  • Minor issues: Up to 3 items per issue

This ensures that the most important issues are always included in the response, while less important ones are limited to maintain a manageable response size for AI processing.

Common Audit Response Structure

All audit responses follow a similar structure:

{
  "metadata": {
    "url": "https://example.com",
    "timestamp": "2025-03-06T16:28:30.930Z",
    "device": "desktop",
    "lighthouseVersion": "11.7.1"
  },
  "report": {
    "score": 88,
    "audit_counts": {
      "failed": 2,
      "passed": 17,
      "manual": 10,
      "informative": 0,
      "not_applicable": 42
    }
    // Audit-specific content
    // ...
  }
}

Accessibility Audit (/accessibility-audit)

The accessibility audit evaluates web pages against WCAG standards, identifying issues that affect users with disabilities.

Response Format

{
  "metadata": {
    "url": "https://example.com",
    "timestamp": "2025-03-06T16:28:30.930Z",
    "device": "desktop",
    "lighthouseVersion": "11.7.1"
  },
  "report": {
    "score": 88,
    "audit_counts": {
      "failed": 2,
      "passed": 17,
      "manual": 10,
      "informative": 0,
      "not_applicable": 42
    },
    "issues": [
      {
        "id": "meta-viewport",
        "title": "`[user-scalable=\"no\"]` is used in the `<meta name=\"viewport\">` element or the `[maximum-scale]` attribute is less than 5.",
        "impact": "critical",
        "category": "a11y-best-practices",
        "elements": [
          {
            "selector": "head > meta",
            "snippet": "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0\">",
            "label": "head > meta",
            "issue_description": "Fix any of the following: user-scalable on <meta> tag disables zooming on mobile devices"
          }
        ],
        "score": 0
      }
    ],
    "categories": {
      "a11y-navigation": { "score": 0, "issues_count": 0 },
      "a11y-aria": { "score": 0, "issues_count": 1 },
      "a11y-best-practices": { "score": 0, "issues_count": 1 }
    },
    "critical_elements": [
      {
        "selector": "head > meta",
        "snippet": "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0\">",
        "label": "head > meta",
        "issue_description": "Fix any of the following: user-scalable on <meta> tag disables zooming on mobile devices"
      }
    ],
    "prioritized_recommendations": [
      "Fix ARIA attributes and roles",
      "Fix 1 issues in a11y-best-practices"
    ]
  }
}

Key Features

  • Issues Categorized by Impact: Critical, serious, moderate, and minor
  • Element-Specific Information: Selectors, snippets, and labels for affected elements
  • Issue Categories: ARIA, navigation, color contrast, forms, keyboard access, etc.
  • Critical Elements List: Quick access to the most serious issues
  • Prioritized Recommendations: Actionable advice in order of importance

Performance Audit (/performance-audit)

The performance audit analyzes page load speed, Core Web Vitals, and optimization opportunities.

Response Format

{
  "metadata": {
    "url": "https://example.com",
    "timestamp": "2025-03-06T16:27:44.900Z",
    "device": "desktop",
    "lighthouseVersion": "11.7.1"
  },
  "report": {
    "score": 60,
    "audit_counts": {
      "failed": 11,
      "passed": 21,
      "manual": 0,
      "informative": 20,
      "not_applicable": 8
    },
    "metrics": [
      {
        "id": "lcp",
        "score": 0,
        "value_ms": 14149,
        "passes_core_web_vital": false,
        "element_selector": "div.heading > span",
        "element_type": "text",
        "element_content": "Welcome to Example"
      },
      {
        "id": "fcp",
        "score": 0.53,
        "value_ms": 1542,
        "passes_core_web_vital": false
      },
      {
        "id": "si",
        "score": 0,
        "value_ms": 6883
      },
      {
        "id": "tti",
        "score": 0,
        "value_ms": 14746
      },
      {
        "id": "cls",
        "score": 1,
        "value_ms": 0.001,
        "passes_core_web_vital": true
      },
      {
        "id": "tbt",
        "score": 1,
        "value_ms": 43,
        "passes_core_web_vital": true
      }
    ],
    "opportunities": [
      {
        "id": "render_blocking_resources",
        "savings_ms": 1270,
        "severity": "serious",
        "resources": [
          {
            "url": "styles.css",
            "savings_ms": 781
          }
        ]
      }
    ],
    "page_stats": {
      "total_size_kb": 2190,
      "total_requests": 108,
      "resource_counts": {
        "js": 86,
        "css": 1,
        "img": 3,
        "font": 3,
        "other": 15
      },
      "third_party_size_kb": 2110,
      "main_thread_blocking_time_ms": 693
    },
    "prioritized_recommendations": ["Improve Largest Contentful Paint (LCP)"]
  }
}

Key Features

  • Core Web Vitals Analysis: LCP, FCP, CLS, TBT with pass/fail status
  • Element Information for LCP: Identifies what's causing the largest contentful paint
  • Optimization Opportunities: Specific actions to improve performance with estimated time savings
  • Resource Breakdown: By type, size, and origin (first vs. third party)
  • Main Thread Analysis: Blocking time metrics to identify JavaScript performance issues
  • Resource-Specific Recommendations: For each optimization opportunity

SEO Audit (/seo-audit)

The SEO audit checks search engine optimization best practices and identifies issues that could affect search ranking.

Response Format

{
  "metadata": {
    "url": "https://example.com",
    "timestamp": "2025-03-06T16:29:12.455Z",
    "device": "desktop",
    "lighthouseVersion": "11.7.1"
  },
  "report": {
    "score": 91,
    "audit_counts": {
      "failed": 1,
      "passed": 10,
      "manual": 1,
      "informative": 0,
      "not_applicable": 3
    },
    "issues": [
      {
        "id": "is-crawlable",
        "title": "Page is blocked from indexing",
        "impact": "critical",
        "category": "crawlability",
        "score": 0
      }
    ],
    "categories": {
      "content": { "score": 0, "issues_count": 0 },
      "mobile": { "score": 0, "issues_count": 0 },
      "crawlability": { "score": 0, "issues_count": 1 },
      "other": { "score": 0, "issues_count": 0 }
    },
    "prioritized_recommendations": [
      "Fix crawlability issues (1 issues): robots.txt, sitemaps, and redirects"
    ]
  }
}

Key Features

  • Issues Categorized by Impact: Critical, serious, moderate, and minor
  • SEO Categories: Content, mobile friendliness, crawlability
  • Issue Details: Information about what's causing each SEO problem
  • Prioritized Recommendations: Actionable advice in order of importance

Best Practices Audit (/best-practices-audit)

The best practices audit evaluates adherence to web development best practices related to security, trust, user experience, and browser compatibility.

Response Format

{
  "metadata": {
    "url": "https://example.com",
    "timestamp": "2025-03-06T17:01:38.029Z",
    "device": "desktop",
    "lighthouseVersion": "11.7.1"
  },
  "report": {
    "score": 74,
    "audit_counts": {
      "failed": 4,
      "passed": 10,
      "manual": 0,
      "informative": 2,
      "not_applicable": 1
    },
    "issues": [
      {
        "id": "deprecations",
        "title": "Uses deprecated APIs",
        "impact": "critical",
        "category": "security",
        "score": 0,
        "details": [
          {
            "value": "UnloadHandler"
          }
        ]
      },
      {
        "id": "errors-in-console",
        "title": "Browser errors were logged to the console",
        "impact": "serious",
        "category": "user-experience",
        "score": 0,
        "details": [
          {
            "source": "console.error",
            "description": "ReferenceError: variable is not defined"
          }
        ]
      }
    ],
    "categories": {
      "security": { "score": 75, "issues_count": 1 },
      "trust": { "score": 100, "issues_count": 0 },
      "user-experience": { "score": 50, "issues_count": 1 },
      "browser-compat": { "score": 100, "issues_count": 0 },
      "other": { "score": 75, "issues_count": 2 }
    },
    "prioritized_recommendations": [
      "Address 1 security issues: vulnerabilities, CSP, deprecations",
      "Improve 1 user experience issues: console errors, user interactions"
    ]
  }
}

Key Features

  • Issues Categorized by Impact: Critical, serious, moderate, and minor
  • Best Practice Categories: Security, trust, user experience, browser compatibility
  • Detailed Issue Information: Specific problems affecting best practices compliance
  • Security Focus: Special attention to security vulnerabilities and deprecated APIs
  • Prioritized Recommendations: Actionable advice in order of importance

License

MIT

Puppeteer Service

A comprehensive browser automation service built on Puppeteer to provide reliable cross-platform browser control capabilities.

Features

  • Cross-Platform Browser Support:

    • Windows, macOS, and Linux support
    • Chrome, Edge, Brave, and Firefox detection
    • Fallback strategy for finding browser executables
  • Smart Browser Management:

    • Singleton browser instance with automatic cleanup
    • Connection retry mechanisms
    • Temporary user data directories with cleanup
  • Rich Configuration Options:

    • Custom browser paths
    • Network condition emulation
    • Device emulation (mobile, tablet, desktop)
    • Resource blocking
    • Cookies and headers customization
    • Locale and timezone emulation