GNU/Linux xterm-256color bash 437 views

We use the Rye console to load the Hacker News webpage and display news relevant to our interests, defined in a block.

The webpage is fetched with the Surf library , which mimics a web browser and can do more than simple HTTP requests. https://github.com/headzoo/surf

We then build a request to the OpenAI API using the HN content, our interests, and a question, retrieving and printing the response in a streaming fashion.


What can you play with? You can play with using Rye console and interactively use Surf, OpenAI and many other modules that Rye already has integrated.

I play trying to bridge the gap between a programming language, console / REPL and a (composable / programmable) user interface. You can see other similar experiments here. This is still far of, but I see the potential:


The demo also shows latest improvements to Rye console, like automatic multi-line entry mode for un-closed blocks and strings.

This Rye binary was compiled with ./buildai script in main repo folder, which activates “openai” and “surf” of the “contrib” modules. If you have Go installed, download the repository and run ./buildai . Then run bin/rye.

OpenAI and Surf will become included by default into Rye binary with next releases.

You can get latest released binaries and link to github repository on: https://ryelang.org