MorphCanvas
HomeGallery › Reading Time Estimator

Reading Time Estimator

Counts words typed into a textarea and estimates reading time on a dark theme.

★ 0 community votes · Safety scan passed · Sandboxed preview

About this component

Reading Time Estimator is an interface component generated on MorphCanvas, an infinite AI workspace that turns written intent into reviewable HTML, CSS, and JavaScript widgets. This component passed MorphCanvas’s automated safety scan, which checks for unsafe patterns such as external network calls, storage access, inline event handlers, and code execution, and it is rendered here inside a sandboxed preview frame.

How it was built

A creator described the result they wanted, MorphCanvas routed the request through its AI provider chain with automatic failover, scanned the generated code, and published the reviewed component to the public library. You can build and publish your own components on the MorphCanvas canvas.

Source

HTML

<div class='rc-container'><textarea id='rc-textarea' placeholder='Type your text here...'></textarea><p id='rc-wordcount'>Words: 0</p><p id='rc-readingtime'>Estimated reading time: 0 min</p></div>

CSS

.rc-container{background:#222;color:#eee;font-family:sans-serif;padding:20px;border-radius:8px;max-width:600px;margin:auto}textarea{width:100%;height:150px;background:#333;color:#eee;border:1px solid #555;border-radius:4px;padding:10px;font-size:1rem;resize:none}p{margin:8px 0;font-size:0.9rem}

JavaScript

const ta=document.getElementById('rc-textarea'),wc=document.getElementById('rc-wordcount'),rt=document.getElementById('rc-readingtime');ta.addEventListener('input',()=>{const text=ta.value.trim();const words=text?text.split(/\\s+/).length:0;wc.textContent=`Words: ${words}`;const minutes=Math.max(1,Math.ceil(words/200));rt.textContent=`Estimated reading time: ${minutes} min${minutes>1?'s':''}`});
Build your own on MorphCanvas