Wistant Logo
Command Palette

Search for a command to run...

0
Blog

Square UI: Deep-Diving Into LN Dev's Dual-Headless Next.js App Templates

An extensive architectural analysis of Square UI, a premium open-source suite of Next.js workspaces built in parallel with Radix UI and MUI's Base UI.

Square UI: Deep-Diving Into LN Dev's Dual-Headless Next.js App Templates

One of the greatest challenges in modern frontend engineering is bridging the gap between isolated UI primitives and fully integrated workspaces. While component libraries like shadcn/ui give us individual buttons, inputs, and dialogs, assembling them into complex, responsive, state-managed applications still takes a massive amount of time.

To solve this, Cameroonian designer and software architect Leonel Ngoya (LN Dev) created Square UI—a curated, open-source collection of Next.js app templates.

What makes Square UI truly unique is its dual-framework architecture: every core template is built in parallel using both Radix UI (the standard backend for shadcn/ui) and MUI's Base UI (an unstyled React primitive library). This makes it an invaluable reference for comparing headless APIs, event handling, and styling paradigms.

Let's dive deep into the architecture, state management patterns, and catalog of this outstanding toolkit.


🛠️ The Core Architectural Stack

Every template in this ecosystem is engineered using modern web development best practices:

  • Next.js & TypeScript: Statically optimized layouts using Next.js App Router conventions and type-safe component APIs.
  • Tailwind CSS: Pixel-perfect responsive styling that supports system-wide dark/light modes.
  • Modular Zustand Stores: Rather than using a giant global state, each template contains its own self-contained Zustand store (e.g., bookmarks-store.ts, calendar-store.ts, emails-store.ts). This ensures you can copy-paste a single folder into your project and it will work immediately.
  • Recharts: Responsive SVG charts used for complex analytics, including multi-line leads charts and budget allocation dials.
  • TanStack Table (React Table): Handles heavy administrative data grids with client-side sorting, pagination, filtering, and selection.

📂 Deep Dive: The Template Catalog

Let's walk through the core application templates in the library, analyze their folder structures, and check out their live demos.


1. Circle (Issue & Sprint Tracker)

Inspired by Linear's high-speed workflow, Circle is a premium project management template designed to orchestrate software cycles, issues, and team collaborations.

Radix UI Layout

Circle Radix UI Layout

Base UI Layout

Circle Base UI Layout

Architectural Breakdown

  • Layout: Collapsible left sidebar for workspace navigation, key issue filters, and a main board utilizing a horizontal column grid.
  • Tech Highlights: Custom keyboard shortcut listeners, dynamic search dialogs, and drag-and-drop column boards.

2. Habit Tracker

A gamified lifestyle application designed for completion tracking, goal streak monitoring, and metrics visualization.

Habit Tracker Dashboard

Architectural Breakdown

  • Layout: Two-tab panel layout separating the daily checklist from a comprehensive statistics dashboard.
  • Tech Highlights: Includes a Git-style contribution heatmap (using date-fns and custom CSS grids) to visualize completion history over the past year. Driven by a dedicated habit-store.ts.

3. File Manager & Media Vault

A secure layout for organizing, uploading, and viewing digital files and media assets.

File Explorer
Media Vault Gallery

Architectural Breakdown

  • Layout: A left sidebar with disk space indicator progress bars, a main folder/file grid, and a right slide-out drawer (sheet.tsx) for file metadata details.
  • Tech Highlights: HTML5 drag-and-drop APIs, custom layout cards, and progress bars driven by files-store.ts.

4. Rentals & Map Explorer

A platform for rental property listings combined with a geospatial location-tracking dashboard.

Rentals Grid
Maps Dashboard Layout

Architectural Breakdown

  • Layout: A split-screen layout. The left side handles search queries and lists properties, while the right side displays an interactive Mapbox-driven canvas with pinned coordinate markers.
  • Tech Highlights: Integrated price-range sliders (slider.tsx), zoom controls, and sidebar location bookmarkers.

5. Email Client

A full-fledged client interface for reading, writing, and organizing messages.

Emails Client Layout

Architectural Breakdown

  • Layout: A classic three-pane design. A thin navigation rail on the left, an email snippet listing panel with search in the middle, and a full reading view with quick reply headers on the right.
  • Tech Highlights: Managed by emails-store.ts, featuring dynamic unread status badges and responsive bottom sheets (drawer.tsx) for mobile screens.

6. AI Chat Client

A polished interface mimicking conversational ChatGPT-like layouts.

AI Chat Interface

Architectural Breakdown

  • Layout: A left sidebar for conversation history, and a centered conversation container with a floating prompt textarea at the bottom.
  • Tech Highlights: Auto-scrolling containers, markdown rendering, syntax code block highlighting, and quick prompt helper grids.

7. Marketing & CRM Dashboards (Tiers 1 to 5)

An extensive collection of administrative interfaces designed for tracking campaigns, view statistics, and team operations.

Marketing Dashboard Analytics

CRM Sales (Dashboard 2)

CRM Dashboard 2

HR Analytics (Dashboard 3)

HR Dashboard 3

Creator Performance (Dashboard 4)

Campaign Dashboard 4

Task & Project Health (Dashboard 5)

Task Dashboard 5

Executive (Dashboard 1)

Standard Dashboard 1
  • Key Tech & Features: Recharts AreaCharts and BarCharts with visual gradients, stats cards with trend indicators, and data grids powered by TanStack Table.

8. Productivity & Schedulers (Bookmarks, Calendar & Tasks)

Core productivity grids for tracking events, bookmarks, and lists.

Bookmarks Manager Layout

Calendar & Event Scheduler

Calendar Grid Layout

Advanced Tasks Kanban

Tasks Kanban Board
  • Key Tech & Features: Bookmarking folder systems, calendar grids supporting week-view events, and contact lists with advanced search operations.

9. Specialized Niches (Atelier, Cellar, Cookbook, Skyport, Vault, Finance)

Targeted dashboards custom-built for specific industries like digital asset designing, inventory logs, cooking records, secure credentials vaults, and financial flowsheets.

Atelier Asset Dashboard
Cellar Log
Cookbook Grid
Skyport Server Node monitor
Secure Vault
Finance Tracker spreadsheet
  • Atelier: An asset management workspace designed for creatives.
  • Cellar: A structured inventory layout for wine cellars or product collections.
  • Cookbook: A cooking recipe catalog with categorization cards.
  • Skyport: A monitoring dashboard showing real-time server statuses and metrics.
  • Vault: A secure layout built for credential management and data protection.
  • Finance Tracker: A spreadsheet-like layout for expenses, investments, and payouts.

💎 The Value of Open Source Engineering

Square UI shows what is possible when a designer's eye meets a software engineer's discipline. Leonel Ngoya has built a suite that doesn't just save time—it establishes a baseline of quality for open-source Next.js templates.

To explore all the templates live, head over to square.lndevui.com. If you want to support Leonel's work, check out Square UI Pro or star the project on GitHub!

Command Palette

Search for a command to run...