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

@codella-software/react

v2.3.1

Published

React hooks for Codella core services (FormBuilder, TableBuilder, FiltersAndSort, RichContent)

Downloads

3,151

Readme

@codella-software/react

React hooks for Codella core services - FormBuilder, TableBuilder, FiltersAndSort, TabsService, APIService, and LiveUpdatesService.

Features

  • useFormBuilder - Manage form state, validation, and submission
  • useTableService - Manage dynamic table data, filtering, and sorting
  • useFiltersAndSort - Handle complex filtering and sorting logic
  • useTabsService - Manage tab state and navigation (use CLI templates for responsive components)
  • useAPIService - RESTful API client with authentication, interceptors, and middleware hooks
  • useLiveUpdates - Real-time data updates via WebSocket or Server-Sent Events

Installation

npm install @codella-software/utils @codella-software/react

Quick Start

useFormBuilder

import { useFormBuilder } from '@codella-software/react';

function MyForm() {
  const { values, errors, submit } = useFormBuilder({
    fields: [
      { name: 'email', type: 'text', validators: ['required', 'email'] },
      { name: 'password', type: 'password', validators: ['required'] }
    ],
    onSubmit: (data) => console.log(data)
  });

  return (
    <form onSubmit={submit}>
      {/* Form fields */}
    </form>
  );
}

useTableService

import { useTableService } from '@codella-software/react';

function MyTable() {
  const { 
    data, 
    filteredData, 
    sort, 
    filter 
  } = useTableService({
    data: users,
    columns: userColumns
  });

  return (
    <table>
      {/* Table content */}
    </table>
  );
}

useAPIService

import { useAPIService } from '@codella-software/react';
import { useEffect, useState } from 'react';

function UsersList() {
  const [users, setUsers] = useState([]);
  const [loading, setLoading] = useState(false);

  const api = useAPIService({
    baseURL: 'https://api.example.com',
    hooks: {
      onBeforeRequest: () => setLoading(true),
      onAfterResponse: () => setLoading(false),
      onError: (ctx) => console.error('Error:', ctx.error)
    }
  });

  // Add request interceptor to include custom headers
  useEffect(() => {
    api.interceptors.request.use((config) => ({
      ...config,
      headers: { ...config.headers, 'X-App-Version': '2.0' }
    }));

    // Add response interceptor to transform data
    api.interceptors.response.use((response) => ({
      ...response,
      data: Array.isArray(response.data) ? response.data : [response.data]
    }));
  }, [api]);

  useEffect(() => {
    api.get('/users').then(setUsers);
  }, [api]);

  return (
    <div>
      {loading && <p>Loading...</p>}
      <ul>
        {users.map(user => <li key={user.id}>{user.name}</li>)}
      </ul>
    </div>
  );
}

See API Service Documentation for interceptors, middleware hooks, and authentication patterns.

Documentation

For full API documentation, visit https://CodellaSoftware.github.io/codella-utils/

License

MIT