Skip to content

A beautifully designed UI component library that you can copy and paste into your Next.js apps by Empire Code Foundation. Accessible. Customizable. Open Source.

License

Notifications You must be signed in to change notification settings

empirecodefoundation/ui

Repository files navigation

๐Ÿš€ Empire UI: AI-Ready Component Library for Next.js

Welcome to Empire UI, a modern, feature-rich component library designed specifically for AI-powered applications. Built with React, Next.js, and TypeScript, our components leverage the latest in AI technology to help you create sophisticated, intelligent interfaces with minimal effort.

๐Ÿ”ฅ Features

  • AI-Ready Components: Pre-built components optimized for AI applications
  • 3D Interactive Elements: Advanced Three.js components for immersive experiences
  • Physics Simulations: Real-time physics effects with cursor interactions
  • Next.js Integration: Seamless integration with Next.js applications
  • TypeScript Support: Full type safety for all components
  • Modern Design: Clean, responsive design with customizable themes
  • Accessibility: WCAG compliant components for inclusive applications
  • Open Source: 100% open source, community-driven development

๐Ÿ“ฆ Installation

# Install via npm
npm install @empireui/empire-ui

# Or using yarn
yarn add @empireui/empire-ui

# Or using pnpm
pnpm add @empireui/empire-ui

๐Ÿš€ Quick Start Guide

Initialize Empire UI in your project:

npx @empireui/empire-ui init

Add components to your project:

npx @empireui/empire-ui add Button
npx @empireui/empire-ui add AIChatbox
npx @empireui/empire-ui add TestCursor
npx @empireui/empire-ui add FluidGlass

๐Ÿ“š Components

Core UI Components

  • Button, Card, Input, Dialog, Dropdown, etc.
  • Responsive layouts and grids
  • Form elements with validation

๐ŸŽฎ Interactive 3D Components (New!)

  • TestCursor: Liquid glass cursor effect with Three.js physics
  • FluidGlass: Advanced liquid cursor with multiple modes (lens, bar, cube)
  • Ballpit: Physics-based ball simulation with boundary containment
  • AuroraBackgrounds: Dynamic aurora effect backgrounds

AI-Specific Components

  • AIChatbox: Interactive chat interface for AI assistants
  • AIGrammarCheckButton: One-click grammar checking
  • AIImageCaptionButton: Generate captions for images
  • AIParaphraserButton: Instantly rephrase text
  • AISummarizerButton: Summarize long content
  • AITranslatorButton: Translate text between languages

Advanced AI Components

  • AgentWorkflow: Visual workflow builder for AI agents
  • MCPInterface: Model Context Protocol integration
  • NodeCanvas: Drag-and-drop node editor for AI pipelines
  • ARVisualizer: Augmented reality data visualization
  • VRInteractionSpace: Virtual reality AI interaction environment
  • SemanticSearchBar: AI-powered semantic search with auto-suggestions

๐Ÿ’ป Usage Examples

Basic AI Chat Integration

import { AIChatbox } from '@empireui/empire-ui';

function MyAIApp() {
  return (
    <div>
      <h1>My AI Assistant</h1>
      <AIChatbox isOpen={true} />
    </div>
  );
}

Interactive 3D Cursor Effect

import { TestCursor } from '@empireui/empire-ui';

function InteractiveDemo() {
  return (
    <div className="w-full h-screen">
      <TestCursor />
    </div>
  );
}

Advanced Liquid Glass Effect

import { FluidGlass } from '@empireui/empire-ui';

function FluidDemo() {
  return (
    <FluidGlass 
      mode="lens"
      lensProps={{
        scale: 0.5,
        ior: 1.15,
        thickness: 5,
        chromaticAberration: 0.1
      }}
    />
  );
}

๐ŸŽจ Demo Pages

Visit our demo pages to see the components in action:

  • /cursor-test - TestCursor liquid glass effect demo
  • /components - Complete component showcase
  • /templates - Pre-built template examples

๐Ÿ“– Documentation

For detailed documentation, examples, and API references, visit our documentation site.

๐Ÿค Contributing

We welcome contributions from the community! Please see CONTRIBUTING.md for guidelines on how to contribute to Empire UI.

๐Ÿ“„ License

Empire UI is MIT licensed.

๐ŸŒŸ Community

Join our community of developers building the future of AI interfaces:


๐Ÿ“– Table of Contents


๐Ÿ” About Empire UI

Empire UI is more than just a component libraryโ€”it's a complete solution for developers building AI-powered applications on Next.js. Whether you're creating a chatbot interface, an AI-driven dashboard, or immersive 3D experiences, Empire UI provides the tools and components you need to build stunning, performant applications.

๐ŸŽจ Design Philosophy

  • Minimalist: Simple, elegant, and modern design.
  • AI-Ready: Seamlessly integrate AI features using Vercel AI SDK and other tools.
  • Interactive: Advanced 3D and physics-based components for engaging UX.
  • Developer-Friendly: Easy to use, extend, and customize.

โœจ Key Features

  • AI-Ready Components: Pre-built components ready for AI integration.
  • 3D Interactive Elements: Three.js powered components with physics simulation.
  • Next.js Optimized: Components optimized for use with Next.js applications.
  • Vercel AI SDK Integration: Out-of-the-box support for Vercel AI SDK.
  • Responsive Design: Fully responsive components for all screen sizes.
  • Customizable: Easily extend and customize components to suit your needs.
  • Open Source: 100% open source, community-driven.

โš™๏ธ Installation

Install Empire UI in your Next.js project with the following commands:

npm install @empire-ui/core
# or
yarn add @empire-ui/core
# or
pnpm add @empire-ui/core

๐Ÿ†• Latest Updates

  • NEW: TestCursor component with liquid glass physics simulation

  • NEW: FluidGlass component with multiple interaction modes

  • NEW: Ballpit physics simulation with containment boundaries

  • Enhanced UI with improved segment heights

  • Optimized image positioning for better display

  • Refined styling for better visual appeal

  • Improved vertical positioning of UI segments

  • Fixed Empire UI title placement in header notch

  • Added comprehensive TypeScript support

  • Repository cleanup with proper .gitignore configuration

  • Empire Code Foundation


Built with โค๏ธ by the Empire Code Foundation team

About

A beautifully designed UI component library that you can copy and paste into your Next.js apps by Empire Code Foundation. Accessible. Customizable. Open Source.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 11