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

@emdzej/ediabasx-web-ui

v0.7.1

Published

Shared Svelte 5 components for ediabasx-family web apps — Connect button, Interface configuration panel. Source-only; consumer apps' Vite compiles them. Expects @emdzej/bimmerz-theme Tailwind preset applied.

Downloads

1,371

Readme

@emdzej/ediabasx-web-ui

Shared Svelte 5 components for the EdiabasX-family web apps — ediabasx-web, and (planned) inpax-web, ncsx-web. Source-only: the consumer's Vite + svelte-plugin compiles them.

Currently ships:

  • ConnectButton — presentational connect/disconnect button. Takes phase (idle / connecting / connected / error / disconnected), an idle/connected/error tooltip, and onconnect / ondisconnect callbacks. No runtime imports — the consumer wires its own state.
  • ConnectConfigPanel — client-mode connection method picker (Direct / Bimmerz Connect). Direct shows <ServerConfigPanel> (server URL input). Bimmerz Connect shows Session ID + Token text inputs. Binds to config: ModeConfig, connectSessionId: string | null, connectToken: string | null.
  • InterfaceConfigPanel — the interface <select> + per-interface fieldsets. Three transports surfaced with BMW-familiar labels: Web Serial — K+DCAN cable (local), J2534 — Tactrix OpenPort 2.0, Gateway — remote ediabasx host. Two-way binds to a config object satisfying InterfaceConfig. available={["webserial", "j2534"]} lets a consumer hide options it can't drive. The Web Serial fieldset includes a note pointing users at the Gateway path when they hit FTDI-latency issues the browser can't fix.
  • ModeConfigPanel — embedded / client mode selector. Binds to config: ModeConfig.
  • ServerConfigPanel — server URL input for direct WebSocket connections. Binds to config: ModeConfig.
  • Shared typesAppMode, ClientConnectionMethod, InterfaceConfig, InterfaceType, ModeConfig, SerialConfig, GatewayConfig, ConnectionPhase. Each app's WebConfig typically extends InterfaceConfig with its own app-specific fields (logging, install handle, …).

Install

pnpm add @emdzej/ediabasx-web-ui @emdzej/bimmerz-theme

Use

<script lang="ts">
  import {
    ConnectButton,
    InterfaceConfigPanel,
    type InterfaceConfig,
  } from '@emdzej/ediabasx-web-ui';

  let config = $state<InterfaceConfig>({ interface: 'webserial', serial: {} });
</script>

<InterfaceConfigPanel bind:config />

<ConnectButton
  phase={runtime.phase}
  message={runtime.message}
  onconnect={connect}
  ondisconnect={disconnect}
/>

Tailwind setup (REQUIRED)

Tailwind tree-shakes any class it doesn't see in its content glob. Workspace packages live outside the consumer's ./src, so you must explicitly list this package's source files:

// tailwind.config.ts (consumer)
import bimmerzPreset from '@emdzej/bimmerz-theme';

export default {
  content: [
    './index.html',
    './src/**/*.{ts,svelte}',
    // For published consumers
    './node_modules/@emdzej/ediabasx-web-ui/src/**/*.{ts,svelte}',
    // ...or for monorepo consumers
    // '../../packages/web-ui/src/**/*.{ts,svelte}',
  ],
  presets: [bimmerzPreset],
  // ...per-app accent extension here
};

Without this, components render with no colour (Tailwind generates no CSS for unseen utility classes).

Theming

Components use Tailwind tokens from the @emdzej/bimmerz-theme preset: bg-surface, text-muted, border-divider, etc. The consumer must:

  1. Apply the preset in tailwind.config.ts (presets: [bimmerzPreset]).
  2. Import the tokens in app.css:
    @import "@emdzej/bimmerz-theme/tokens.css";
    @tailwind base;
    @tailwind components;
    @tailwind utilities;
  3. Toggle .dark on <html> for the dark scope.

Per-app accent (e.g. cyan for ediabasx, blue for inpax) stays in the consumer's local tailwind.config.ts extension.

Peer deps

  • svelte ^5.0.0
  • @emdzej/bimmerz-theme ^0.1.0
  • tailwindcss ^3.4.0