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 🙏

© 2025 – Pkg Stats / Ryan Hefner

dazzleduck-arrow-ui

v1.0.10

Published

Reusable UI components from Arrow JS

Downloads

131

Readme

DazzleDuck SQL HTTP + Arrow JS Frontend

An integrated project combining DazzleDuck SQL HTTP Server and a modern Arrow JS Frontend for interactive SQL query execution and visualization in your browser.


🧩 Setup Guide

1. DazzleDuck SQL HTTP Server

  1. Navigate to the HTTP server folder:

    cd dazzleduck-sql-http
  2. Build the project:

    mvn clean install
  3. Start the HTTP server:

    java -jar target/dazzleduck-sql-http.jar
  4. Verify that it listens on:

    http://localhost:8080

The backend provides SQL execution APIs and has CORS enabled for the frontend.


2. Frontend (Arrow JS UI)

  1. Navigate to the frontend folder:

    cd ui/arrow-js-frontend
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm run dev
  4. Access the app:

    http://localhost:5173

Docker Support

🛠️ Build the Docker Image

From the project root (where the Dockerfile is located), run:

docker build -t dazzleduck-frontend .

🛠️ Start the container

docker run -p 5174:5174 dazzleduck-frontend

🔄 Integration Flow

  1. Frontend sends SQL queries to:

    POST http://localhost:8080
  2. DazzleDuck HTTP Server executes the query and sends back the Response.

  3. Frontend renders results using Arrow JS components.


🧰 Tech Stack

DazzleDuck HTTP: Java 21 • Helidon 4.x • Apache Arrow • DazzleDuck SQL
Frontend: React 18 • Vite • Tailwind CSS • Arrow JS Client


🧪 Frontend Testing with Vitest

The Arrow JS frontend uses Vitest for unit and integration testing.

Run All Tests

npm run test

or

npm test

Run a Specific Test File

npm test Logging.test.jsx

Replace Logging.test.jsx with your specific test file name.


🚀 Publishing to NPM (Arrow UI Library)

The Arrow UI components (e.g., DisplayCharts, EntityTable, Navbar, etc.) are reusable and published as a standalone NPM package:
dazzleduck-arrow-ui


🧭 First-Time Setup (Only Once)

1️⃣ Create an npm account
👉 https://www.npmjs.com/signup

2️⃣ Login from your terminal

npm login

3️⃣ Check your account

npm whoami

4️⃣ Remove private flag Make sure your package.json has:

"private": false

5️⃣ Ensure proper fields in package.json

{
  "name": "dazzleduck-arrow-ui", 
  "version": "1.0.0",
  "description": "Reusable UI components for Arrow frontend",
  "main": "dist/arrow-ui.cjs.js",
  "module": "dist/arrow-ui.es.js",
  "types": "dist/index.d.ts",
  "files": ["dist"],
  "peerDependencies": {
    "react": "^18.0.0",
    "react-dom": "^18.0.0"
  }
}

6️⃣ Build the library

npm run build

7️⃣ Publish for the first time

npm publish --access public

You should see:

+ [email protected]

✅ Your package is now live on npm.


🔁 Updating After Changes

When you modify components (e.g., DisplayCharts):

1️⃣ Make your changes

2️⃣ Rebuild

npm run build

3️⃣ Bump the version

npm version patch

Example: 1.0.0 → 1.0.1

4️⃣ Publish again

npm publish --access public

5️⃣ Update in other projects

npm install dazzleduck-arrow-ui@latest --legacy-peer-deps

✅ Your updated version is now available to everyone.


⚙️ Quick One-Step Command

Add this script to your package.json:

"scripts": {
  "release": "npm version patch && npm run build && npm publish --access public"
}

Then publish new updates easily:

npm run release

🧑‍🤝‍🧑 Collaborator Access (Team Publishing)

By default, only the package owner can publish new versions.
To let teammates also publish new updates:

➕ Add a collaborator

npm access grant read-write <username> package:dazzleduck-arrow-ui

Example:

npm access grant read-write alice package:dazzleduck-arrow-ui

👀 List collaborators

npm access ls-collaborators dazzleduck-arrow-ui

❌ Remove collaborator

npm access revoke <username> package:dazzleduck-arrow-ui

Now that user can log in with their npm account and publish new versions using:

npm version patch
npm publish --access public

🧠 Tip: Each collaborator’s npm account must be logged in via npm login before publishing.


🧩 Local Development (Without Publishing)

You can test your package locally without publishing it each time.

In your library project:

npm link

In your main project:

npm link dazzleduck-arrow-ui

Rebuild to reflect changes:

npm run build

When done:

npm unlink dazzleduck-arrow-ui
npm install dazzleduck-arrow-ui@latest

Summary Commands

| Action | Command | |--------|----------| | Login | npm login | | Build | npm run build | | First publish | npm publish --access public | | Update version | npm version patch | | Republish | npm publish --access public | | Add collaborator | npm access grant read-write <username> package:dazzleduck-arrow-ui | | List collaborators | npm access ls-collaborators dazzleduck-arrow-ui | | Local link | npm link / npm link dazzleduck-arrow-ui |