Skip to content

A dynamic status badge generator for Render.com deployments. Automatically displays your service's deploy status (Live, Failed, Deploying) in your README or docs using Shields.io and Render's API.

License

Notifications You must be signed in to change notification settings

nia-cloud-official/render-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Render Status Badge 🛠️🟢

npm version GitHub License Render Status

A dynamic status badge generator for Render.com deployments. Automatically displays your service's deploy status (Live, Failed, Deploying) in your README or docs using Shields.io and Render's API.

Example Badges Example Badges Example Badges

Features ✨

  • Real-time Status: Automatically updates based on Render's deploy status.
  • Customizable: Supports Shields.io styles (flat, plastic, etc.).
  • Multi-Project Ready: Use across multiple repos/services via .env config.
  • CI/CD Integration: Built-in GitHub Actions workflow for auto-updates.
  • Open Source: MIT licensed — modify and distribute freely!

Installation 📦

npm install render-status-badge
# or
yarn add render-status-badge

Usage 🚀

1. Configure Environment Variables

Create a .env file in your project root:

RENDER_API_KEY="your_render_api_key_here"
RENDER_SERVICE_ID="your_service_id_here"

2. Generate the Badge URL

Run the script to get your dynamic badge URL:

npx render-status-badge
# Output: https://img.shields.io/badge/Render-Live-brightgreen?logo=render&style=for-the-badge

3. Add to README.md

Paste the generated URL into your markdown:

![Render Status](YOUR_BADGE_URL_HERE)

GitHub Actions Automation 🤖

Add this workflow (.github/workflows/update-badge.yml) to auto-update your badge:

name: Update Render Status Badge
on:
  schedule:
    - cron: '*/5 * * * *' # Runs every 5 minutes
  workflow_dispatch:

jobs:
  update-badge:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Generate Badge
        env:
          RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }}
          RENDER_SERVICE_ID: ${{ secrets.RENDER_SERVICE_ID }}
        run: npx render-status-badge >> badge-url.txt
      - name: Update README
        run: |
          sed -i "s|https://img.shields.io/badge/Render-Unknown-lightgrey?logo=render
          git commit -am "Update Render status badge" && git push

Configuration ⚙️

Environment Variable Required Description
RENDER_API_KEY Yes Render API key (get it here)
RENDER_SERVICE_ID Yes Your Render service ID

Contributing 🤝

Contributions are welcome! Here’s how:

  1. Report Issues: Open a GitHub issue for bugs or feature requests.
  2. Suggest Features: Propose improvements via Discussions.
  3. Submit PRs: Fork the repo, create a branch, and open a PR.

License 📄

MIT License — see LICENSE for details.


Made by Milton Vafana
Credits to Render and Shields.io

About

A dynamic status badge generator for Render.com deployments. Automatically displays your service's deploy status (Live, Failed, Deploying) in your README or docs using Shields.io and Render's API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •