radiobrowser-api-rust icon indicating copy to clipboard operation
radiobrowser-api-rust copied to clipboard

Create simple server-rendered html endpoints/lists/search without Javascript usage

Open davidhedlund opened this issue 6 years ago • 8 comments

I will make sure radio-browser.info is listed the Free Software Directory if you can make it fully compatible with LibreJS.

screenshot from 2018-02-12 15 42 36

davidhedlund avatar Feb 12 '18 14:02 davidhedlund

@segler-alex This is the only issue that I really care about for 100% right now. Nonfree JS is taken serious in the free software community since a few years back. I suggest that you install LibreJS and read the error messages it displays for radio-browser.info.

You said that you are rewriting this project in Rust, this is a golden opportunity to get rid of nonfree JS.

What do you think what I just said?

davidhedlund avatar Feb 19 '18 16:02 davidhedlund

what is non free javascript? i did not know what librejs is. so i looked at the homepage. i tried the firefox extension they offer. it would not install on newest firefox. i still don't know :( could you point me in the right direction?

segler-alex avatar Feb 19 '18 17:02 segler-alex

Please try to install LibreJS from addons.mozilla.org.

https://addons.mozilla.org/en-US/firefox/addon/librejs/ says:

For explanation of the issue, see The JavaScript Trap.

LibreJS in inbuilt in GNU IceCat. IceCat is a freedom focused browser based on Firefox ESR. Please read the IceCat Free Software Directory page that I maintain to understand the differences between Firefox ESR and IceCat and why this project is important.

davidhedlund avatar Feb 19 '18 17:02 davidhedlund

@segler-alex The official web page for LibreJS mentions this:

Releasing Your JavaScript as Free Software

If you administer a website, please read instructions on how to set your JavaScript free so that it respects your users' freedom. This is also documented in this section of the LibreJS manual.

davidhedlund avatar Feb 22 '18 19:02 davidhedlund

I strongly recommend that you don't use any JS at all to list the radio stations at all to make the site compatible with text base radio browsers, and that you use free JS for the media player that's inbuilt in radio-browser.info.

davidhedlund avatar Mar 21 '18 11:03 davidhedlund

it is not possible to not use JS. i split the program in to parts:

  • the server part: only give a public API who anybody can use
  • a client part: html+js that does check the public API

you need at least some kind of program that does check the API, and JS can do that. i do not want to go back to that bad PHP all in one solution, that did not nead JS but also was a mess and hard to manage.

segler-alex avatar Mar 21 '18 18:03 segler-alex

@segler-alex Please have a look at this issue again.

it is not possible to not use JS. i split the program in to parts:

* the server part: only give a public API who anybody can use

* a client part: html+js that does check the public API

you need at least some kind of program that does check the API, and JS can do that. i do not want to go back to that bad PHP all in one solution, that did not nead JS but also was a mess and hard to manage.

Then it is possible to do without JS but not convenient with PHP. I thought you were going to rewrite the site in Rust, is it convenient enough to solve this issue?

davidhedlund avatar Jan 28 '20 00:01 davidhedlund

Thanks for the merge and title change.

davidhedlund avatar Aug 08 '20 11:08 davidhedlund