ibowankenobi's comments

ibowankenobi | 5 months ago | on: Element: setHTML() method

People have trransformed their brain because of using frameworks and do not understand how DOM works.

I pasted A LIVE example to prove you wrong and you will still attach me whatwg link. YES , when you append it is emptied! Keep a reference to the same fragment and REAPPEND to it! REUSE it. If you want to empty without appending, call replaceChildren() since it inherits from Node.

Why are people stubborn on things they dont know????

ibowankenobi | 5 months ago

For bioinformaticians who like to combine realtime data feed via websockets + server-sent events with LLMs. Comes with samtools, htslib, bcftools and blast.

You can remove/change the files under routes folder to actually use it as a batteries included, no-build webserver that quite capable. Routes take the form

async function({express, app, info, files, serverSent, ws, memcache: cache}){ ...... })

ws => websockets serverSent => server-sent cache => key/value storage on ram

etc.

ibowankenobi | 5 months ago | on: Element: setHTML() method

The API design could be better. Document fragments are designed to be reused. It should accept an optional fragment key which accepts a document fragment.If not a fragment, throw, if has children, empty contents first.

ibowankenobi | 10 months ago

A framework agnostic component that gives granular control for uploading files, can be paired with a chat component. Supports drag and drop, conversion of large bodies of text to file, setting correct mime types and user initatated abort. Theming can be done via changing single `--bg-color` attribute. Uses Streams API for conversion of large text. Example: https://codepen.io/IbrahimTanyalcin/pen/bNNxyLo

ibowankenobi | 1 year ago | on: VanillaJS LLM response streaming animation

You can use this webcomponent to simulate LLM agent streaming response to client or hook your own logic to really receive chunked data and render it for the client. Supports multi-chat mode and custom parser logic. Includes a rudimentary diffing to make sure only the last node is re-renderend.

ibowankenobi | 2 years ago | on: Cahir

Uses E6 Proxy of a function that can be used both as a tagged template and an instance. Renders DOM elements both imperatively and declaratively.

ibowankenobi | 2 years ago

I wrote this bash script for converting recordings from a cheap security camera to a final .mkv file. It deals with multiple folders, sorting order, bulk processing and uses ffmpeg and mkvmerge under the hood.
page 1