UNPKG

sysrotcore

Version:

CLI de nueva generaciรณn para crear proyectos Next.js 14+ con IA integrada y componentes modernos

472 lines (381 loc) โ€ข 16.7 kB
# ๐Ÿš€ SysrotCore v2.1.16 <div align="center"> **Next-generation CLI to create Next.js 14+ projects with Pages Router, multiple AI models and complete development ecosystem** [![npm version](https://badge.fury.io/js/sysrotcore.svg)](https://badge.fury.io/js/sysrotcore) [![Downloads](https://img.shields.io/npm/dm/sysrotcore.svg)](https://npmjs.com/package/sysrotcore) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Node.js](https://img.shields.io/badge/Node.js-18%2B-green.svg)](https://nodejs.org/) [![Next.js](https://img.shields.io/badge/Next.js-14%2B-black.svg)](https://nextjs.org/) **๐Ÿš€ Command: `npx sysrotcore` | ๐ŸŽจ 11 Functional Examples | ๐Ÿค– 3 Integrated AI Models** </div> ## โœจ **Why SysrotCore?** In **June 2025**, web development requires tools that accelerate the creation of modern applications without sacrificing quality. **SysrotCore** is a CLI that gives you: - ๐Ÿš€ **Complete project in 30 seconds** - From idea to functional application - ๐Ÿค– **3 integrated AI models** - GPT-4o, Claude 3.5 Sonnet, Gemini Flash Pro - ๐Ÿ“ฆ **50+ production-ready components** - Complete UI/UX library - ๐ŸŽฏ **11 functional examples** - Real code you can use immediately - โšก **Zero-config** - Works perfectly from the first `npm run dev` - ๐ŸŽจ **60+ fluid animations** - CSS3, Framer Motion, micro-interactions - ๐Ÿ“š **Integrated MDX blog** - 3 example articles included - ๐ŸŒ **Full internationalization** - Spanish and English support **๐Ÿ’ก Note:** The package is called `sysrotcore` and the main command is `npx sysrotcore` for maximum simplicity. ## ๐Ÿ”ฅ **Implemented Features** ### ๐Ÿค– **Integrated AI Models** - **GPT-4o (OpenAI v4.24.1)** - Advanced reasoning and code generation - **Claude 3.5 Sonnet (Anthropic v0.12.0)** - Deep analysis and documentation - **Gemini Flash Pro (Google v0.2.0)** - Fast multimodal processing - **Unified interface** - One component for all models - **Real-time streaming** - Live responses with typing indicator - **Automatic fallback** - Resilience against API errors - **Context switching** - Dynamic switching between models ### ๐ŸŒ **Complete Internationalization** - **2 languages supported** - Spanish (default) and English - **Next.js i18n built-in** - SEO-friendly URLs (/es/, /en/) - **Automatic detection** - Browser language detection - **React Intl integration** - Industry standard for translations - **TypeScript support** - Type-safe translations - **Language switcher** - Elegant component included - **Date formatting** - Localized dates and relative times - **RTL support ready** - Extensible for Arabic, Hebrew, etc. ### ๐ŸŽจ **Modern Design System** - **TailwindCSS 3.4+** - Latest CSS utilities - **Dark/Light/System** - Smart adaptive theme with next-themes v0.2.1 - **Responsive First** - Perfect mobile, tablet, desktop - **50+ UI Components** - Organized in 6 production-ready categories - **60+ Animations** - CSS3, Framer Motion, micro-interactions - **A11Y Accessibility** - WCAG 2.1 AA compliant - **Optimized Performance** - Perfect Core Web Vitals, 60 FPS guaranteed ### ๐Ÿงฉ **Complete Component Library** #### **๐ŸŽฏ Basic (12 components)** - **Advanced Buttons** - Animated gradients, outline effects, magnetic hover - **Modern Cards** - Pricing, stats, interactive with 3D effects - **Interactive Badges** - States, colors, animations #### **๐Ÿ“ Forms (10 components)** - **Floating Labels** - Modern inputs with smooth animations - **Icon Inputs** - Real-time visual validation - **Modern Selects** - Custom dropdowns with search - **Toggle Switches** - Fluid animations and multiple states #### **๐Ÿงญ Navigation (8 components)** - **Interactive Breadcrumbs** - With icons and hover effects - **Modern Sidebar** - Adaptive with state animations - **Animated Tabs** - Smooth transitions between sections #### **๐Ÿ’ฌ Feedback (12 components)** - **Alert System** - Success, warning, error with icons - **Modern Modals** - Backdrop blur, entrance animations - **Progress Indicators** - Animated linear and circular bars - **Loading States** - Optimized spinners, dots, skeletons #### **๐Ÿ“Š Data (10 components)** - **Interactive Tables** - Sorting, filters, pagination - **Stats Cards** - Metrics with integrated charts - **Data Visualization** - Basic charts with Chart.js ready #### **๐Ÿ“ Layout (8 components)** - **Grid Systems** - Responsive with optimized breakpoints - **Flexbox Layouts** - Center, space-between, wrap patterns - **Container Sizes** - sm, md, lg, xl, 2xl with max-width ### โœจ **Massive Animation Showcase** #### **๐ŸŽฏ Basic (8 animations)** - **Fade, Slide, Scale, Rotate** - Optimized smooth entrances - **CSS Keyframes** - Pulse, bounce, shake with perfect timing #### **โญ Hover Effects (12 effects)** - **Lift Effect** - Elevation with dynamic shadow - **Glow Effect** - Color glow on hover - **Slide Content** - Hidden content reveal - **Magnetic Buttons** - Visual attraction to cursor #### **๐Ÿ”ฎ Micro-interactions (15 effects)** - **Ripple Effect** - Click waves - **Magnetic Effect** - Elements that follow cursor - **Morphing Icons** - Icons that change shape - **Floating Inputs** - Labels that float smoothly - **Modern Toggle** - Switches with animated gradients - **Heart Animation** - Like buttons with effects #### **๐Ÿš€ Advanced (25+ animations)** - **Floating Elements** - Organically floating particles - **Morphing Shapes** - Shapes that change geometry - **Particle Systems** - Rain and particle effects - **Matrix Rain** - Matrix-style falling characters - **Holographic Effects** - Changing holographic colors - **DNA Helix** - 3D double helix animation - **Physics-based** - Realistic pendulum, spring bounce - **3D Effects** - Tilt cards, flip cards, glassmorphism ### ๐ŸŽฎ **Perfect Mouse Follower** - **Centered cursor** - Perfect positioning with calculated offset - **Smooth transitions** - 75ms ease-out for fluidity - **Mix-blend-mode** - Fusion effect with content - **Responsive** - Activates/deactivates based on interaction ### ๐Ÿ›ก๏ธ **Enterprise-Grade Authentication** - **NextAuth.js 4.24.5** - Robust and secure authentication - **6 OAuth Providers** - Google, GitHub, Apple, Discord, LinkedIn, Email - **Magic Links** - Passwordless login - **Multi-Factor Auth** - Integrated 2FA/TOTP - **Role-Based Access** - Admin, User, Moderator, Custom - **Session Management** - JWT + Database sessions - **CSRF Protection** - Automatic protection against attacks ### ๐Ÿ“Š **Multi-Database Support** - **MongoDB v6.3.0** - NoSQL with Mongoose ODM v8.0.3 - **Supabase v2.39.1** - PostgreSQL with Edge Functions and Auth - **Firebase v10.7.1** - Real-time + Analytics + Admin v11.11.1 - **Connection pooling** - Connection optimization - **Migration support** - Versioned schemas ### ๐Ÿ“ **Advanced Forms and Validation** - **React Hook Form v7.49.2** - Performance optimized without re-renders - **Zod v3.22.4** - TypeScript-first validation with inference - **Hookform Resolvers v3.3.3** - Perfect integration - **Real-time validation** - Optimized UX with debounce - **Error handling** - Custom messages with i18n ### ๐Ÿ“ค **Premium File Management** - **Cloudinary v1.41.1** - Global CDN with 99.9% uptime - **Next-Cloudinary v5.13.0** - Optimized Next.js integration - **Drag & Drop** - Intuitive interface with preview - **Multiple formats** - Images, videos, documents - **Automatic optimization** - WebP, AVIF, dynamic resize - **Upload progress** - Real-time progress bars ### ๐Ÿ“š **Complete Blog/CMS System** - **MDX Support** - Markdown + React components - **Gray Matter v4.0.3** - Optimized frontmatter parsing - **3 Included Articles** - Professional example content - **Remark v15.0.1** - Advanced markdown processing - **Rehype Highlight v7.0.0** - Syntax highlighting with themes - **Remark GFM v4.0.0** - GitHub Flavored Markdown - **Date-fns v2.30.0** - International date handling - **SEO optimized** - Automatic meta tags, Open Graph, Twitter Cards ### ๐ŸŽจ **Titles with Gradient Shadow** - **Glow gradient** - Soft effect behind text - **Optimized blur** - 3xl blur with scale-110 for better effect - **Correct z-index** - Perfect positioning without interference - **Responsive** - Adapts to all screen sizes ### ๐Ÿท๏ธ **Neutral Terminology** - **No commercial terms** - Removed "Premium", "Pro", payment terms - **Improved accessibility** - Interface without cost implications - **Open source friendly** - Terminology aligned with free projects - **Unified experience** - All users have complete access ## ๐Ÿ› ๏ธ **Installation and Usage** ### **โš ๏ธ Important Clarification** This directory (`base/`) contains the **CLI generator** for SysrotCore, it is **NOT** a Next.js project. - โŒ **Don't run** `npm run dev` here - โœ… **Use** `npx sysrotcore my-project` to generate a Next.js project - โœ… **The `dev` script** will be available in the generated project ### **๐Ÿ“ Important: Simplified Command** - **NPM package name:** `sysrotcore` - **CLI command:** `npx sysrotcore` - **Why?** A single simple and memorable command ### **Create a Project** ```bash # Option 1: NPX (Recommended) - Always latest version npx sysrotcore my-project # Option 2: With specific name npx sysrotcore your-app-name # Option 3: Global installation npm install -g sysrotcore sysrotcore my-project ``` ### **CLI Options** ```bash # View complete help npx sysrotcore --help # View current version npx sysrotcore --version ``` **๐Ÿ’ก Tip:** Always use `npx sysrotcore` to automatically get the latest version without global installation. ## ๐ŸŽฎ **Complete Interactive Configuration** The CLI includes an intelligent assistant with **15 configuration categories**: ### โš™๏ธ **Base Technology Stack** ```bash ? Do you want TypeScript configured? (Y/n) โœจ Recommended ? Do you want TailwindCSS configured? (Y/n) โœจ Recommended ? Do you want ESLint + Prettier configured? (Y/n) โœจ Recommended ? Do you want testing configuration (Jest + Testing Library)? (y/N) ``` ### ๐ŸŒ **Internationalization** ```bash ? Do you want internationalization support? (Y/n) โœจ New Feature ? Select languages: โ—ฏ Spanish (default) โ—ฏ English โ—ฏ French (coming soon) โ—ฏ Portuguese (coming soon) ? Default language? โฏ Spanish English ? Language detection? โ—ฏ Automatic browser detection โ—ฏ Manual selection only โ—ฏ URL-based (/es/, /en/) ``` ### ๐Ÿ—„๏ธ **Database & Backend** ```bash ? What database do you want to use? โฏ None MongoDB (NoSQL - Recommended for MVP) Supabase (PostgreSQL + Auth) Firebase (Real-time + Analytics) ? Do you want ORM/ODM? โฏ Mongoose (MongoDB) None ``` ### ๐Ÿ” **Authentication & Security** ```bash ? Do you want authentication system? (Y/n) โœจ Recommended ? Select providers: โ—ฏ Google (OAuth 2.0) โ—ฏ GitHub (Developer friendly) โ—ฏ Apple (iOS users) โ—ฏ Discord (Gaming/Community) โ—ฏ Email (Magic links) โ—ฏ Credentials (Username/Password) ? Do you want advanced role system? (Y/n) - Admin, User, Moderator - Granular permissions - Protection middleware ? Do you want multi-factor authentication? (y/N) ``` ### ๐Ÿค– **Artificial Intelligence** ```bash ? Do you want AI integration? (Y/n) โœจ Popular ? Select models: โ—ฏ GPT-4o (OpenAI) - Best for code and text โ—ฏ Claude 3.5 Sonnet (Anthropic) - Deep analysis โ—ฏ Gemini Flash Pro (Google) - Fast multimodal ? Do you want integrated chat interface? (Y/n) ? Do you want AI functions for end users? (y/N) ``` ### ๐Ÿ“ค **File Management & Media** ```bash ? Do you want file upload integration? (Y/n) ? Do you want Cloudinary integration for image upload? (y/N) ? Do you want automatic image optimization? (Y/n) ? Do you want support for multiple formats? (WebP, AVIF) (Y/n) ``` ### ๐Ÿ“ **Content Management** ```bash ? Do you want blog/content system? (Y/n) ? Select type: โฏ MDX Blog (Local files) Headless CMS (Contentful/Strapi) Hybrid (MDX + CMS) ? Do you want advanced features? โ—ฏ Syntax highlighting (100+ languages) โ—ฏ Automatic SEO optimization โ—ฏ RSS feed generation โ—ฏ Automatic sitemap โ—ฏ AI-powered related posts ``` ## ๐Ÿ“ **Generated Project Structure** ``` my-project/ โ”œโ”€โ”€ components/ # Reusable components โ”‚ โ”œโ”€โ”€ providers/ # Context providers โ”‚ โ”‚ โ””โ”€โ”€ intl-provider.tsx # Internationalization โ”‚ โ”‚ โ””โ”€โ”€ auth.ts # NextAuth configuration โ”‚ โ”œโ”€โ”€ ui/ # Interface components โ”‚ โ”‚ โ”œโ”€โ”€ layout.tsx # Main layout โ”‚ โ”‚ โ”œโ”€โ”€ language-switcher.tsx # Language selector โ”‚ โ”‚ โ””โ”€โ”€ theme-toggle.tsx # Light/dark theme selector โ”œโ”€โ”€ locales/ # Translation files โ”‚ โ”œโ”€โ”€ es.json # Spanish translations โ”‚ โ””โ”€โ”€ en.json # English translations โ”œโ”€โ”€ lib/ # Utilities and configuration โ”‚ โ”œโ”€โ”€ i18n.ts # Internationalization config โ”‚ โ””โ”€โ”€ auth.ts # NextAuth configuration โ”œโ”€โ”€ pages/ # Pages Router โ”‚ โ”œโ”€โ”€ _app.tsx # App with providers โ”‚ โ”œโ”€โ”€ index.tsx # Homepage (multilingual) โ”‚ โ”œโ”€โ”€ blog/ # MDX blog โ”‚ โ””โ”€โ”€ ejemplos/ # Examples (multilingual) โ”œโ”€โ”€ posts/ # MDX blog articles โ”‚ โ”œโ”€โ”€ introduction-en.mdx # English articles โ”‚ โ””โ”€โ”€ introduccion-es.mdx # Spanish articles โ””โ”€โ”€ next.config.js # Next.js config with i18n ``` ## ๐ŸŒ **Internationalization Usage** ### **Using Translations in Components** ```typescript import { useTranslation } from '@/components/providers/intl-provider'; export function MyComponent() { const { t, formatDate, locale } = useTranslation(); return ( <div> <h1>{t('home.title')}</h1> <p>{t('home.description')}</p> <time>{formatDate(new Date())}</time> <span>Current language: {locale}</span> </div> ); } ``` ### **Language Switcher** ```typescript import { LanguageSwitcher } from '@/components/ui/language-switcher'; // Full dropdown <LanguageSwitcher /> // Compact version (toggle) <LanguageSwitcherCompact /> ``` ### **SEO URLs** The system automatically generates SEO-friendly URLs: - `/` โ†’ Spanish homepage - `/en` โ†’ English homepage - `/blog` โ†’ Spanish blog - `/en/blog` โ†’ English blog - `/ejemplos` โ†’ Spanish examples - `/en/examples` โ†’ English examples ### **Adding New Languages** 1. **Update next.config.js:** ```javascript i18n: { locales: ['es', 'en', 'fr'], // Add French defaultLocale: 'es', } ``` 2. **Create translation file:** ```bash # Create locales/fr.json { "nav.home": "Accueil", "home.title": "Dรฉvelopper rapidement, dรฉployer plus rapidement", // ... more translations } ``` 3. **Update language switcher:** ```typescript const languages = [ { code: 'es', name: 'Espaรฑol', flag: '๐Ÿ‡ช๐Ÿ‡ธ' }, { code: 'en', name: 'English', flag: '๐Ÿ‡บ๐Ÿ‡ธ' }, { code: 'fr', name: 'Franรงais', flag: '๐Ÿ‡ซ๐Ÿ‡ท' }, // Add French ]; ``` ## ๐ŸŽฏ **For Testing** In your generated project: ```bash # Create multilingual project npx sysrotcore my-multilingual-app # Navigate to project cd my-multilingual-app # Install dependencies npm install # Run in development npm run dev # Test different languages # http://localhost:3000 (Spanish) # http://localhost:3000/en (English) ``` ## ๐Ÿš€ **Roadmap for Internationalization** ### **v2.2.0 - Extended Languages** - ๐Ÿ‡ซ๐Ÿ‡ท French support - ๐Ÿ‡ต๐Ÿ‡น Portuguese support - ๐Ÿ‡ฉ๐Ÿ‡ช German support - ๐Ÿ‡ฏ๐Ÿ‡ต Japanese support ### **v2.3.0 - Advanced Features** - RTL support (Arabic, Hebrew) - Number and currency formatting - Pluralization rules - Translation management tools ### **v2.4.0 - Enterprise** - Translation memory - Automatic translation with AI - Translation workflow - Professional translator tools --- **SysrotCore v2.1.13** now includes complete internationalization, making it the most complete CLI for creating modern multilingual applications. **Ready to build for the global market?** ๐ŸŒ ```bash npx sysrotcore my-global-app ```