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

renderbird

v1.0.4

Published

Eaisily create renderings with renderbird in your website!

Readme

Welcome to renderbird see which you are below I am a user who is using this to render a website

I am a developer that wants to use renderbird in my browser

#user

Welcome to render bird! To get started first download Node Now that you have node open the terminal and add to system path Now type:

npm
npm i renderbird

Now create a new.js file. then put this in it

node.js
const renderBird = require('renderbird');
renderBird.init();

Run it with node.js and you have render bird installed on the system

#dev

How to Use RenderBird in Your Website Step 1: Install RenderBird Start by installing RenderBird through npm:

bash
npm install renderbird

Step 2: Initialize RenderBird Create a Node.js script to start the RenderBird server. This will host the rendering library on localhost:9961.

Example:

javascript
const renderBird = require('renderbird');
renderBird.init();

Run this script using:

bash
node your-script.js

Step 3: Access RenderBird in the Browser Once the server is running, open your browser and navigate to:

[the render bird localhost](http://localhost:9961/renderbird 'localhost:9961/renderbird)

This will display the available commands in the RenderBird library.

Step 4: Integrate RenderBird into Your Website To use RenderBird commands, make HTTP requests from your website to the RenderBird server.

Example Integration with HTML and JavaScript: Create an HTML file (index.html) and include JavaScript to interact with RenderBird:

xml
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RenderBird Integration</title>
</head>
<body>
    <h1>RenderBird Demo</h1>
    <button id="check-installed">Check Installation</button>
    <button id="render-text">Render Text</button>
    <button id="render-box">Render Box</button>

    <script>
        // Check if RenderBird is installed
        document.getElementById('check-installed').addEventListener('click', async () => {
            const response = await fetch('http://localhost:9961/renderbird/rb.installed');
            const text = await response.text();
            alert(text);
        });

        // Render Text Example
        document.getElementById('render-text').addEventListener('click', async () => {
            const response = await fetch('http://localhost:9961/renderbird/rb.renderText?text=HelloWorld');
            const blob = await response.blob();
            const url = URL.createObjectURL(blob);
            const img = document.createElement('img');
            img.src = url;
            document.body.appendChild(img);
        });

        // Render Box Example
        document.getElementById('render-box').addEventListener('click', async () => {
            const response = await fetch('http://localhost:9961/renderbird/rb.renderBox?width=300&height=200');
            const blob = await response.blob();
            const url = URL.createObjectURL(blob);
            const img = document.createElement('img');
            img.src = url;
            document.body.appendChild(img);
        });
    </script>
</body>
</html>

Step 5: Extend RenderBird for Custom Rendering Developers can extend RenderBird by adding new endpoints or modifying the rendering logic in the Node.js script.

For example, to add a custom rendering command for circles:

javascript
// Add this endpoint in your Node.js script
if (req.url.startsWith('/renderbird/rb.renderCircle')) {
    const query = new URL(req.url, `http://localhost:9961`);
    const radius = parseInt(query.searchParams.get("radius") || "50");
    const canvas = createCanvas(radius * 2 + 10, radius * 2 + 10);
    const ctx = canvas.getContext('2d');
    ctx.beginPath();
    ctx.arc(radius + 5, radius + 5, radius, 0, Math.PI * 2);
    ctx.fillStyle = 'green';
    ctx.fill();
    ctx.strokeStyle = 'black';
    ctx.stroke();
    res.writeHead(200, { 'Content-Type': 'image/png' });
    res.end(canvas.toBuffer());
}

Step 6: Prepare for Future Enhancements RenderBird is designed for easy integration with websites. Future updates will include support for 3D rendering using libraries like Three.js. Developers can start experimenting by adding WebGL or Three.js code.