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

easy-react-java-ui

v0.1.1

Published

EasyReactJavaUI - Java-style fluent React + TypeScript UI builder library.

Readme

EasyReactJavaUI

EasyReactJavaUI is a React + TypeScript UI builder library that lets developers create screens with a Java-style, class-based fluent API instead of writing JSX for every layout.

Created by Pradeep Kumar Sheoran (Developer) at BSG Technologies.
Contact: +91-8595147850

Installation

npm install easy-react-java-ui

React and ReactDOM are peer dependencies, so install them in your app if they are not already present.

npm install react react-dom

Basic Usage

import {
  EasyReactJavaUIRenderer,
  Page,
  Card,
  Grid,
  Input,
  Select,
  DatePicker,
  Button,
  Table,
} from "easy-react-java-ui";

const userScreen = new Page("User Management")
  .add(
    new Card("Search Users").add(
      new Grid(3)
        .add(new Input("name").label("Name").placeholder("Enter name").required())
        .add(new Select("status").label("Status").source("userStatus"))
        .add(new DatePicker("createdAt").label("Created At"))
        .add(new Button("Search").variant("primary").onClick("fetchUsers")),
    ),
  )
  .add(
    new Table("users")
      .pagination(true)
      .filterable(true)
      .column("name", "Name")
      .column("email", "Email")
      .column("status", "Status")
      .action("Edit", "editUser", { permission: "USER_EDIT" })
      .action("Delete", "deleteUser", { permission: "USER_DELETE" }),
  );

export function App() {
  return (
    <EasyReactJavaUIRenderer
      screen={userScreen}
      dataSources={dataSources}
      actions={actions}
      permissions={["USER_EDIT"]}
      values={{}}
      onChange={(values) => console.log(values)}
      onError={(error) => console.error(error)}
    />
  );
}

Why EasyReactJavaUI?

  • Build React screens using class-based fluent APIs.
  • Keep admin, CRUD, report, dashboard, and form screens consistent.
  • Bind data sources and actions by safe string keys.
  • Avoid XML, unsafe eval, and paid visual-builder dependencies.
  • Keep screen definitions portable and easy to review.

Core Builders

EasyReactJavaUI includes:

Page, Card, Grid, Row, Col, Input, Textarea, Select, Checkbox, Radio,
DatePicker, Button, Modal, Tabs, Tab, Table, Column, Action, Badge,
Alert, Divider, Text, Heading, CustomElement

Data Sources

const dataSources = {
  users: () => userService.getUsers(),
  userStatus: () => userService.getUserStatuses(),
};

Use them in builders:

new Select("status").label("Status").source("userStatus");
new Table("users").source("users").pagination(true);

Actions

const actions = {
  fetchUsers: async ({ reload }) => {
    await reload("users");
  },
  editUser: ({ row }) => {
    console.log("Edit", row);
  },
};

Use them in builders:

new Button("Search").onClick("fetchUsers");
new Table("users").action("Edit", "editUser");

Permissions

new Button("Create User").permission("USER_CREATE");
new Table("users").action("Delete", "deleteUser", { permission: "USER_DELETE" });

If a permission is missing from the renderer permissions array, that element or action is hidden.

Validation

new Input("email").label("Email").type("email").required();
new Input("age").label("Age").type("number").min(18).max(60);
new Input("phone").label("Phone").pattern("^[0-9]{10}$");

Custom Components

import { registerEasyReactJavaUIComponent, CustomElement } from "easy-react-java-ui";

registerEasyReactJavaUIComponent("StatusBadge", ({ element }) => {
  return <strong>{String(element.props.value ?? "")}</strong>;
});

new CustomElement("StatusBadge").prop("field", "status");

Package Info

import { EasyReactJavaUIInfo } from "easy-react-java-ui";

console.log(EasyReactJavaUIInfo);

Build

npm run build

License

MIT