8000 open source contribution done in empire ui by kanhaiya-dct · Pull Request #81 · empirecodefoundation/ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

open source contribution done in empire ui #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
173 changes: 118 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,93 +1,146 @@
# 🚀 Empire UI: AI-Ready Component Library for Next.js
# 🚀 EmpireUI - AI-Powered React Component Library

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.
EmpireUI is a modern, feature-rich component library designed specifically for AI-powered applications. Built with React, TypeScript, and TailwindCSS, our components leverage the latest in AI technology to help you create sophisticated, intelligent interfaces with minimal effort.

## 🔥 Features
![EmpireUI Banner](https://via.placeholder.com/1200x400?text=EmpireUI+-+AI-Powered+Components)

- **AI-Ready Components**: Pre-built components optimized for AI applications
- **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
## 🌟 Features

- 🤖 **AI-Ready Components**: Pre-built components optimized for AI applications
- 🎨 **Modern Design**: Clean, responsive design with customizable themes
- 📱 **Next.js Integration**: Seamless integration with Next.js applications
- 🔒 **TypeScript Support**: Full type safety for all components
- ♿ **Accessibility**: WCAG compliant components for inclusive applications
- 🌐 **Open Source**: 100% open source, community-driven development

## 📦 Installation

```bash
# Install via npm
npm install @empireui/empire-ui
npm install @empireui/components

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

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

## 🚀 Quick Start Guide
## 🚀 Quick Start

Initialize Empire UI in your project:
```tsx
import { AISummarizer } from "@empireui/components";

```bash
npx @empireui/empire-ui init
function App() {
return (
<AISummarizer
openAIApiKey="your-api-key"
=> console.log(summary)}
/>
);
}
```

Add components to your project:
## 🤖 AI Components

```bash
npx @empireui/empire-ui add Button
npx @empireui/empire-ui add AIChatbox
```
### 1. AISummarizer

## 📚 Components
Document summarization component that uses OpenAI's GPT model to generate concise summaries from text files.

### Core UI Components
- Button, Card, Input, Dialog, Dropdown, etc.
- Responsive layouts and grids
- Form elements with validation
### 2. SpeechToText

### 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
Real-time speech-to-text conversion with browser's Web Speech API and OpenAI Whisper integration.

### Advanced AI Components (New!)
- **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
### 3. ChatInterface

## 💻 Usage Example
Interactive chat interface with OpenAI GPT integration, message history, and real-time responses.

```jsx
import { AIChatbox } from '@empireui/empire-ui';
### 4. AIImageGenerator

function MyAIApp() {
return (
<div>
<h1>My AI Assistant</h1>
<AIChatbox isOpen={true} />
</div>
);
}
AI-powered image generation using DALL·E, with customizable prompts and image sizes.

### 5. SmartDataTable

Natural language querying of tabular data with AI-powered filtering and analysis.

### 6. PromptEditor

A powerful component for creating, editing, and testing AI prompts with variable support.

### 7. VoiceCommandButton

Voice command interface for triggering actions through speech recognition.

## 🛠️ Development

### Prerequisites

- Node.js 16+
- npm/yarn/pnpm
- TypeScript 4.5+

### Setup

```bash
# Clone the repository
git clone https://github.com/empirecodefoundation/ui.git

# Install dependencies
cd ui
npm install

# Start development server
npm run dev
```

## 📖 Documentation
### Project Structure

For detailed documentation, examples, and API references, visit our [documentation site](https://www.empireui.com/docs).
```
ui/
├── packages/
│ └── components/ # Main component library
│ ├── src/
│ │ ├── components/ # React components
│ │ └── lib/ # Shared utilities
│ └── dist/ # Build output
└── examples/ # Example applications
```

## 🤝 Contributing

We welcome contributions from the community! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines on how to contribute to Empire UI.
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.

### Development Workflow

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

### Code Style

- Follow the [TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html)
- Use Prettier for code formatting
- Write meaningful commit messages

## 📚 Documentation

For detailed documentation, visit our [documentation site](https://www.empireui.com/docs).

## 🏗️ Architecture

EmpireUI is built with:

- React 19+
- TypeScript
- TailwindCSS
- Radix UI Primitives
- OpenAI API Integration

## 📄 License

Empire UI is [MIT licensed](./LICENSE).
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## 🌟 Community

Expand All @@ -97,8 +150,17 @@ Join our community of developers building the future of AI interfaces:
- [Discord Community](https://discord.gg/empireui)
- [Twitter](https://twitter.com/empireui)

## 🙏 Acknowledgments

- [OpenAI](https://openai.com) for their powerful AI models
- [Radix UI](https://www.radix-ui.com) for accessible primitives
- [TailwindCSS](https://tailwindcss.com) for utility-first CSS
- All our contributors and supporters

---

Made with ❤️ by the Empire Code Foundation

## 📖 Table of Contents

- [About Empire UI](#about-empire-ui)
Expand Down Expand Up @@ -146,3 +208,4 @@ npm install @empire-ui/core
yarn add @empire-ui/core
# or
pnpm add @empire-ui/core
```
41 changes: 41 additions & 0 deletions demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
36 changes: 36 additions & 0 deletions demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/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](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`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

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

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
16 changes: 16 additions & 0 deletions demo/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
];

export default eslintConfig;
7 changes: 7 additions & 0 deletions demo/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
Loading
0