Hacker Newsnew | past | comments | ask | show | jobs | submit | orizens's commentslogin

added a more robust and better event listeners handling - which prevent leaking completely.


i'm familiar with mitril - however i explored my own way to approach a library.


- i'm the main developer for this now.

- few features were fun to think about - there were some challenges in making it work recursively for the template parsing.

- thinking of a simple api to use for the component also, making sure there are no memory leaks requires deep testing. - making auto render and connecting the store was a nice challenge

currently, i don't have a long term vision for it.

however, i do think of it of way to bootstrap small quick widgets in a page while sharing one or more stores. the aim is reusing the way i can create standalone dom elements fast and easy while using only es-latest code.


1. '@click' is replaced with a valid 'data-af-click' attribubte.

2. click was a poc - all events are added.

3. 'clean' is using "node.remove" ad removes any references to functions - so - no detached references are left then.

4. correct - not taken into consideration at the moment.

5. agree.

6. innerHTML is a valid assignment - the browser validates it.

7. to be discussed


I think you're being somewhat defensive of what appears to be a prototype, just offering the feedback you requested.

1. What I mean is that <span>@code</span> becomes <span>data-af-click</span>.

2. Where? Not seeing them.

3. You're mistaken about event handler cleanup: https://dom.spec.whatwg.org/#dom-childnode-remove

6. My point here is that relying on strings is brittle. HTML builders, declarative APIs like JSX/React.createElement, and template-based approaches (where the template is a DOM node) are more robust.


This is probably obvious, but just in case : for point 4 this is DOM-based XSS protection that is missing.


Search while you play, Always have a now playlist, No ads (although this is a side effect of the implementation) Different results display

Above all, it's an open source project that is also used to experiment and study


hi @tra3 currently, Echoes doesn't support playing a video from where it was recently paused. if more users request it - i'll add it.


That would be fantastic. Youtube API provides this information so it's definitely possible.


thanks. currently, benefits of sign-in is: load your youtube user playlists and play them. save a playlist is a work in progress


hi. you should use http for now:

http://orizens.github.io/echoes-ng2


If you want to play playlists from your youtube account - then - yes. Otherwise - g+ is not required.


Hm, since usage of playlists is available now through Google Account login and with G+ removed, is this somehow different in their API for 3rd party apps ?


G+ is Google Account. I'll change the sign-in button to display "Google Sign-in" so it won't confuse. thanks for the feedback.


I like the way you're responding and quickly putting action items into the pipeline.


Thanks


hi @Thomas_9. I'm using youtube's data api and player's api without any hacks. I actually following the api's rules and available api.


If it is basically youtube but you just remove ads, I tend to think they will react. But I admit this is a feeling more than a sure fact. I can't remember the name of the app that worked on top of a Google Api that was stopped in few hours...


I don't remove any ads - only static ads are displayed - no video "trailers" though.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: