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

@tileryjs/react

v0.1.0

Published

React adapter for Tilery, a tiling panel layout engine for building IDE-like interfaces, dashboard builders, multi-document editors, and other multi-panel applications.

Readme

@tileryjs/react

React adapter for Tilery, a tiling panel layout engine for building IDE-like interfaces, dashboard builders, multi-document editors, and other multi-panel applications.

Documentation and demo | GitHub

Features

  • Drag tabs between panels or into new splits
  • Resize panels with pointer and keyboard-accessible dividers
  • Preserve React state across tab moves with portal-based rendering
  • Customize tab headers, tab triggers, panel content, and panel actions
  • Persist and restore serializable layout snapshots
  • Support locked panels, tab behavior controls, floating panels, and popout windows
  • TypeScript-first API with core Tilery types re-exported from the adapter

Installation

npm install @tileryjs/react

Import the stylesheet once in your app:

import '@tileryjs/react/style.css';

Quick Start

import { Tilery } from '@tileryjs/react';
import '@tileryjs/react/style.css';
import type { TileryInitialLayout } from '@tileryjs/react';

type MyTab = { title: string };

const layout: TileryInitialLayout<MyTab> = {
  type: 'group',
  direction: 'horizontal',
  children: [
    {
      type: 'panel',
      id: 'sidebar',
      size: 30,
      tabs: [{ id: 'explorer', data: { title: 'Explorer' } }],
    },
    {
      type: 'panel',
      id: 'editor',
      size: 70,
      tabs: [
        { id: 'file-a', data: { title: 'index.ts' } },
        { id: 'file-b', data: { title: 'app.tsx' } },
      ],
    },
  ],
};

export function App() {
  return (
    <div style={{ width: '100%', height: '100vh' }}>
      <Tilery
        initialLayout={layout}
        renderTabHeader={(tab) => <span>{tab.data.title}</span>}
        renderTabContent={(tab) => <div>{tab.data.title} content</div>}
      />
    </div>
  );
}

Core Concepts

Tilery layouts are authored as group trees:

  • A group lays out child panels or groups horizontally or vertically.
  • A panel owns tabs and one active tab.
  • A tab contains your application data and is rendered through your tab header and content functions.

The layout can be converted into a serializable snapshot with the controller and restored later:

import { useRef } from 'react';
import { Tilery, type TileryController } from '@tileryjs/react';

const controllerRef = useRef<TileryController | null>(null);

<Tilery
  ref={controllerRef}
  initialLayout={layout}
  onChange={() => {
    const snapshot = controllerRef.current?.getLayout<MyTab>();
    if (snapshot) {
      localStorage.setItem('tilery-layout', JSON.stringify(snapshot));
    }
  }}
  renderTabHeader={(tab) => <span>{tab.data.title}</span>}
  renderTabContent={(tab) => <div>{tab.data.title} content</div>}
/>;

Common Props

| Prop | Description | | -------------------- | ----------------------------------------------- | | initialLayout | Initial panel tree and tabs | | renderTabHeader | Renders each tab button label | | renderTabContent | Renders each active tab's content | | renderTabTrigger | Replaces the tab trigger for links/router tabs | | onChange | Runs after each state change | | onResize | Runs during pointer or keyboard resize | | onResizeEnd | Runs when a resize interaction commits | | onTabsMove | Runs when tabs move between panels or positions | | showActionsButton | Shows the built-in panel action menu | | showNewTabButton | Shows the optional new-tab button | | renderPanelActions | Adds custom content to the panel action menu | | ref | Exposes the imperative TileryController API |

Styling

The stylesheet defines the panel chrome, tab bar, resize handles, drag overlay, menus, and focus states. Customize the visual system with CSS variables:

.workspace {
  --tilery-bg: #0e0f12;
  --tilery-panel-bg: #1a1c20;
  --tilery-panel-border: #2a2d33;
  --tilery-accent: #3884ff;
  --tilery-tabbar-height: 32px;
}

Related Packages

  • tilery: framework-agnostic core types and CSS
  • @tileryjs/react: React component, hooks, events, and controller API

Links

  • Documentation and demo: https://tilery.vercel.app
  • Repository: https://github.com/yangshun/tilery
  • Core package: https://www.npmjs.com/package/tilery