Skip to content

Commit 070038b

Browse files
authored
Merge pull request #35 from michitomo/main
docs(showcase): add Flow & Focus project
2 parents aafc562 + 35a73f6 commit 070038b

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

docs/showcase/flow-and-focus.mdx

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Flow & Focus | Personalized News for Genuine Understanding
3+
description: A personalized news app combining vertical feed discovery with AI-powered deep dives using Perplexity Sonar Pro and Deep Research models
4+
sidebar_position: 17
5+
keywords: [flow and focus, perplexity sonar, news personalization, dual-mode, next.js, react, ai]
6+
---
7+
8+
**Flow & Focus** is a personalized news application that transforms news consumption into a learning experience. It uniquely combines rapid discovery through a vertical news feed (Flow) with in-depth, interactive learning dialogues (Focus), powered by Perplexity's Sonar Pro and Sonar Deep Research models.
9+
10+
<iframe
11+
className="w-full aspect-video rounded-xl"
12+
src="https://www.youtube.com/embed/09h7zluuhQI"
13+
title="YouTube video player"
14+
frameBorder="0"
15+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
16+
allowFullScreen
17+
></iframe>
18+
19+
## Features
20+
21+
* **Dual Mode Interface**: Flow Feed for quick news discovery and Focus for personalized deep dives
22+
* **Vertical News Feed**: Swipeable news snippets with AI-generated summaries, tags, and background images
23+
* **Interactive Deep Dives**: Tap key phrases for focused content, with horizontally scrollable detail panes
24+
* **Personalized Learning**: AI-powered conversation segments with personas like "Oracle" and "Explorer"
25+
* **Smart Personalization**: Tracks reading patterns to tailor content selection automatically
26+
* **Real-time Content**: Leverages Sonar Pro for up-to-date news and Sonar Deep Research for detailed analysis
27+
* **Visual Enhancement**: Dynamic background images generated via Runware.ai based on content keywords
28+
29+
30+
## Prerequisites
31+
32+
* Node.js 18+ and npm
33+
* Perplexity API key
34+
* Runware API key for image generation
35+
* Next.js 15 and React 19 environment
36+
37+
## Installation
38+
39+
```bash
40+
# Clone the repository
41+
git clone https://github.com/michitomo/NewsReel.git
42+
cd NewsReel
43+
44+
# Install dependencies
45+
npm install
46+
47+
# Set up environment variables
48+
cp .env.example .env.local
49+
```
50+
51+
## Configuration
52+
53+
Create `.env.local` file:
54+
```ini
55+
PERPLEXITY_API_KEY=your_perplexity_api_key_here
56+
RUNWARE_API_KEY=your_runware_api_key_here
57+
PERPLEXITY_FOCUS_MODEL=sonar-deep-research
58+
```
59+
60+
## Usage
61+
62+
1. **Start Development Server**:
63+
```bash
64+
npm run dev
65+
```
66+
67+
2. **Access Application**: Open http://localhost:3000 in your browser
68+
69+
3. **Flow Feed**: Scroll vertically through news snippets and tap key phrases for deep dives
70+
71+
4. **Focus Mode**: Generate personalized digests with interactive conversation segments
72+
73+
5. **Personalization**: Your viewing patterns automatically influence content selection
74+
75+
## Code Explanation
76+
77+
* **Frontend**: Next.js 15 with React 19, TypeScript, Tailwind CSS, and Framer Motion for animations
78+
* **State Management**: Zustand with localStorage persistence for user preferences
79+
* **AI Integration**: Perplexity Sonar Pro for real-time news and Sonar Deep Research for in-depth analysis
80+
* **Image Generation**: Runware SDK integration for dynamic background images based on content keywords
81+
* **API Routes**: Server-side integration handling Perplexity and Runware API calls
82+
* **Mobile-First Design**: Swipe gestures and responsive layout for intuitive mobile experience
83+
84+
## Links
85+
86+
* [GitHub Repository](https://github.com/michitomo/NewsReel)
87+
* [Demo Video](https://www.youtube.com/watch?v=09h7zluuhQI)
88+
* [Perplexity Hackathon](https://perplexityhackathon.devpost.com/)
89+
* [Perplexity Hackathon Project](https://devpost.com/software/flow-focus)

0 commit comments

Comments
 (0)