square-ui Documentation

Collection of beautifully crafted open-source layouts UI built with shadcn/ui.

RAW Doc

Technical Documentation: ln-dev7/square-ui

ℹ️ Provenance: Multi-Tier Ingestion · CodeWiki Reference

Overview (`README.md`)

Square UI

Square UI is a collection of free, open-source admin dashboard templates for shadcn/ui. The layouts are built with Next.js and Tailwind CSS, and each one is a complete starting point you can clone, copy, and ship — dashboards, email, chat, calendars, file managers, and more.

Browse the live catalog at square.lndevui.com.

Want the Pro collection? Shadcn Dashboard has 20+ more premium shadcn admin templates — commercial license, full pages, and lifetime updates.

Free Templates

Note: Templates using Radix UI are located in templates/, while templates using Base UI are in templates-baseui/.

Template Description Live Demo GitHub (Radix UI) GitHub (Base UI) Design
Habit Tracker Beautiful habit tracking app with streaks, contribution heatmap, statistics, and daily completion tracking. View Demo Source Source LN
Marketing Dashboard Creator marketing dashboard with campaigns, analytics, views chart, and recent uploads management. View Demo Source Source Augustas
Dashboard 5 Modern dashboard with stats, today's tasks, performance chart, and projects table. View Demo Source Source LN
Rentals Modern rental property platform with interactive map, property listings, filters, and search. View Demo Source Source LN
Bookmarks Modern bookmarks manager with collections, tags, favorites, archive, and trash. View Demo Source Source LN
Maps Modern maps dashboard with location search, favorites, recents, and interactive map controls. View Demo Source Source LN
Files Modern file manager with folders, storage overview, file grid/list view, and navigation. View Demo Source Source LN
Dashboard 4 Modern dashboard with workgroups, multi-line leads chart, top performers, and lead management table. View Demo Source Source Augustas
Leads Modern leads management dashboard with statistics, charts, and data table with filters. View Demo Source Source Rico
Dashboard 3 Modern HR dashboard with financial flow chart, employee list with filters, and layout customization. View Demo Source Source Rico
Dashboard 2 Modern CRM dashboard with revenue charts, lead sources, deals table with pagination, and filters. View Demo Source Source Rico
Employees Modern employee management dashboard with statistics, hire/exit charts, and data table. View Demo Source Source Rico
Payrolls Modern payroll management dashboard with expense charts, filters, and data table. View Demo Source Source Rico
Tasks Modern task management dashboard with statistics, charts, and kanban board. View Demo Source Source Rico
Projects Timeline Timeline interface for managing projects. View Demo Source Source Rico
Calendar Modern calendar interface with week view, event management, and scheduling. View Demo Source Source Rico
Dashboard Modern dashboard interface with statistics, charts, people table, and recent documents. View Demo Source Source Augustas
Chat Modern AI chat interface with conversation history and intelligent assistant. View Demo Source Source Rico
Emails Modern email client interface with inbox, folders, and email details. View Demo Source Source Rico
Task Management Simple board interface for managing tasks. View Demo Source Source Rico

Pro Templates

These are the Shadcn Dashboard Pro templates — commercial license, Radix + Base UI variants, full pages, and lifetime updates.

Template Description Live Demo Get Pro
Shadcn Admin A premium multi-app admin dashboard with 5 complete applications and 145+ pages. View Demo Get Pro
Circle A Linear-grade project hub for ambitious teams. View Demo Get Pro
Nexus A Notion-inspired connected workspace with editable pages, teamspaces and AI. View Demo Get Pro
Sojourn An Airbnb-inspired travel marketplace with interactive maps, stays, experiences and services. View Demo Get Pro
Axiom A Claude-inspired AI chat workspace with projects, skills and connectors. View Demo Get Pro
Tribune A refined social-conversation client inspired by Threads. View Demo Get Pro
Mainline A polished GitHub-inspired source-hosting and collaboration dashboard. View Demo Get Pro
Skyport A live air-traffic and flight operations dashboard. View Demo Get Pro
Vault A polished file storage and team collaboration hub. View Demo Get Pro
Régate A yacht regatta and sailing operations console. View Demo Get Pro
Atelier A producer-grade music studio dashboard with sound built in. View Demo Get Pro
Cookbook A recipe dashboard that earns its place in the kitchen. View Demo Get Pro
Inventory A product and orders dashboard built to ship. View Demo Get Pro
Cellar A connoisseur's wine cellar, organized at last. View Demo Get Pro
Contacts A modern contact book that actually keeps up. View Demo Get Pro
Vellum A refined library for rare books and antiquarian collections. View Demo Get Pro
Maestro A chamber-orchestra operations console. View Demo Get Pro
Media Vault A gallery-first media library for visual teams. View Demo Get Pro
Finance Tracker A personal finance dashboard you actually want to open. View Demo Get Pro
Notes App A focused, fast note-taking app, polished end-to-end. View Demo Get Pro

Browse all Pro templates on Shadcn Dashboard →

🛠️ Technologies

Star History

Powered by Shadcnblocks.com

Also see Shadcnblocks for 2000+ shadcn/ui blocks and components.


Overview (`home/scripts/README.md`)

Scripts de Migration du Registry

Ce dossier contient les scripts utilitaires pour gérer et maintenir les fichiers JSON du registry.

📋 Scripts disponibles

`add-content-to-registry.js`

Script principal qui ajoute automatiquement le champ content aux fichiers JSON du registry. Ce champ contient le contenu complet des fichiers référencés par les URLs GitHub.

🚀 Utilisation

Commande de base

bash
cd home
node scripts-migration/add-content-to-registry.js

Options disponibles

Option Raccourci Description
--help -h Affiche l'aide intégrée
--verbose -v Mode verbeux (affiche tous les détails)
--dry-run -d Mode simulation (ne modifie rien)
--force -f Force la mise à jour même si content existe déjà

