Automate Dashboard Metrics with n8n HTTP & Function Nodes

Struggling to manually update your project’s Docker, GitHub, npm, and Product Hunt stats? This n8n workflow automates retrieving and posting these key metrics to your dashboard, saving hours and minimizing errors automatically.
cron
httpRequest
function
+2
Workflow Identifier: 2159
NODES in Use: Cron, Set, HTTP Request, Function, GitHub
Automate dashboard metrics with n8n and HTTP

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow collects important project data from DockerHub, GitHub, npm, and Product Hunt automatically. It solves the problem of spending hours every week gathering this data manually and making errors. The result is up-to-date project metrics posted to a dashboard fast and error-free.

It fetches stars, pulls, forks, watchers, scores, and reviews, then formats numbers nice and posts them safely with tokens.


Tools and Services Used

  • DockerHub API: Gets stars and pulls for repositories.
  • GitHub API: Fetches stars, forks, watchers, and open issues for repos.
  • npm API: Provides package quality and popularity scores.
  • Product Hunt GraphQL API: Retrieves votes, comments, reviews, and ratings.
  • Dashboard REST API: Receives and displays posted metrics securely.
  • n8n Workflow Automation: Runs all API calls, formatting, and posting regularly.

Inputs, Processing, and Outputs

Inputs

  • Dashboard configuration data with API URLs and tokens.
  • Repository and package names or IDs for DockerHub, GitHub, npm, and Product Hunt.

Processing Steps

  • Trigger workflow every minute by cron node.
  • Fetch DockerStar and Pull counts via HTTP requests.
  • Format numbers from Docker data to readable strings.
  • Post Docker metrics securely to dashboard API.
  • Fetch npm package scores using HTTP requests.
  • Round npm scores to two decimals for display.
  • Post all npm scores securely to dashboard endpoints.
  • Use GitHub node to get repo stats.
  • Format GitHub stats with commas.
  • Post them to dashboard API to update respective widgets.
  • Call Product Hunt GraphQL API for post data.
  • Format Product Hunt numbers.
  • Post Product Hunt data to dashboard using HTTP requests.

Outputs

  • Dashboard updates with latest stars, pulls, forks, watches, npm scores, and Product Hunt feedback.
  • Readably formatted numeric data shown in dashboard widgets.
  • Reduced manual work and errors, fresh data every minute.

Beginner Step-by-Step: How to Use This Workflow in n8n

1. Download and Import

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor, click Import from File.
  3. Select the downloaded workflow JSON to import.

2. Configure API Credentials

  1. Go to the Dashboard Configuration Set node.
  2. Update dashboard API URL and auth token.
  3. Enter exact DockerHub repo names, GitHub owner and repo, npm package name, and Product Hunt post ID values.
  4. Go to GitHub node, add or link API credentials with repo read access.
  5. Configure Product Hunt HTTP Request node with the correct API key in headers.

3. Test the Workflow Once

  1. Run the workflow manually using the Cron node trigger.
  2. Check execution to confirm data fetching and posting works without errors.
  3. Look at outputs in your dashboard to verify updated metrics format properly.

4. Activate for Production Use

  1. Turn the workflow to Active in n8n.
  2. Workflow runs every minute capturing fresh data continuously.
  3. Monitor API limits to avoid overuse; adjust Cron frequency if needed.
  4. Consider self-host n8n for better control and security when running this workflow on a server or VPS.

Common Edge Cases and Failures

Problem: Receiving HTTP 401 when posting to the dashboard.

Cause: The authentication token is wrong or missing.

Fix: Confirm the token in the Dashboard Configuration node exactly matches what the dashboard expects. No extra spaces allowed.

Problem: HTTP 404 errors when calling DockerHub or GitHub APIs.

Cause: Incorrect repository or package names in config.

Fix: Double-check the exact spellings for Docker repository, GitHub owner and repo, npm package, and Product Hunt post ID.


Customization Ideas

  1. Change Frequency
    Adjust the Cron node to run hourly or daily if per-minute updates aren’t needed.
  2. Add More Metrics
    Duplicate HTTP Request nodes to pull extra data like GitHub releases, npm downloads, or other social signals.
  3. Modify Dashboard API Calls
    Update URLs and payloads in HTTP Request nodes if the dashboard expects different data formats.
  4. Improve Formatting
    Edit Function nodes to add other formatting styles or calculate new stats before posting.

Summary and Outcome

✓ Save hours weekly by automating data fetching and posting.

✓ Avoid errors by removing manual copying and pasting.

✓ Get fresh, formatted project stats from multiple services every minute.

➔ Real-time, trustworthy dashboard insights improve project decisions.

➔ A solid, easy-to-use workflow fits most project setups with room to expand.


Automate dashboard metrics with n8n and HTTP

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow uses the GitHub node by default. To use GitLab, replace GitHub calls with HTTP Request nodes targeting GitLab API endpoints. Adjust the requests and data accordingly.
401 errors happen when the authentication token is missing, expired, or incorrect in HTTP Request headers. Verify the API Key or auth token used for the dashboard and other services is valid and correctly set.
Lower the trigger frequency in the Cron node from every minute to hourly or daily. This reduces the number of API calls while still updating data regularly.
Yes. All HTTP POST calls include authentication tokens. Use HTTPS endpoints for the dashboard API to secure data in transit and protect tokens from being intercepted.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.