This chapter covers
- Application design of an example Web3 music service named "Code Radio".
- Using Javascript as a replacement for centralized cloud compute
- Programming foundations of a Web3 application using Javascript
- Handling music playback using Javascript and the HTML Audio API
This chapter details the application architecture of an example application; a Web3 music streaming service named Code Radio. Code Radio is a Web3 system designed to take advantage of the benefits of running peer-to-peer, but does not include a blockchain or digital tokens. Code Radio is an example of a Web3 application that is designed to be accessed without payment, similar to a majority of internet services today.
Additionally, this chapter introduces the Javascript programming that underpins the Code Radio Web3 application, including accessing the HTML Audio API for music playback.
Whether it is a single page or a complex multi-layered application, if a system needs to display dynamic content in a browser, it is very likely that it relies on Javascript to handle this processing. Because of the ubiquity Javascript has earned as a default programming language for Web, I’ve chosen it for the programming of Code Radio and as a showcase for the construction of applications for Web3.