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

@ubiquitypress/react-invenio-bulk-importer

v0.1.1

Published

React components for Invenio Bulk Importer

Readme

Invenio Bulk Importer

A modern React component library for Invenio bulk import functionality, built with TypeScript, PandaCSS, and Semantic UI React.

Overview

This library provides a comprehensive set of React components for managing bulk imports in Invenio applications. It includes features for task management, file uploads, metadata processing, search functionality, and progress tracking with a modern, responsive interface.

Features

  • 📦 Bulk Import Management: Create, manage, and execute bulk import tasks
  • 📁 File Upload: Advanced file uploader with drag-and-drop support
  • 🔍 Search & Filter: Powerful search with faceted filtering
  • 📊 Progress Tracking: Progress monitoring with visual feedback
  • 📋 Task Details: Comprehensive task management with detailed views
  • Accessibility: Semantic HTML with proper ARIA support

Installation

# Using yarn (recommended)
yarn add react-invenio-bulk-importer

# Using npm
npm install react-invenio-bulk-importer

Peer Dependencies

Make sure you have the following peer dependencies installed:

yarn add react react-dom semantic-ui-react semantic-ui-css react-invenio-forms

Quick Start

Search Interface

import React from "react";
import ReactDOM from "react-dom";
import { BulkImporter } from "react-invenio-bulk-importer";
import "react-invenio-bulk-importer/style.css";

const BulkImporterSearchApp = () => {
  return <BulkImporter.Search />;
};

const initializeBulkImporter = () => {
  const domContainer = document.getElementById("invenio-search-config");
  
  if (!domContainer) {
    console.error("Could not find element with id 'invenio-search-config'");
    return;
  }

  ReactDOM.render(<BulkImporterSearchApp />, domContainer);
};

initializeBulkImporter();

Task Details Interface

import React from "react";
import ReactDOM from "react-dom";
import { BulkImporter } from "react-invenio-bulk-importer";
import "react-invenio-bulk-importer/style.css";

const BulkImporterDetailsApp = ({ taskId }) => {
  return <BulkImporter.TaskDetails taskId={taskId} />;
};

const initializeBulkImporterDetails = () => {
  const domContainer = document.getElementById("invenio-details-config");
  
  if (!domContainer) {
    console.error("Could not find element with id 'invenio-details-config'");
    return;
  }

  // Extract data from DOM attributes
  const taskId = JSON.parse(domContainer.dataset.pid);

  ReactDOM.render(<BulkImporterDetailsApp taskId={taskId} />, domContainer);
};

initializeBulkImporterDetails();

HTML Integration

This library is designed to integrate with Invenio's template system.

The data-pid attribute should contain a task ID that will be parsed by the component.

Components

Core Components

The library exposes components through the BulkImporter namespace:

<BulkImporter.Search />

Complete search interface with task listing, filtering, and management capabilities.

import { BulkImporter } from 'react-invenio-bulk-importer';

<BulkImporter.Search />

<BulkImporter.TaskDetails />

Detailed view component for individual import tasks with records, status, and management.

import { BulkImporter } from 'react-invenio-bulk-importer';

<BulkImporter.TaskDetails taskId="task-123" />

Styling

This library uses PandaCSS for styling, which provides:

  • Type-safe styling: Compile-time CSS validation
  • Logical properties: Better internationalization support
  • Responsive design: Mobile-first responsive utilities
  • Design tokens: Consistent spacing, colors, and typography

Development

Prerequisites

  • Node.js 18+
  • Yarn 4.x (recommended)

Setup

# Clone the repository
git clone <repository-url>
cd invenio-bulk-importer-react

# Install dependencies
yarn install

# Generate PandaCSS styles
yarn prepare

# Start development server
yarn dev

Available Scripts

  • yarn dev - Start development server
  • yarn build - Build for production
  • yarn type-check - Run TypeScript type checking
  • yarn check - Run linting, type checking, and dependency sync
  • yarn preview - Preview production build

Project Structure

src/
├── components/           # React components
│   ├── core/            # Main feature components
│   │   ├── bulk-importer/
│   │   ├── file-uploader/
│   │   ├── search/
│   │   └── task-details/
│   └── ui/              # Reusable UI components
├── hooks/               # Custom React hooks
├── services/            # API services
├── types/               # TypeScript type definitions
├── utils/               # Utility functions
└── theme/               # Global styles

Code Style

This project uses:

  • Biome for linting and formatting
  • TypeScript for type safety
  • PandaCSS for styling
  • Semantic UI React for base components