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

@rationalbloks/frontblok-components

v0.1.1

Published

Reusable React components for RationalBloks frontends - Auth views, Error handling, Modals

Readme

@rationalbloks/frontblok-components

Reusable React components for RationalBloks frontends.

Philosophy

THE ONE WAY: Props-based API

  • All customization via props (no hidden context)
  • Each component is self-contained
  • TypeScript types for everything
  • Works with frontblok-auth

Installation

npm install @rationalbloks/frontblok-components

Peer Dependencies

{
  "@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0",
  "@mui/icons-material": "^5.0.0 || ^6.0.0 || ^7.0.0",
  "@emotion/react": "^11.0.0",
  "@emotion/styled": "^11.0.0",
  "@react-oauth/google": "^0.12.0",
  "@rationalbloks/frontblok-auth": "^0.3.0",
  "react": "^18.0.0 || ^19.0.0",
  "react-router-dom": "^6.0.0 || ^7.0.0"
}

Components

Views

| Component | Props | Description | |-----------|-------|-------------| | AuthView | branding, authApi, useAuth, generateOAuthNonce | Login/register with Google OAuth | | ForgotPasswordView | authApi, authRoute? | Request password reset | | ResetPasswordView | authApi, authRoute? | Set new password | | VerifyEmailView | authApi, successRoute?, errorRoute? | Email verification | | SupportView | (none) | Support request form |

Shared

| Component | Props | Description | |-----------|-------|-------------| | ErrorBoundary | children, supportEmail? | React error boundary | | ErrorFallback | error, errorInfo, resetError, supportEmail | Error display component | | ConfirmationModal | open, onClose, onConfirm, title, message, ... | Confirmation dialog | | createNavbar(config) | Factory function | Creates configured navbar component |

Usage

import { 
  AuthView, 
  ForgotPasswordView,
  ResetPasswordView,
  VerifyEmailView,
  SupportView,
  ErrorBoundary,
  ConfirmationModal 
} from '@rationalbloks/frontblok-components';
import { authApi, useClientAuth, generateOAuthNonce } from './services/datablokApi';
import { BRANDING } from './config/branding';

function App() {
  return (
    <ErrorBoundary supportEmail="[email protected]">
      <Routes>
        <Route path="/auth" element={
          <AuthView 
            branding={BRANDING}
            authApi={authApi}
            useAuth={useClientAuth}
            generateOAuthNonce={generateOAuthNonce}
          />
        } />
        <Route path="/forgot-password" element={
          <ForgotPasswordView authApi={authApi} />
        } />
        <Route path="/reset-password" element={
          <ResetPasswordView authApi={authApi} />
        } />
        <Route path="/verify-email" element={
          <VerifyEmailView 
            authApi={authApi} 
            successRoute="/dashboard"
            errorRoute="/settings"
          />
        } />
        <Route path="/support" element={
          <SupportView />
        } />
      </Routes>
    </ErrorBoundary>
  );
}

Branding Configuration

Create a config/branding.ts in your app:

export const BRANDING = {
  appName: 'My App',
  tagline: 'Welcome',
  logoLetter: 'M',
  primaryGradient: 'linear-gradient(135deg, #1e40af 0%, #2563eb 100%)',
  primaryGradientHover: 'linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%)',
  logoShadow: '0 4px 20px rgba(30, 64, 175, 0.3)',
  dashboardRoute: '/dashboard',
  messages: {
    loginSuccess: 'Login successful!',
    registerSuccess: 'Account created!',
    googleNewUser: 'Welcome! Account created.',
  },
  securityBadge: 'Secure Access',
};

License

MIT