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

create-asktemp

v1.0.0

Published

CLI tool to create RTL Arabic dashboard projects with authentication and theme system

Readme

create-asktemp

A CLI tool to quickly scaffold Arabic RTL dashboard projects with authentication, theme system, and modern UI components.

Features

  • ✅ Arabic RTL Support - Complete right-to-left layout with Arabic navigation
  • ✅ Authentication System - Ready-to-use auth with API hooks and middleware protection
  • ✅ Dark/Light Theme - Built-in theme system with user preferences
  • ✅ ShadCN UI Components - Modern, accessible UI component library
  • ✅ Collapsible Sidebar - Responsive sidebar with navigation and user settings
  • ✅ Next.js 15 - Latest Next.js with App Router and TypeScript
  • ✅ Tailwind CSS v4 - Modern styling with CSS variables
  • ✅ Route Protection - Middleware-based authentication and route guards

Quick Start

npx create-asktemp my-dashboard
cd my-dashboard
npm run dev

That's it! Your Arabic RTL dashboard is ready at http://localhost:3000

Usage

npx create-asktemp <project-name>

Examples

# Create a new dashboard project
npx create-asktemp client-portal

# Create an admin panel
npx create-asktemp admin-dashboard

# Create a management system
npx create-asktemp inventory-system

What You Get

🏗️ Project Structure

my-dashboard/
├── src/
│   ├── app/
│   │   ├── (auth)/login/          # Authentication pages
│   │   ├── (protected)/           # Protected dashboard pages
│   │   └── layout.tsx
│   ├── components/
│   │   ├── layouts/               # Sidebar, navigation, breadcrumbs
│   │   └── ui/                    # ShadCN UI components
│   ├── context/                   # Theme and navigation context
│   ├── hooks/auth/                # Authentication hooks
│   └── middleware.ts              # Route protection
├── package.json
└── tailwind.config.ts

🔐 Authentication System

  • Login page with Arabic RTL layout
  • Route protection with Next.js middleware
  • API hooks for all auth endpoints
  • Token management with automatic refresh
  • User settings with password change and logout

🎨 Theme System

  • Dark/Light mode toggle
  • System preference detection
  • Persistent user choices
  • Arabic labels and RTL support

🧭 Navigation

  • Collapsible sidebar with icon-only mode
  • Dynamic breadcrumbs reflecting current page
  • Arabic navigation labels and structure
  • User dropdown with settings and logout

Customization

After creating your project, you'll typically want to customize:

1. API Configuration

Update API endpoints in src/hooks/auth/config.ts:

const apiConfig = {
  baseURL: 'http://your-api-server.com/api/',
  // ... other settings
};

2. Theme Colors

Modify colors in src/styles/globals.css:

:root {
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 84% 4.9%;
  /* ... customize your colors */
}

3. Navigation Structure

Update navigation items in src/components/layouts/sidebar/app-sidebar.tsx:

const navItems = [
  {
    title: "الرئيسية",
    icon: Home,
    items: [
      { title: "لوحة التحكم", url: "/dashboard" },
      // ... add your pages
    ]
  }
];

4. Branding

  • Replace logo/icons in public/ directory
  • Update app title in src/app/layout.tsx
  • Customize sidebar header in app-sidebar.tsx

Development

# Start development server
npm run dev

# Build for production
npm run build

# Start production server
npm start

Tech Stack

  • Framework: Next.js 15 with App Router
  • Language: TypeScript
  • Styling: Tailwind CSS v4
  • UI Components: ShadCN UI (Radix UI primitives)
  • Icons: Lucide React
  • Authentication: Custom API hooks with middleware
  • State Management: React Context
  • Layout: Arabic RTL with responsive design

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Requirements

  • Node.js 16.0 or later
  • npm or yarn

License

MIT License - feel free to use this template for your projects.

Support

For questions about using this template:


Happy coding! 🎉 Build amazing Arabic RTL dashboards with this template.