Exemples d'utilisation

1. Exécution normale

Ajoute le champ content aux nouveaux fichiers JSON qui n'en ont pas encore.

bash
node scripts-migration/add-content-to-registry.js

2. Mode simulation (dry-run)

Voir ce qui sera fait sans modifier les fichiers.

bash
node scripts-migration/add-content-to-registry.js --dry-run

3. Mode verbeux

Afficher tous les détails de traitement, y compris les fichiers déjà à jour.

bash
node scripts-migration/add-content-to-registry.js --verbose

4. Forcer la mise à jour

Mettre à jour tous les fichiers, même ceux qui ont déjà un content.

bash
node scripts-migration/add-content-to-registry.js --force

5. Combinaison d'options

Combiner plusieurs options pour un contrôle total.

bash
# Simulation avec détails
node scripts-migration/add-content-to-registry.js --dry-run --verbose

# Mise à jour forcée avec détails
node scripts-migration/add-content-to-registry.js --force --verbose

📖 Comment ça fonctionne

Processus

  1. Détection automatique : Le script parcourt automatiquement tous les fichiers .json dans home/public/registry/

  2. Validation : Chaque fichier JSON est validé avant traitement

  3. Traitement : Pour chaque fichier JSON :

    • Parcourt le tableau files
    • Extrait les path qui pointent vers GitHub (https://raw.githubusercontent.com/ln-dev7/square-ui/master/templates/...)
    • Convertit l'URL GitHub en chemin local (templates/...)
    • Lit le contenu du fichier local
    • Ajoute le champ content avec le contenu complet
  4. Sauvegarde : Les fichiers JSON sont mis à jour avec le nouveau champ content

Format du champ `content`

Le champ content est ajouté juste après le champ path dans chaque entrée du tableau files :

json
{
  "files": [
    {
      "path": "https://raw.githubusercontent.com/ln-dev7/square-ui/master/templates/chat/components/chat/chat-input-box.tsx",
      "type": "registry:component",
      "target": "components/chat-input-box.tsx",
      "content": "import { ... } from \"lucide-react\";\n..."
    }
  ]
}

📊 Statistiques

Le script affiche un résumé détaillé après l'exécution :

text
📊 RÉSUMÉ
============================================================

📁 Fichiers JSON:
   Total:        22
   Traités:      22
   Mis à jour:   0
   Déjà à jour:  22
   Ignorés:      0
   Erreurs:      0

📄 Fichiers de contenu:
   Total:              89
   Ajoutés:            0
   Déjà présents:      89
   Introuvables:       0
   Erreurs:            0

⚠️ Gestion des erreurs

Le script gère plusieurs types d'erreurs :

  • JSON invalide : Fichier JSON mal formé
  • Fichier introuvable : Le fichier référencé n'existe pas localement
  • Erreur de lecture : Impossible de lire le fichier
  • Erreur d'écriture : Impossible de sauvegarder le JSON

Toutes les erreurs sont affichées dans le résumé avec les détails nécessaires pour le débogage.

🔄 Workflow recommandé

Ajouter un nouveau composant au registry

  1. Créer le fichier JSON dans home/public/registry/
  2. Ajouter les path avec les URLs GitHub
  3. Exécuter le script :
bash
node scripts-migration/add-content-to-registry.js

Le script détectera automatiquement le nouveau fichier et ajoutera le content pour tous les fichiers référencés.

Vérifier avant de commiter

Avant de commiter vos changements, utilisez le mode dry-run pour vérifier :

bash
node scripts-migration/add-content-to-registry.js --dry-run --verbose

📁 Structure des fichiers

text
home/
├── scripts-migration/
│   ├── add-content-to-registry.js  # Script principal
│   ├── copy-registry-files.js      # Script de copie (ancien)
│   ├── verify-registry.js          # Script de vérification (ancien)
│   └── README.md                   # Cette documentation
├── public/
│   └── registry/                   # Fichiers JSON du registry
│       ├── chat.json
│       ├── chat-input-box.json
│       └── ...
└── templates/                      # Templates source
    ├── chat/
    ├── emails/
    └── task-management/

🛠️ Prérequis

  • Node.js (version 12 ou supérieure)
  • Accès au répertoire templates/ avec les fichiers sources

💡 Conseils

  • Utilisez --dry-run avant de faire des modifications importantes
  • Utilisez --verbose pour déboguer les problèmes
  • Utilisez --force avec précaution, seulement si vous voulez vraiment tout mettre à jour
  • Le script est idempotent : vous pouvez l'exécuter plusieurs fois sans problème

🐛 Dépannage

Le script ne trouve pas les fichiers

Vérifiez que :

  • Les fichiers existent dans templates/
  • Les URLs GitHub dans les JSON sont correctes
  • Le format de l'URL correspond à : https://raw.githubusercontent.com/ln-dev7/square-ui/master/templates/...

Le script ne met pas à jour certains fichiers

  • Vérifiez que les fichiers ont bien un tableau files
  • Vérifiez que les path commencent par l'URL GitHub correcte
  • Utilisez --verbose pour voir les détails
  • Utilisez --force si le content existe déjà et que vous voulez le mettre à jour

📝 Notes

  • Le script préserve le formatage JSON existant (indentation de 2 espaces)
  • Les fichiers sont triés alphabétiquement pour un traitement cohérent
  • Le script ignore automatiquement les fichiers qui n'ont pas de tableau files
  • Les chemins non-GitHub sont ignorés silencieusement (sauf en mode verbose)

🔗 Liens utiles


Overview (`templates-baseui/chat/README.md`)

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.


Overview (`templates-baseui/dashboard-1/README.md`)

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.


--- METRICS ---