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 🙏

© 2026 – Pkg Stats / Ryan Hefner

elektron

v0.8.3

Published

A premium, minimalist admin dashboard designed with Technical Prestige.

Readme

Elektron Admin Layout

Elektron is a premium, minimalist admin dashboard designed with "Technical Prestige" in mind. Built with Vite, TypeScript, and Tailwind CSS, it offers a sophisticated interface that balances functionality with aesthetic excellence.


✨ Features

  • Technical Prestige: Inspired by Linear and Vercel aesthetics - deep blacks, thin borders, and high-contrast typography.
  • Glassmorphism: Elegant use of background blurs and translucent layers for depth.
  • Editorial Typography: Lightweight fonts and wide tracking for an authoritative, premium feel.
  • Micro-animations: Fluid transitions and subtle hover effects for a responsive user experience.
  • Ultra-Responsive: Optimized for all screen sizes with a smart sidebar and layout system.

🚀 Getting Started

Installation

Install Elektron via NPM:

npm install elektron

Or use it directly via CDN:

<!-- CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/elektron/lib/elektron.css">

<!-- UMD (Universal) -->
<script src="https://cdn.jsdelivr.net/npm/elektron/lib/elektron.umd.cjs"></script>

<!-- ESM (Modern) -->
<script type="module">
  import { initSidebar } from 'https://cdn.jsdelivr.net/npm/elektron/lib/elektron.js';
  initSidebar();
</script>

Usage

With npm

With precompiled CSS (no Tailwind required)

import 'elektron/style.css'

Or in your CSS file:

@import "elektron/style.css";

With Tailwind CSS v4

Do not import the precompiled CSS. Instead, point Tailwind at elektron's source so it scans and compiles the classes together with your own:

In your CSS file:

@import "tailwindcss";
@source "../node_modules/elektron/src";
@import "elektron/source";

@theme {
  /* override elektron's theme variables if needed */
  --font-sans: "Your Font", sans-serif;
  --color-bg-main: #0f0f0f;
}

This way there are no duplicate styles — everything is compiled in a single pass.


Via CDN (jsDelivr / unpkg)

No build step required. Add the precompiled CSS directly to your HTML:

jsDelivr

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/elektron/lib/elektron.css">

unpkg

<link rel="stylesheet" href="https://unpkg.com/elektron/lib/elektron.css">

For a specific version:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/lib/elektron.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/lib/elektron.css">

JavaScript

With npm

import { initSidebar } from 'elektron'

initSidebar()

With custom options:

initSidebar({
  sidebarId: 'my-sidebar',
  toggleId: 'my-toggle',
  backdropId: 'my-backdrop'
})

Via CDN (jsDelivr / unpkg)

<script type="module">
  import { initSidebar } from 'https://cdn.jsdelivr.net/npm/elektron/lib/elektron.js'
  initSidebar()
</script>

Or with unpkg:

<script type="module">
  import { initSidebar } from 'https://unpkg.com/elektron/lib/elektron.js'
  initSidebar()
</script>

initSidebar(options?)

| Option | Type | Default | Description | |---|---|---|---| | sidebarId | string | "sidebar" | id of the sidebar element | | toggleId | string | "sidebar-toggle" | id of the button that opens/closes the sidebar | | backdropId | string | "sidebar-backdrop" | id of the backdrop overlay element |

The function returns a cleanup function that removes all event listeners — useful for SPA frameworks:

const cleanup = initSidebar()

// later, when component is destroyed
cleanup()

CSS Variables (Theme)

You can override elektron's default theme by redefining these variables:

@theme {
  --color-bg-main: #050505;
  --color-bg-card: #0a0a0a;
  --color-brand-primary: #ffffff;
  --color-brand-secondary: #71717a;
  --color-brand-muted: #3f3f46;
  --color-titanium: #e2e2e2;
  --color-platinum: #f5f5f5;
  --color-slate-metal: #1e1e20;
  --color-border-subtle: rgba(255, 255, 255, 0.03);
  --color-border-active: rgba(255, 255, 255, 0.08);
}

CDN users can override via plain CSS:

:root {
  --color-bg-main: #0f0f0f;
  --color-brand-primary: #e0e0e0;
}

HTML Structure

<div class="elk-app">
  <div class="elk-wrap">
    <div class="elk-grain-overlay"></div>
    <div class="elk-backdrop"></div>

    <aside class="elk-sidebar">
      <header>
        <div class="elk-logo">
          <img src="logo.svg" alt="Logo" />
        </div>
        <span class="elk-title">My App</span>
      </header>
    </aside>

    <main class="elk-main">
      <header class="elk-main-header">
        <!-- top bar -->
      </header>
      <div class="elk-main-content">
        <!-- page content -->
      </div>
    </main>
  </div>
</div>

🗿 Design Philosophy: "Technical Prestige"

Elektron is not just a tool; it's an asset to be proud of. Our design principles are rooted in a synthesis of modern software excellence:

  • Space as Luxury: We utilize generous macro-spacing (p-8) to give every data point its own stage, avoiding clutter and favoring focus.
  • Editorial Typography: We use light weights and wide letter-spacing (tracking-widest) in headers to establish authority and a high-end feel.
  • Titanium & Slate Palette: Moving away from vibrant colors, we embrace industrial luxury with Titianium Gray, Platinum, and Brushed Steel tones.
  • Materiality: A subtle film grain texture is layered over the interface to break digital coldness and provide a tactile, physical feel.
  • Fluid Motion: Interactions are heavy and fluid, using cubic-bezier transitions for a substantial and controlled experience.

🛠 Development

# Install dependencies
npm install

# Run development server
npm run dev

# Build for production
npm run build

📄 License

MIT © onokumus