ReddiTUI banner

ReddiTUI

5 devlogs
1h 37m 54s

A Reddit TUI built with Ratatui in Rust (I use Rust btw). You can optionally specify a subbreddit with: redditui [subreddit]. It displays the title, subreddit, content, and upvotes. Navigate with j/k and quit with q.

This project uses AI

Used Claude for a little bit of help with rust cos i am new to rust :) (not a lot - just like 2-3 questions about syntax etc.)

Demo Repository

Loading README...

Kyle

Shipped this project!

Hours: 1.63
Cookies: 🍪 23
Multiplier: 13.8 cookies/hr

I built Redditui, a TUI for browsing subreddits! I learned how to use Ratatui and learned more rust for this! I was unable to get comments but everything else went well! I am very happy that I get to say “I use Rust btw” now :D

Kyle

Uploaded to crates.io, fixed some spacing, shows the subreddit now as well as upvotes. I couldn’t see a way to grab the comments so didn’t do that :/ Ready to ship now!

Attachment
0
Kyle

Added scrolling through the subreddit with j/k and moved the title of the post to a different box. Will show comments soon if possible. Also, I used clap to take an optional arg of the subreddit to browse (default for no value is, of course, r/rust)

Attachment
Attachment
1

Comments

sakshisuman25
sakshisuman25 8 days ago

good

Kyle

I GOT THE REDDIT API WORKING AND IT DISPLAYs THE POSTS NOW :YAY:

Attachment
1

Comments

sakshisuman25
sakshisuman25 8 days ago

nice

Kyle

I learned about layouts and made this layout :D Still not sure about getting text input tho… will do that soon.

Attachment
0
Kyle

I set up the basic loop of the program with ratatui (this is my first time using it) and it now reads input and:

  • if ‘q’ is pressed, quits
  • if ‘r’ is pressed, rickroll
  • if any other key is pressed, display ‘REDDITUI’

Next I’m going to figure out how to ask the user what subreddit to view.

0