Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Autonomous-Finance/dataos-yconcept

Repository files navigation

πŸ“š DataOS Y-Concept

AI-Powered Content Feed with Generative UI

License: MIT Status: Archived Next.js TypeScript Tailwind CSS


A concept application exploring AI-driven content summarization, generative UI components, and DeFi integration.



⚠️ Archived Notice

This project is archived and no longer maintained.

This repository represents a concept exploration and is provided as-is for educational and reference purposes. No further development, bug fixes, or support will be provided.

Use at your own risk. APIs and dependencies may be outdated or deprecated. Originally developed by Roark Technology.


πŸ“– Overview

DataOS Y-Concept is an experimental Next.js application that demonstrates the integration of AI capabilities with a modern web interface. The project explores:

  • AI-Powered Summarization: Automatic content summarization using OpenAI GPT models
  • Generative UI: Dynamic, AI-generated interface components using Vercel AI SDK
  • DeFi Integration: Token exchange functionality via Uniswap V3
  • Entity Extraction: Automatic extraction and display of organizations, people, and topics from content

Key Features

Feature Description
πŸ€– Content Summarization Transforms long-form content into concise summaries using GPT
πŸ’¬ Interactive Chat Ask questions about content with AI-powered responses
πŸ–ΌοΈ Image Search Contextual image fetching from Unsplash based on content
πŸ’± Token Quotes Real-time cryptocurrency price quotes via Uniswap
πŸ“Š Entity Recognition Automatic extraction of organizations, people, and topics
🎨 Modern UI Clean, responsive interface built with Tailwind CSS and Radix UI

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        Next.js 14 App Router                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”‚
β”‚  β”‚   Feed Page  β”‚  β”‚  Post Page   β”‚  β”‚  API Routes  β”‚          β”‚
β”‚  β”‚              β”‚  β”‚              β”‚  β”‚              β”‚          β”‚
β”‚  β”‚ - List View  β”‚  β”‚ - Detail     β”‚  β”‚ - Autocompleteβ”‚         β”‚
β”‚  β”‚ - Summaries  β”‚  β”‚ - Chat       β”‚  β”‚ - Post Info  β”‚          β”‚
β”‚  β”‚ - Stock Data β”‚  β”‚ - Exchange   β”‚  β”‚              β”‚          β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β”‚
β”‚                                                                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                     Integrations Layer                           β”‚
β”‚                                                                  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”‚
β”‚  β”‚   OpenAI     β”‚  β”‚   Unsplash   β”‚  β”‚  Uniswap V3  β”‚          β”‚
β”‚  β”‚              β”‚  β”‚              β”‚  β”‚              β”‚          β”‚
β”‚  β”‚ - GPT-3.5    β”‚  β”‚ - Image API  β”‚  β”‚ - Quoter     β”‚          β”‚
β”‚  β”‚ - Chat       β”‚  β”‚              β”‚  β”‚ - Pool       β”‚          β”‚
β”‚  β”‚ - Streaming  β”‚  β”‚              β”‚  β”‚              β”‚          β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β”‚
β”‚                                                                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Project Structure

dataos-yconcept/
β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”œβ”€β”€ _api/              # Internal API functions
β”‚   β”œβ”€β”€ _components/       # App-specific components
β”‚   β”œβ”€β”€ api/               # API route handlers
β”‚   β”‚   β”œβ”€β”€ autocomplete/  # AI-powered text completion
β”‚   β”‚   └── post-info/     # Post metadata endpoint
β”‚   β”œβ”€β”€ feed/              # Main feed page
β”‚   β”‚   β”œβ”€β”€ actions.tsx    # Server actions & AI integration
β”‚   β”‚   β”œβ”€β”€ Post.tsx       # Post component with AI features
β”‚   β”‚   β”œβ”€β”€ PostChat.tsx   # Interactive chat component
β”‚   β”‚   └── UniswapExchange.tsx  # Token exchange UI
β”‚   └── post/[id]/         # Individual post pages
β”œβ”€β”€ components/            # Shared UI components
β”‚   β”œβ”€β”€ ui/               # shadcn/ui components
β”‚   β”œβ”€β”€ sidebar.tsx       # Navigation sidebar
β”‚   └── trends.tsx        # Trending topics widget
β”œβ”€β”€ data/                  # Static data files
β”‚   └── posts.json        # Sample post data
└── lib/                   # Utility functions
    β”œβ”€β”€ config.ts         # Application configuration
    β”œβ”€β”€ constants.ts      # Web3 constants & tokens
    β”œβ”€β”€ conversion.ts     # Number formatting utilities
    β”œβ”€β”€ providers.ts      # Ethereum provider setup
    β”œβ”€β”€ quote.ts          # Uniswap quote functionality
    └── utils.ts          # General utilities

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • pnpm (recommended) or npm

Installation

# Clone the repository
git clone https://github.com/your-org/dataos-yconcept.git
cd dataos-yconcept

# Install dependencies
pnpm install

# Copy environment template
cp .env.example .env.local

# Configure your environment variables (see Configuration section)

Configuration

Create a .env.local file with the following variables:

# OpenAI (required for AI features)
OPENAI_API_KEY=your_openai_api_key
OPENAI_ORG=your_openai_org_id

# Unsplash (required for image search)
UNSPLASH_ACCESS_KEY=your_unsplash_access_key

# Ethereum RPC (required for Uniswap features)
RPC_MAINNET=https://your-ethereum-rpc-url

Running the Application

# Development mode
pnpm dev

# Production build
pnpm build
pnpm start

Open http://localhost:3000 to view the application.


πŸ› οΈ Technology Stack

Category Technologies
Framework Next.js 14, React 18
Language TypeScript 5.4
Styling Tailwind CSS 3.4, Radix UI
AI/ML OpenAI GPT-3.5, Vercel AI SDK
DeFi Uniswap V3 SDK, ethers.js
Images Unsplash API
UI Components shadcn/ui

πŸ“‹ API Reference

Autocomplete Endpoint

POST /api/autocomplete

Provides AI-powered text completion suggestions.

Request Body:

{
  "query": "string"
}

Response:

{
  "suggestions": ["string", "string", "string"]
}

Post Info Endpoint

GET /api/post-info

Returns metadata about available posts.


⚑ Features Deep Dive

Generative UI with AI SDK

The application uses Vercel's AI SDK to create dynamic, streaming UI components. The chat interface (PostChat.tsx) demonstrates real-time AI responses with tool use for fetching contextual images.

Uniswap Integration

The UniswapExchange component provides real-time token price quotes using Uniswap V3's quoter contract. Configure an Ethereum RPC endpoint to enable this feature.

Content Processing

Posts are automatically processed to extract:

  • Organization entities
  • Person mentions
  • Geographic references
  • Topic keywords
  • Content categories

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.


🏒 Attribution

Originally developed by Roark Technology.


This project is archived and provided for educational purposes.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages