Socket
Book a DemoInstallSign in
Socket

duron-dashboard

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

duron-dashboard

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Duron Dashboard

A beautiful React dashboard for monitoring and managing Duron jobs in real-time. Duron Dashboard can be used as a React component library or as a standalone HTML application.

Installation

# Using bun
bun add duron-dashboard

# Using npm
npm install duron-dashboard

# Using pnpm
pnpm add duron-dashboard

# Using yarn
yarn add duron-dashboard

Usage

As a React Component

Import and use the DuronDashboard component in your React application:

import { DuronDashboard } from 'duron-dashboard'
import 'duron-dashboard/index.css'

function App() {
  return <DuronDashboard url="https://api.example.com/api" />
}

The url prop should point to your Duron server API endpoint (typically /api).

As an Inline HTML Application

Use the getHTML function to render a fully inlined HTML application. This is useful for server-side rendering where you want to serve a complete HTML page with all assets inlined.

Elysia

import { Elysia } from 'elysia'
import { getHTML } from 'duron-dashboard/get-html'

const app = new Elysia()

app.get('/', async () => {
  const html = await getHTML({ url: 'http://localhost:3000/api' })
  return new Response(html, {
    headers: { 'Content-Type': 'text/html' },
  })
})

app.listen(3000)

Hono

import { Hono } from 'hono'
import { getHTML } from 'duron-dashboard/get-html'

const app = new Hono()

app.get('/dashboard', async (c) => {
  const html = await getHTML({ url: 'https://api.example.com/api' })
  return c.html(html)
})

Express

import express from 'express'
import { getHTML } from 'duron-dashboard/get-html'

const app = express()

app.get('/dashboard', async (req, res) => {
  const html = await getHTML({ url: 'https://api.example.com/api' })
  res.send(html)
})

Fastify

import Fastify from 'fastify'
import { getHTML } from 'duron-dashboard/get-html'

const app = Fastify()

app.get('/dashboard', async (request, reply) => {
  const html = await getHTML({ url: 'https://api.example.com/api' })
  reply.type('text/html').send(html)
})

Features

  • Real-time Updates - Automatic polling for job status changes
  • Job Management - View, filter, search, and manage jobs
  • Step Details - Inspect individual steps within jobs
  • Action Runner - Create and run new jobs directly from the dashboard
  • Advanced Filtering - Filter by status, action name, date ranges, and more
  • Dark Mode - Built-in dark mode support
  • Responsive Design - Works on desktop and mobile devices

Authentication

The dashboard requires authentication if your Duron server has login configured. Users will be prompted to log in when accessing the dashboard.

Development

# Install dependencies
bun install

# Start development server
bun dev

# Build
bun run build

# Type check
bun run typecheck

License

MIT

FAQs

Package last updated on 06 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts