Activity

Kyle

Shipped this project!

Hours: 1.56
Cookies: 🍪 16
Multiplier: 10.39 cookies/hr

Flavortown Reader is a TUI to read Flavortown Devlogs!
It’s written in Rust with Ratatui. Scroll with j/k and quit with ‘q’.

BYO API Key from the Flavortown settings page.

Kyle

Final touches done!

  • Updated the headers.
  • Used Claude for some help with parsing the markdown because tui-markdown’s defaults were annoying
  • Added a border to the devlog text

SHIP TIME

Attachment
0
Kyle

I spent a while trying to do the title but then realised the ID returned by the api is not a project id. I don’t think it’s possible to get the project details unless I’m missing something, so I’ll just leave it without it. I did some styling though :yay:

Next up:

  • make text wrap
  • check any unfinished to dos
  • ship???
Attachment
Attachment
0
Kyle

Set up the basic tui and loop:

  • scroll through logs with j / k
  • quit with q
  • shows project id (hopefully next it will also show project title and maybe author
  • shows devlog

Next:

  • as i said, show the project title and author if possible
  • make it look nicer (make title bold / big, add borders to sections, add colors etc)
Attachment
0
Kyle

I got the basic api call working, so I can get started on making the tui with ratatui now! So far it just prints out the first devlog returned by the api.

To Dos:

  • Build the TUI
  • Display the project name and ID as a title
  • Display the user?
  • Get rid of that warning in the screenshot
Attachment
0
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 about 1 month ago

good

Kyle

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

Attachment
1

Comments

sakshisuman25
sakshisuman25 about 1 month 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
Kyle

I added a guestbook using Giscus, which uses a github discussion as the backend so users have to sign in to comment! I also added a custom 404 page, started a nav section and contact page, and set up more styling like the custom font.

Attachment
Attachment
Attachment
Attachment
0
Kyle

I added a blog system with some help from AI that lets me write blog posts in markdown and render them automatically with Astro! I also added some basic styling (catppuccin mocha colors).

Attachment
Attachment
Attachment
0
Kyle

I added better logic (swapping from a switch to a for loop + calling a function to process the input) and used a for true loop to prompt the user over and over until they enter accepted input.

0
Kyle

I got the user input set up, a basic welcome message + option list and a switch to determine what to do for each input, with a default case for unrecognised input. Next I’ll move the code into a different function so I can call it again if the user enters unrecognised input.

Attachment
0
Kyle

Started the complete rewrite, worked on the styling and the header. Also worked on the title and landing area.

Attachment
0
Kyle

So far I’ve created the basic styling, the main page, and a changelog page! I have also got the site running on my domain, at new.codingcorner.dev (hosted on vercel!).

Attachment
Attachment
0