<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: webdev</title>
    <description>The latest articles tagged 'webdev' on DEV Community.</description>
    <link>https://dev.to/t/webdev</link>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tag/webdev"/>
    <language>en</language>
    <item>
      <title>A naive canvas text wrap put punctuation at the start of 3 of 7 lines in one Chinese sample</title>
      <dc:creator>yue xing</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:10:10 +0000</pubDate>
      <link>https://dev.to/token111/a-naive-canvas-text-wrap-put-punctuation-at-the-start-of-3-of-7-lines-in-one-chinese-sample-250h</link>
      <guid>https://dev.to/token111/a-naive-canvas-text-wrap-put-punctuation-at-the-start-of-3-of-7-lines-in-one-chinese-sample-250h</guid>
      <description>&lt;p&gt;If you draw text on a canvas, a common first wrapping function is: measure the line so far, and when the next character no longer fits, start a new line. On plain Chinese it looks fine. On one punctuation-heavy sample it put a closing quote, a closing bracket and an enumeration comma at the start of lines, 3 of the 7 lines at a 200px width. This post is what I learned about why that is wrong, and which characters are not allowed to start a line.&lt;/p&gt;

&lt;p&gt;ImgIng &lt;a href="https://imging.ai/" rel="noopener noreferrer"&gt;https://imging.ai/&lt;/a&gt; has an online image editor whose text layer breaks lines where you press Enter, so where a line ends is up to the person using it. That raises the question of how a program would decide the same thing. The numbers below come from one run on one Apple-silicon Mac, in three desktop browser engines (the code output shown is from the Chromium one), with the system Chinese font (PingFang) at 20px. The text samples are self-made, and the last sentence of the punctuation sample quotes the Book of Songs, a public-domain poem. It is one font, one size and five texts at three widths (200, 280 and 360px), each run once.&lt;/p&gt;

&lt;h2&gt;
  
  
  The naive wrap
&lt;/h2&gt;

&lt;p&gt;This is the whole function. It walks the string, measures the current line plus the next character, and breaks when the width goes past the limit.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'canvas'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'2d'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;font&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'20px "PingFang SC", "Hiragino Sans GB", sans-serif'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;wrapNaive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maxW&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ch&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;measureText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;maxW&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;wrapNaive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;T3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;T3&lt;/code&gt; is the 66-character sample: 她问：“这是真的吗？”他答：“当然——千真万确！”（众人笑。）于是，大家都说：好、好、好……《诗经》里也有：“关关雎鸠，在河之洲。” The output at 200px, complete and unedited:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[
 "她问：“这是真的吗？",
 "”他答：“当然——千",
 "真万确！”（众人笑。",
 "）于是，大家都说：好",
 "、好、好……《诗经》",
 "里也有：“关关雎鸠，",
 "在河之洲。”"
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Lines 2, 4 and 5 start with ” and ） and 、. A reader would call that a typesetting mistake, even though every line fits the width.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which characters cannot lead a line
&lt;/h2&gt;

&lt;p&gt;The browser's default layout avoids this, and the idea is simple. Closing punctuation belongs with the word before it, so it should never be pushed to the start of the next line. There is a mirror rule: an opening bracket or opening quote should not be left alone at the end of a line.&lt;/p&gt;

&lt;p&gt;The table I used for this run is my own, not a standard. Not allowed at the start: &lt;code&gt;，。、；：？！）》」』】〉…—～&lt;/code&gt; plus the closing quotes and ASCII equivalents. Not allowed at the end: &lt;code&gt;（《「『【〈“‘&lt;/code&gt;. It is deliberately stricter than the browser, which matters below.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix, and why it is only mostly right
&lt;/h2&gt;

&lt;p&gt;The fix has two parts. First split the text into tokens, where an English word or number string stays together and each Chinese or Japanese character is its own token. Then break greedily as before, but when a line would start with a forbidden character, pull the last token of the previous line down with it. Opening brackets get the same treatment in the other direction.&lt;/p&gt;

&lt;p&gt;Against the browser's own layout for the same font and width, this version produced identical lines in 11 of the 15 cases in Chromium and WebKit, and in 7 of 15 in Firefox. The naive loop matched in only 2 of 15. A row count can look right while the breaks are wrong: on the punctuation-heavy sample at 200px the naive loop and the browser both give 7 rows, yet the lines are different.&lt;/p&gt;

&lt;p&gt;One gap stands out: on this same sample at 200px, the token version used 8 lines and the browser used 7. One reason is visible in the lines. My table also forbids the em dash at a line start, and the browser's default does not, so it let &lt;code&gt;——&lt;/code&gt; start line 3. Whether anything else adds to the gap was not chased here. On both sides, &lt;code&gt;吗？”&lt;/code&gt; moved down together as a block of three.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;line-break: loose&lt;/code&gt; goes further than the default and also lets &lt;code&gt;？&lt;/code&gt; and &lt;code&gt;：&lt;/code&gt; start a line. That reading needs the page or element to carry a Chinese or Japanese &lt;code&gt;lang&lt;/code&gt;; without one, loose matched the default line for line in Chromium. On the Japanese side, the long-vowel mark &lt;code&gt;ー&lt;/code&gt; may start a line by default in Chromium and WebKit, and &lt;code&gt;strict&lt;/code&gt; forbids it. Firefox does not allow it even by default.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do on a canvas
&lt;/h2&gt;

&lt;p&gt;For a canvas, a character loop is not enough once the text has closing punctuation. Tokenize, add the two prohibition rules, and compare against a DOM block of the same width, because the browser is the reference your readers are used to. Keep the table in one place, since "which characters are forbidden" is a decision, not a fact. And do not copy breaks from one browser engine to another: Firefox's Latin letters came out about 2% wider in the same font stack, so mixed text can break differently.&lt;/p&gt;

&lt;p&gt;This run did not test other fonts, Windows or phones, vertical text, or right-to-left scripts. The Firefox and WebKit numbers are one run each and say nothing about Safari or other versions.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Building a Node.js Roblox Thumbnail Viewer and Measuring 553 Live Explore Chart Games</title>
      <dc:creator>Xuxuan Zhou</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:10:01 +0000</pubDate>
      <link>https://dev.to/xxzhou/building-a-nodejs-roblox-thumbnail-viewer-and-measuring-553-live-explore-chart-games-54oa</link>
      <guid>https://dev.to/xxzhou/building-a-nodejs-roblox-thumbnail-viewer-and-measuring-553-live-explore-chart-games-54oa</guid>
      <description>&lt;p&gt;When I started building &lt;a href="https://rblxthumbs.com/" rel="noopener noreferrer"&gt;RblxThumbs&lt;/a&gt;, a thumbnail and icon generator for Roblox creators, I kept running into the same folklore in developer Discord servers: "warm colors always convert better," "always crank brightness," "never put details on the bottom edge." Nobody had actual numbers attached to those rules.&lt;/p&gt;

&lt;p&gt;So on December 2, 2026, I wrote a Node.js CLI and batch script using &lt;code&gt;sharp&lt;/code&gt; to pull 553 live games across 10 public Roblox Explore sorts and inspect their primary thumbnails at actual mobile card scale (&lt;code&gt;160x90&lt;/code&gt;). I open-sourced both the single-game inspector CLI and the full JSON summary in &lt;a href="https://github.com/lumian2015/roblox-thumbnail-viewer" rel="noopener noreferrer"&gt;lumian2015/roblox-thumbnail-viewer&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here is how the data pipeline works, the Roblox API quirks that broke my first two runs, and what the pixel numbers actually showed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pulling Roblox thumbnails without an API key
&lt;/h2&gt;

&lt;p&gt;Roblox exposes public endpoints for Explore charts, universe metadata, and CDN thumbnails. If you only want to inspect a single game from a URL like &lt;code&gt;https://www.roblox.com/games/920587237/Adopt-Me&lt;/code&gt;, the chain is three HTTP GET requests:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Convert &lt;code&gt;placeId&lt;/code&gt; to &lt;code&gt;universeId&lt;/code&gt; via &lt;code&gt;apis.roblox.com/universes/v1/places/{placeId}/universe&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Pull active thumbnail media IDs and concurrent player count from &lt;code&gt;games.roblox.com/v1/games&lt;/code&gt; and &lt;code&gt;thumbnails.roblox.com/v1/games/multiget/thumbnails&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fetch the 512x512 square icon from &lt;code&gt;thumbnails.roblox.com/v1/games/icons&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Pulling one game takes under a second. Pulling 553 games across 10 Explore charts (&lt;code&gt;top-trending&lt;/code&gt;, &lt;code&gt;up-and-coming&lt;/code&gt;, &lt;code&gt;top-playing-now&lt;/code&gt;, &lt;code&gt;top-earning&lt;/code&gt;, &lt;code&gt;top-rated&lt;/code&gt;, &lt;code&gt;most-popular&lt;/code&gt;, &lt;code&gt;fun-with-friends&lt;/code&gt;, &lt;code&gt;top-revisited&lt;/code&gt;, &lt;code&gt;top-paid-access&lt;/code&gt;, and &lt;code&gt;trending-music-experiences&lt;/code&gt;) immediately ran into two undocumented limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Passing 100 universe IDs to &lt;code&gt;games.roblox.com/v1/games&lt;/code&gt; returned &lt;code&gt;HTTP 400&lt;/code&gt;. Dropping the batch size to 50 fixed it.&lt;/li&gt;
&lt;li&gt;Spacing requests 250ms apart triggered &lt;code&gt;HTTP 429&lt;/code&gt; twice before I even finished the third chart. Slowing batches to 2.2 seconds with exponential backoff on &lt;code&gt;429&lt;/code&gt; let all 553 games download with zero failed images.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why 160x90 raw RGB math beats guessing at 1920x1080
&lt;/h2&gt;

&lt;p&gt;Most creators judge their thumbnails full-screen in Blender or Photoshop at 1920x1080. Players almost never see them that large. On mobile Discover feeds, a 16:9 card shrinks down near 160px wide, and fine shading turns to mud.&lt;/p&gt;

&lt;p&gt;Instead of wiring up an ML vision model, I downscaled every &lt;code&gt;768x432&lt;/code&gt; Roblox CDN image to &lt;code&gt;160x90&lt;/code&gt; in &lt;code&gt;sharp&lt;/code&gt; and read the raw 3-channel RGB buffer directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;info&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;sharp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;imageBuffer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;160&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;fit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"fill"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeAlpha&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBuffer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;resolveWithObject&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From that flat &lt;code&gt;Uint8Array&lt;/code&gt; (43,200 bytes per image), a single pass computes seven metrics in a couple of milliseconds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Brightness&lt;/strong&gt;: mean Rec.709 luminance (&lt;code&gt;0.2126*R + 0.7152*G + 0.0722*B&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RMS Contrast&lt;/strong&gt;: standard deviation of pixel luminance across the 160x90 grid.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Saturation&lt;/strong&gt;: mean HSV saturation (&lt;code&gt;(max - min) / max&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Color Temperature&lt;/strong&gt;: share of saturated pixels (&lt;code&gt;S &amp;gt;= 0.25&lt;/code&gt;, &lt;code&gt;V &amp;gt;= 0.15&lt;/code&gt;) falling in warm hues (&lt;code&gt;0..70&lt;/code&gt; and &lt;code&gt;330..360&lt;/code&gt; deg) vs cool hues (&lt;code&gt;150..270&lt;/code&gt; deg).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Center Focus&lt;/strong&gt;: mean horizontal and vertical gradient magnitude inside the center 50% rectangle divided by the outer ring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bottom 18% Clutter&lt;/strong&gt;: edge magnitude in the bottom 18% strip divided by the rest of the frame, where Roblox places titles and UI overlays.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Border Brightness&lt;/strong&gt;: mean luminance along the outer 6px perimeter, which determines whether a thumbnail pops or melts into Roblox's dark-mode background.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Running &lt;code&gt;node scripts/inspect-game.mjs https://www.roblox.com/games/920587237/Adopt-Me&lt;/code&gt; on Adopt Me! (&lt;code&gt;630,922&lt;/code&gt; playing during my test run) returned 5 active thumbnails and printed each one against the 553-game P25-P75 ranges. Its primary thumbnail sat at 58.1% brightness, 29.2 RMS contrast, 1.33x center focus, and 43.6% border brightness.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the 553-game snapshot actually showed
&lt;/h2&gt;

&lt;p&gt;Some of the usual Roblox advice held up. A few common claims fell apart once I split the data by genre.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Single-thumbnail games are now a small minority
&lt;/h3&gt;

&lt;p&gt;Across all 553 charted games, &lt;strong&gt;90.8%&lt;/strong&gt; had 2 or more active thumbnails live at once, averaging &lt;strong&gt;3.93&lt;/strong&gt; per game. In the Top 100 by concurrent players (median &lt;code&gt;22,411&lt;/code&gt; CCU), &lt;strong&gt;94.0%&lt;/strong&gt; ran multiple thumbnails with an average of &lt;strong&gt;4.14&lt;/strong&gt;. Top Earning was even higher at &lt;strong&gt;96.8%&lt;/strong&gt; (average &lt;code&gt;4.29&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;If you upload one screenshot and move on, you are giving Roblox's Thumbnail Personalization system nothing to rotate while nearly every charting competitor gives it 3 to 5 options.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. "Warm colors win" breaks down in Tycoon and Simulation
&lt;/h3&gt;

&lt;p&gt;Overall, warm-leaning thumbnails outnumbered cool ones (&lt;code&gt;47.4%&lt;/code&gt; warm, &lt;code&gt;38.0%&lt;/code&gt; cool, &lt;code&gt;14.6%&lt;/code&gt; balanced). Once I grouped by genre, the biggest category in the dataset flipped completely:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Genre (n)&lt;/th&gt;
&lt;th&gt;Median Brightness&lt;/th&gt;
&lt;th&gt;Median Saturation&lt;/th&gt;
&lt;th&gt;Warm / Cool Share&lt;/th&gt;
&lt;th&gt;Center Focus&lt;/th&gt;
&lt;th&gt;2+ Thumbs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Top 100 CCU (100)&lt;/td&gt;
&lt;td&gt;48.8%&lt;/td&gt;
&lt;td&gt;51.1%&lt;/td&gt;
&lt;td&gt;45.0% / 39.0%&lt;/td&gt;
&lt;td&gt;1.3x&lt;/td&gt;
&lt;td&gt;94.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mid-Tier Charted (453)&lt;/td&gt;
&lt;td&gt;44.9%&lt;/td&gt;
&lt;td&gt;46.6%&lt;/td&gt;
&lt;td&gt;47.9% / 37.7%&lt;/td&gt;
&lt;td&gt;1.3x&lt;/td&gt;
&lt;td&gt;90.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tycoon &amp;amp; Sim (212)&lt;/td&gt;
&lt;td&gt;52.0%&lt;/td&gt;
&lt;td&gt;50.5%&lt;/td&gt;
&lt;td&gt;37.7% / 48.1%&lt;/td&gt;
&lt;td&gt;1.3x&lt;/td&gt;
&lt;td&gt;94.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Action &amp;amp; Battlegrounds (96)&lt;/td&gt;
&lt;td&gt;37.0%&lt;/td&gt;
&lt;td&gt;40.2%&lt;/td&gt;
&lt;td&gt;60.4% / 25.0%&lt;/td&gt;
&lt;td&gt;1.3x&lt;/td&gt;
&lt;td&gt;85.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Horror &amp;amp; Survival (57)&lt;/td&gt;
&lt;td&gt;28.4%&lt;/td&gt;
&lt;td&gt;47.1%&lt;/td&gt;
&lt;td&gt;63.2% / 21.1%&lt;/td&gt;
&lt;td&gt;1.5x&lt;/td&gt;
&lt;td&gt;89.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Obby &amp;amp; Platformer (25)&lt;/td&gt;
&lt;td&gt;48.2%&lt;/td&gt;
&lt;td&gt;51.8%&lt;/td&gt;
&lt;td&gt;48.0% / 40.0%&lt;/td&gt;
&lt;td&gt;1.2x&lt;/td&gt;
&lt;td&gt;96.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RPG &amp;amp; Adventure (55)&lt;/td&gt;
&lt;td&gt;36.8%&lt;/td&gt;
&lt;td&gt;46.5%&lt;/td&gt;
&lt;td&gt;41.8% / 43.6%&lt;/td&gt;
&lt;td&gt;1.1x&lt;/td&gt;
&lt;td&gt;90.9%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Tycoon &amp;amp; Simulation (&lt;code&gt;n=212&lt;/code&gt;) leaned cool (&lt;code&gt;48.1%&lt;/code&gt; cool vs &lt;code&gt;37.7%&lt;/code&gt; warm) with bright daylight skies (&lt;code&gt;52.0%&lt;/code&gt; median brightness, &lt;code&gt;52.5%&lt;/code&gt; border brightness). Top Trending (&lt;code&gt;n=94&lt;/code&gt;) also tilted slightly cool (&lt;code&gt;42.6%&lt;/code&gt; vs &lt;code&gt;41.5%&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Horror &amp;amp; Survival (&lt;code&gt;n=57&lt;/code&gt;) behaved like a separate visual ecosystem: median brightness fell to &lt;code&gt;28.4%&lt;/code&gt;, border brightness dropped to &lt;code&gt;22.6%&lt;/code&gt;, yet warm share jumped to &lt;code&gt;63.2%&lt;/code&gt;. Because our hue counter ignores near-black shadows, the remaining saturated pixels in horror art are mostly red danger lighting, fire, or warm flashlight beams centered tightly in the frame (&lt;code&gt;1.5x&lt;/code&gt; center focus, highest of any bucket).&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Top 100 games separate from the dark-mode feed
&lt;/h3&gt;

&lt;p&gt;Comparing the Top 100 CCU experiences (&lt;code&gt;22,411&lt;/code&gt; median CCU) against the other 453 charted games (&lt;code&gt;1,172&lt;/code&gt; median CCU), the biggest numeric gaps were saturation (&lt;code&gt;51.1%&lt;/code&gt; vs &lt;code&gt;46.6%&lt;/code&gt;), overall brightness (&lt;code&gt;48.8%&lt;/code&gt; vs &lt;code&gt;44.9%&lt;/code&gt;), and outer border brightness (&lt;code&gt;48.7%&lt;/code&gt; vs &lt;code&gt;43.9%&lt;/code&gt;). That border gap makes sense in practice: if the outer 6 pixels of your art sit near charcoal grey, your card loses its silhouette on Roblox's dark-mode grid.&lt;/p&gt;

&lt;p&gt;The one piece of classic advice that held across every single genre was keeping the bottom strip clean. Median bottom-18% edge density stayed at &lt;code&gt;0.8x&lt;/code&gt; to &lt;code&gt;0.9x&lt;/code&gt; across the board, meaning top studios leave the bottom band calmer so badges and UI overlays do not collide with the main character.&lt;/p&gt;

&lt;h2&gt;
  
  
  Browser version and open-source CLI
&lt;/h2&gt;

&lt;p&gt;If you want to run the scripts locally or slice the raw &lt;code&gt;summary-2026-12-02.json&lt;/code&gt; yourself, grab the MIT-licensed repo here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CLI &amp;amp; benchmark JSON: &lt;a href="https://github.com/lumian2015/roblox-thumbnail-viewer" rel="noopener noreferrer"&gt;https://github.com/lumian2015/roblox-thumbnail-viewer&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also ported the exact same 160x90 pixel logic to an in-browser Canvas tool (no signup, images stay local in your browser unless you create a shareable blind A/B poll link for your Discord):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Free browser &lt;a href="https://rblxthumbs.com/tools/roblox-thumbnail-viewer" rel="noopener noreferrer"&gt;Roblox thumbnail viewer&lt;/a&gt; (also works as a 512x512 Roblox icon tester in dark and light feeds)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One caveat before treating any of these numbers as law: Roblox does not expose public Home Recommendations QPTR. This dataset measures games already ranking on Explore charts, not direct click-through rates. Still, checking your art at 160x90 against real genre medians beats squinting at a 1080p render and hoping for the best.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I am the creator of &lt;a href="https://rblxthumbs.com/" rel="noopener noreferrer"&gt;RblxThumbs&lt;/a&gt;. The CLI repo and the browser thumbnail viewer are both completely free to use.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>gamedev</category>
      <category>node</category>
      <category>roblox</category>
    </item>
    <item>
      <title>What is llms.txt, and does your website need one? (with a template)</title>
      <dc:creator>Aagazo</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:08:27 +0000</pubDate>
      <link>https://dev.to/aagazo/what-is-llmstxt-and-does-your-website-need-one-with-a-template-pmd</link>
      <guid>https://dev.to/aagazo/what-is-llmstxt-and-does-your-website-need-one-with-a-template-pmd</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; llms.txt is a proposed plain-text file at &lt;code&gt;yoursite.com/llms.txt&lt;/code&gt; that summarises your site and points AI tools to your key pages. No major AI assistant has confirmed it changes their answers. It takes ten minutes, so it's worth adding. What matters more is that your &lt;code&gt;robots.txt&lt;/code&gt; doesn't accidentally block the crawlers AI assistants use to read your site.&lt;/p&gt;

&lt;h2&gt;
  
  
  What llms.txt is
&lt;/h2&gt;

&lt;p&gt;The format was proposed in 2024 so sites could give AI tools a short, clean summary instead of making them parse menus, pop-ups and scripts. It's plain Markdown: a title, a one-paragraph summary, then lists of important links.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it can and can't do
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;It can&lt;/th&gt;
&lt;th&gt;It can't&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;State your brand facts plainly, in one place&lt;/td&gt;
&lt;td&gt;Make an AI assistant recommend you&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Point AI tools to your best pages&lt;/td&gt;
&lt;td&gt;Replace good product pages and listings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Signal that you welcome AI readers&lt;/td&gt;
&lt;td&gt;Override what other sites say about you&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  First, check robots.txt (this matters more)
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;yoursite.com/robots.txt&lt;/code&gt; and make sure you aren't blocking the crawlers AI assistants use when they search the web. A brand that wants to be recommended would typically allow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;OAI&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;SearchBot&lt;/span&gt;
&lt;span class="nc"&gt;Allow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;

&lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ChatGPT&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;User&lt;/span&gt;
&lt;span class="nc"&gt;Allow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;

&lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;PerplexityBot&lt;/span&gt;
&lt;span class="nc"&gt;Allow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;

&lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Claude&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;SearchBot&lt;/span&gt;
&lt;span class="nc"&gt;Allow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;

&lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Googlebot&lt;/span&gt;
&lt;span class="nc"&gt;Allow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Some security tools and CDN settings block "AI bots" by default. If you use Cloudflare or a similar service, check its bot settings too.&lt;/p&gt;

&lt;h2&gt;
  
  
  A template for an online brand
&lt;/h2&gt;

&lt;p&gt;Here's an example for a made-up Indian skincare brand, "Glowlane". Replace everything with your own facts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Glowlane
&lt;/span&gt;
&lt;span class="ge"&gt;&amp;gt; Glowlane is an Indian skincare brand making lightweight gel sunscreens for
&amp;gt; oily and acne-prone skin in humid weather. Products are sold on yourbrand.in,
&amp;gt; Amazon.in, Flipkart and Nykaa. Prices from ₹349 to ₹599.
&lt;/span&gt;
&lt;span class="gu"&gt;## Products
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;[Gel Sunscreen SPF 50 PA++++ (50 ml, ₹449)](https://yourbrand.in/products/gel-spf50): no white cast, matte finish
&lt;span class="k"&gt;- &lt;/span&gt;[Tinted Fluid SPF 50 (40 ml, ₹599)](https://yourbrand.in/products/tinted-spf50)

&lt;span class="gu"&gt;## Proof
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;[Third-party SPF test report, Oct 2026](https://yourbrand.in/lab-reports/spf50.pdf)

&lt;span class="gu"&gt;## Guides
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;[Best sunscreen for oily skin in humid weather](https://yourbrand.in/guides/oily-skin-sunscreen)

&lt;span class="gu"&gt;## Contact
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;care@yourbrand.in
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep yours factual and current, and only list claims you can prove.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to put it
&lt;/h2&gt;

&lt;p&gt;Save it as &lt;code&gt;llms.txt&lt;/code&gt; in the root of your site, so it opens at &lt;code&gt;yoursite.com/llms.txt&lt;/code&gt;. On Shopify or similar platforms you may need an app or a redirect to serve a root-level file. A static site can simply add it to the public folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real example
&lt;/h2&gt;

&lt;p&gt;You can see ours at &lt;a href="https://aagazo.com/llms.txt" rel="noopener noreferrer"&gt;aagazo.com/llms.txt&lt;/a&gt;, and a longer version listing every guide at &lt;a href="https://aagazo.com/llms-full.txt" rel="noopener noreferrer"&gt;aagazo.com/llms-full.txt&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I work on &lt;a href="https://aagazo.com/?utm_source=devto&amp;amp;utm_medium=article" rel="noopener noreferrer"&gt;Aagazo&lt;/a&gt;, which tracks what ChatGPT, Gemini and Google AI recommend when Indians ask what to buy, in English, Hindi and Hinglish. This post first appeared on &lt;a href="https://aagazo.com/guides/llms-txt" rel="noopener noreferrer"&gt;aagazo.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>ai</category>
      <category>webdev</category>
      <category>ecommerce</category>
    </item>
    <item>
      <title>Wrapping poster text by code unit left no broken surrogates. It still split an emoji in half</title>
      <dc:creator>AsyncMonk</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:08:15 +0000</pubDate>
      <link>https://dev.to/shu_jing_915fa287b22539ad/wrapping-poster-text-by-code-unit-left-no-broken-surrogates-it-still-split-an-emoji-in-half-2aak</link>
      <guid>https://dev.to/shu_jing_915fa287b22539ad/wrapping-poster-text-by-code-unit-left-no-broken-surrogates-it-still-split-an-emoji-in-half-2aak</guid>
      <description>&lt;p&gt;If your product lets people type their own text onto a poster, someone can type an emoji. &lt;code&gt;string.length&lt;/code&gt; answers one question, how many UTF-16 code units are in the string, and a person looking at the poster is asking something else.&lt;/p&gt;

&lt;p&gt;This note checks how bad the damage is when you wrap text on a canvas the simple way: add one code unit at a time, measure, break when the line gets too wide. The usual worry is lone surrogates, half an emoji that renders as a question mark box. The run below showed something else.&lt;/p&gt;

&lt;h2&gt;
  
  
  One short string, three different counts
&lt;/h2&gt;

&lt;p&gt;The test string is &lt;code&gt;全家出动👨‍👩‍👧‍👦去市集🇯🇵&lt;/code&gt;, a made-up caption with a family emoji and a flag in it. The sample is self-made, and the numbers come from one string, one system font (a system sans, 20px), one Apple-silicon Mac, one run each in three browser engines. The counts and the three lines matched in all three.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'全家出动👨‍👩‍👧‍👦去市集🇯🇵'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;seg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Intl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Segmenter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'zh'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;granularity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'grapheme'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;graphemes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;seg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;segment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;segment&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;byUnit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;measureText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;110&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;byUnit&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;byUnit&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;codePoints&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;graphemes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;graphemes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;familyUnits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'👨‍👩‍👧‍👦'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;byUnit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wellFormed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;byUnit&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isWellFormed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The snippet prints one object, and the table below lists every field it printed, none dropped. It assumes a canvas context &lt;code&gt;ctx&lt;/code&gt; with the 20px font already set.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What I asked&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;length&lt;/code&gt; (code units)&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code points (&lt;code&gt;[...s].length&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Graphemes (what a reader sees as one character)&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code units in the family emoji alone&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lines when wrapping by code unit at 110px&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;全家出动👨‍&lt;/code&gt; / &lt;code&gt;👩‍👧‍👦去市集🇯&lt;/code&gt; / &lt;code&gt;🇵&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Any line with a lone surrogate (&lt;code&gt;isWellFormed()&lt;/code&gt; false)&lt;/td&gt;
&lt;td&gt;none of the three&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nine things on the screen, sixteen code points, twenty-two units. That gap is the whole story, and it shows up in a caption this short.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it breaks
&lt;/h2&gt;

&lt;p&gt;The worst case people expect did not show up. The loop walks code units, yet in this run every break landed between two complete characters, never inside a surrogate pair. All three lines passed &lt;code&gt;isWellFormed()&lt;/code&gt;. If you only test for broken surrogates, this approach looks fine.&lt;/p&gt;

&lt;p&gt;It is not fine. The family emoji is four people glued together with zero-width joiners, and the first line ends after the first person and a joiner. The second line starts with the other three. The flag is two regional indicator letters, and the line break fell between them, so the last line is a lone &lt;code&gt;🇵&lt;/code&gt;. Nothing is corrupt at the string level. It is just wrong for the person who typed it, and it would show on the exported poster.&lt;/p&gt;

&lt;p&gt;This run used one string at one width. Other widths would probably cut in other places, and no search for a width that produces a lone surrogate was done, so "no lone surrogates" is not a guarantee. On five other self-made texts at three widths each, code unit and grapheme wrapping produced identical lines, so the damage only shows when a cut lands inside a sequence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrap on graphemes instead
&lt;/h2&gt;

&lt;p&gt;Paste one family emoji and one flag into your text box and look at where the wrapper cuts. To fix it, wrap on graphemes. &lt;code&gt;Intl.Segmenter&lt;/code&gt; with &lt;code&gt;granularity: 'grapheme'&lt;/code&gt; hands you the nine units above, and you measure and break between those. In the loop above that means iterating the segments instead of &lt;code&gt;s.split('')&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two things this run did not test. First, whether older engines segment newer emoji sequences the same way as the three engines here. Second, whether breaking between graphemes is enough for a poster. It keeps the emoji whole, but it does not stop a closing quote or a full-width comma from starting a line: in the emoji-and-combining-marks sample at 200 px, grapheme wrapping put a comma at the start of a line, and that is a separate rule. The counts above are measured; that grapheme wrapping fixes the split emoji is the reasoning part.&lt;/p&gt;

&lt;p&gt;As background, in the ImgIng online editor, &lt;a href="https://imging.ai/" rel="noopener noreferrer"&gt;https://imging.ai/&lt;/a&gt;, a text layer stays on one line until the author presses Enter, so the line breaks there are the author's decision. That does not help when your users type the text.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to Deploy an AI-Built App to a Live URL (2026 Guide)</title>
      <dc:creator>Mayank rajput</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:07:36 +0000</pubDate>
      <link>https://dev.to/trynocoder/how-to-deploy-an-ai-built-app-to-a-live-url-2026-guide-33fd</link>
      <guid>https://dev.to/trynocoder/how-to-deploy-an-ai-built-app-to-a-live-url-2026-guide-33fd</guid>
      <description>&lt;p&gt;The preview worked. The AI told you it was done. You typed "how do I share this with someone?" and it gave you a localhost URL.&lt;/p&gt;

&lt;p&gt;This is the deployment gap — the most common place where real apps built by AI never reach a real user. Here's how to close it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "preview" actually means
&lt;/h2&gt;

&lt;p&gt;In most AI builders, the preview URL is a &lt;strong&gt;temporary container&lt;/strong&gt; running on the platform's servers. It is not persistent — it dies when you close the tab, when the session expires, or when the platform cleans up inactive sandboxes.&lt;/p&gt;

&lt;p&gt;If you share that URL with a customer, it probably won't work for them, and it will almost certainly stop working by next week.&lt;/p&gt;

&lt;p&gt;A live deployment is a different thing: your code runs on infrastructure that stays up, has a stable domain, and handles real users.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 5-step deployment checklist
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Get the code out
&lt;/h3&gt;

&lt;p&gt;You need the actual codebase to deploy it anywhere. Options by platform:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;How to get the code&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Lovable&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Projects tab → GitHub sync → push to repo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bolt.new&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Download ZIP or connect GitHub&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Replit Agent&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Built-in export / GitHub push&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;NoCoder&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Direct VS Code workspace in browser — download zip or push via built-in terminal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;v0 (Vercel)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Add to Codebase → then deploy from repo&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Get this done before the preview session expires.&lt;/strong&gt; A downloaded ZIP costs nothing to store.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Check for secrets in the frontend
&lt;/h3&gt;

&lt;p&gt;Before deploying, search the entire codebase for any API keys, database passwords, or service credentials that should not be public.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# In your project folder&lt;/span&gt;
grep -r &lt;span class="s2"&gt;"sk-"&lt;/span&gt; . --include=&lt;span class="s2"&gt;"*.ts"&lt;/span&gt; --include=&lt;span class="s2"&gt;"*.tsx"&lt;/span&gt; --include=&lt;span class="s2"&gt;"*.js"&lt;/span&gt;
grep -r &lt;span class="s2"&gt;"supabase"&lt;/span&gt; . --include=&lt;span class="s2"&gt;"*.env"&lt;/span&gt; --include=&lt;span class="s2"&gt;"*.ts"&lt;/span&gt;
grep -ri &lt;span class="s2"&gt;"password\|secret\|apikey\|api_key"&lt;/span&gt; . --include=&lt;span class="s2"&gt;"*.ts"&lt;/span&gt; --include=&lt;span class="s2"&gt;"*.tsx"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any secret in a &lt;code&gt;.env.local&lt;/code&gt; file is fine — it stays server-side. Any secret in a React component or a frontend file is a problem; move it to a backend API route.&lt;/p&gt;

&lt;p&gt;This is not optional. AI tools frequently inline Supabase keys or external API tokens directly in components. If you ship that, your keys are in your browser's source tab.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Set up the database properly
&lt;/h3&gt;

&lt;p&gt;If your app uses a database, the preview was probably pointing to a local SQLite file or a Supabase project without Row Level Security (RLS) locked down.&lt;/p&gt;

&lt;p&gt;Before going live:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Supabase:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enable RLS on every table&lt;/li&gt;
&lt;li&gt;Write actual policies: &lt;code&gt;auth.uid() = user_id&lt;/code&gt; for user-specific data&lt;/li&gt;
&lt;li&gt;Do not leave tables in permissive mode (the green "RLS on" badge does not mean restricted)&lt;/li&gt;
&lt;li&gt;Set up a custom SMTP (Resend or Postmark) so auth emails don't land in spam&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;SQLite (local):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fine for a solo tool, not for multi-user apps&lt;/li&gt;
&lt;li&gt;Migrate to Postgres (Supabase, Neon, Railway Postgres) before sharing with real users&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Deploy the frontend
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Vercel is the simplest path for most AI-built apps (React/Next.js):&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Push code to GitHub (create a repo, &lt;code&gt;git init&lt;/code&gt;, &lt;code&gt;git push&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Go to &lt;a href="https://vercel.com/new" rel="noopener noreferrer"&gt;vercel.com/new&lt;/a&gt; → Import from GitHub&lt;/li&gt;
&lt;li&gt;Set environment variables (copy your &lt;code&gt;.env.local&lt;/code&gt; entries into Vercel's environment settings)&lt;/li&gt;
&lt;li&gt;Click Deploy&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the build fails, copy the &lt;strong&gt;entire error log&lt;/strong&gt; and paste it back to your AI tool: &lt;code&gt;"The Vercel build failed with this error: [paste]. Fix it."&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For apps with a custom backend (Express, FastAPI, etc.):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;a href="https://railway.app" rel="noopener noreferrer"&gt;Railway&lt;/a&gt; for the backend service&lt;/li&gt;
&lt;li&gt;Connect your Postgres DB on Railway in the same project&lt;/li&gt;
&lt;li&gt;Set environment variables to point frontend at the Railway URL, not localhost&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Run the real-user test before sharing
&lt;/h3&gt;

&lt;p&gt;Once deployed, do these 5 checks before you send the link to anyone:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Open in an incognito window (not signed into your account)
2. Try to sign up with a real email → check that the confirmation email arrives in &amp;lt;60 seconds
3. Complete the main user flow as a first-time user (booking, purchase, signup)
4. Try to access /admin or /api/admin from a logged-out browser → should return 401/403
5. Reload the page — does your data persist, or does the app reset?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fail on any of these before you share. Fix before launch, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shortcut: NoCoder's one-click deploy
&lt;/h2&gt;

&lt;p&gt;If you built on NoCoder, the agent includes a &lt;strong&gt;Deploy to Vercel&lt;/strong&gt; button after the preview loads. It runs the same checklist automatically — the agent verifies it passed all HTTP checks before marking the build done.&lt;/p&gt;

&lt;p&gt;The workspace is a real VS Code environment you can download, push to GitHub, or deploy directly. Here are real apps that went from first prompt to live deploy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://nocoder.codes/gallery/tandoor-and-tiffin" rel="noopener noreferrer"&gt;Tandoor &amp;amp; Tiffin food ordering&lt;/a&gt; — deployed, real menu, order flow with persistence&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://nocoder.codes/gallery/sharp-and-co" rel="noopener noreferrer"&gt;Sharp &amp;amp; Co. barber booking&lt;/a&gt; — calendar-based booking, admin view, appointment prevention on double-book&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to try it on your own idea, the first 3 builds are free: &lt;a href="https://nocoder.codes/try?utm_source=blog&amp;amp;utm_medium=content&amp;amp;utm_campaign=deploy-guide" rel="noopener noreferrer"&gt;nocoder.codes/try&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The deploy checklist in one place
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;☐ Code exported from AI platform
☐ Secrets grep — nothing sensitive in frontend files
☐ Database: RLS on and tested; production DB separate from preview
☐ Custom SMTP for auth emails
☐ Deployed to Vercel / Railway (not localhost)
☐ Environment variables set in host platform (not in code)
☐ Incognito test: sign up, main flow, /admin logged out, reload
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save this. You'll need it every launch.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This guide covers self-deployments from AI-built projects. If you used Lovable, Bolt, or Replit Agent, the code you export is standard React/Next.js — the deployment steps are the same as any other Next.js project. The only differences are where your secrets live and whether the AI locked down the database properly.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Spotted a step that doesn't work for your stack? The &lt;a href="https://nocoder.codes/gallery" rel="noopener noreferrer"&gt;NoCoder gallery&lt;/a&gt; shows the full terminal output and agent verification for each built app — including what broke and how it got fixed.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>nextjs</category>
      <category>vercel</category>
    </item>
    <item>
      <title>What We Shipped on CampusLoop This Week: Seasons, a Play Section, and Open Sign-Up</title>
      <dc:creator>Sh Raj</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:07:08 +0000</pubDate>
      <link>https://dev.to/sh20raj/what-we-shipped-on-campusloop-this-week-seasons-a-play-section-and-open-sign-up-3177</link>
      <guid>https://dev.to/sh20raj/what-we-shipped-on-campusloop-this-week-seasons-a-play-section-and-open-sign-up-3177</guid>
      <description>&lt;h1&gt;
  
  
  What We Shipped on CampusLoop This Week: Seasons, a Play Section, and Open Sign-Up
&lt;/h1&gt;

&lt;p&gt;I'm building &lt;a href="https://campusloop.space/?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=campusloop-daily-posts" rel="noopener noreferrer"&gt;CampusLoop&lt;/a&gt; — a campus network where students share notes, past papers, confessions, polls and fest updates, only for their own college. Every week I write down what actually shipped, and why. Here's this week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seasons: the app should feel like a campus
&lt;/h2&gt;

&lt;p&gt;A campus feels different in fest season vs exam season. So we shipped &lt;strong&gt;Seasons&lt;/strong&gt; — themes, decorations and challenges that change through the year.&lt;/p&gt;

&lt;p&gt;The bet: people don't open a static feed every day, but they do check in on a place that feels alive. A season gives returning students something new without us having to invent a feature every week. It also gives us a natural rhythm for challenges — one per season, not one per sprint.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Play section, because students unwind between classes
&lt;/h2&gt;

&lt;p&gt;We shipped &lt;strong&gt;Play&lt;/strong&gt;: DP Battle, Meme War, trivia, This or That, Branch Wars — free games inside the app.&lt;/p&gt;

&lt;p&gt;This one was a deliberate choice, not a distraction. Students told us they open CampusLoop between classes to unwind. We had two options: pretend that doesn't happen and keep the app "serious", or build for the behaviour that actually exists. We chose the second. The games are small, quick, and campus-flavoured — a five-minute break, not a rabbit hole.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open sign-up with trust tiers
&lt;/h2&gt;

&lt;p&gt;Anyone can now join with any email. Students verify with a college email or the GitHub Student Pack to earn a &lt;strong&gt;verified badge&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This matters more than it looks. CampusLoop has anonymous posts — confessions where the author's name never shows. When a post is anonymous, readers still need to know a real student wrote it. The badge is what makes anonymity safe instead of chaotic: your identity stays hidden, but the community knows you're a verified student.&lt;/p&gt;

&lt;p&gt;The trust tier idea is simple: the more you verify, the more you unlock. Anonymous posting and Campus Match stay behind verification, while browsing, notes and courses stay open to everyone.&lt;/p&gt;

&lt;h2&gt;
  
  
  The unglamorous work: mobile polish and better PDF previews
&lt;/h2&gt;

&lt;p&gt;Nobody celebrates this, but it's what makes people stay:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A new mobile bottom bar, calmer sounds, smoother motion, and posts that render properly.&lt;/li&gt;
&lt;li&gt;Better previews for academic PDFs, and smoother scrolling on learning pages.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Notes and past papers are the reason most students arrive — the &lt;a href="https://campusloop.space/academics?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=campusloop-daily-posts" rel="noopener noreferrer"&gt;Academics section&lt;/a&gt; and &lt;a href="https://campusloop.space/courses?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=campusloop-daily-posts" rel="noopener noreferrer"&gt;free courses&lt;/a&gt; are free to open. If a PDF preview stutters, the student leaves and never comes back. Polish is retention work.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I keep learning
&lt;/h2&gt;

&lt;p&gt;Students don't want another feed. They want their campus in one place — notes, past papers, free courses, confessions, fests — and they want it to feel like theirs.&lt;/p&gt;

&lt;p&gt;Every week is a bet on a small team. This week's bets: atmosphere (Seasons), downtime (Play), and trust (verification). Next week I'll report which ones students actually used.&lt;/p&gt;

&lt;p&gt;If you build for students too, what did you ship this week? I'd genuinely like to compare notes.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;CampusLoop is free for students: &lt;a href="https://campusloop.space/?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=campusloop-daily-posts" rel="noopener noreferrer"&gt;campusloop.space&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>students</category>
      <category>beginners</category>
    </item>
    <item>
      <title>measureText on a string vs summing its characters: 30 px vs 40 px for two marks in Chromium</title>
      <dc:creator>NullPointerZen</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:06:24 +0000</pubDate>
      <link>https://dev.to/yue_shu_c621a4a637f22396f/measuretext-on-a-string-vs-summing-its-characters-30-px-vs-40-px-for-two-marks-in-chromium-36kl</link>
      <guid>https://dev.to/yue_shu_c621a4a637f22396f/measuretext-on-a-string-vs-summing-its-characters-30-px-vs-40-px-for-two-marks-in-chromium-36kl</guid>
      <description>&lt;p&gt;Most text-wrapping tutorials for canvas do the same thing: loop over the characters, add up each width from &lt;code&gt;measureText&lt;/code&gt;, and start a new line when the sum passes the box width. The question here is whether that sum is the same number as measuring the whole string at once. In this run the answer depended on the browser engine, and on which two characters sit next to each other.&lt;/p&gt;

&lt;h2&gt;
  
  
  What was measured
&lt;/h2&gt;

&lt;p&gt;Everything here is self-made: a handful of short strings and one 66-character, punctuation-heavy Chinese paragraph whose last sentence quotes the &lt;em&gt;Book of Songs&lt;/em&gt; (public domain). One system Chinese sans-serif (PingFang SC) at 20 px, one Apple-silicon Mac, and each of three engine families (Chromium, Firefox, WebKit) run once. The Firefox and WebKit readings are what those runs printed, not statements about Safari or about every version.&lt;/p&gt;

&lt;p&gt;The reason this came up at all: ImgIng &lt;a href="https://imging.ai/" rel="noopener noreferrer"&gt;https://imging.ai/&lt;/a&gt; , an in-browser image editor, has a text layer that breaks where you press Enter, so the person decides where a line ends. Once code has to decide instead, the width numbers start to matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  The snippet
&lt;/h2&gt;

&lt;p&gt;The setup is the same font string and a canvas context. Then two helpers, one summing per character and one measuring the whole string. The helper and key names here are renamed into English; the original run used Chinese key names.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'canvas'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'2d'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;font&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'20px "PingFang SC", "Hiragino Sans GB", sans-serif'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;measureText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;whole&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;measureText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toFixed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;summed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toFixed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;row&lt;/code&gt; was called on &lt;code&gt;、「&lt;/code&gt;, &lt;code&gt;。」&lt;/code&gt;, &lt;code&gt;？”&lt;/code&gt;, &lt;code&gt;……&lt;/code&gt;, &lt;code&gt;fi&lt;/code&gt;, &lt;code&gt;Weekend Market&lt;/code&gt; and the punctuation-heavy paragraph. The output was nested JSON; below it is a table of the same numbers, every row kept, Chromium only.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;String&lt;/th&gt;
&lt;th&gt;Whole string (px)&lt;/th&gt;
&lt;th&gt;Summed (px)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;、「&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;。」&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;？”&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;30.74&lt;/td&gt;
&lt;td&gt;30.74&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;……&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fi&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;12.16&lt;/td&gt;
&lt;td&gt;12.58&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Weekend Market&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;156.94&lt;/td&gt;
&lt;td&gt;156.94&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;punctuation-heavy paragraph&lt;/td&gt;
&lt;td&gt;1254.44&lt;/td&gt;
&lt;td&gt;1264.44&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Two marks, 30 px against 40 px
&lt;/h2&gt;

&lt;p&gt;A full-width character at 20 px is 20 px wide, so two of them should be 40. Chromium measured &lt;code&gt;、「&lt;/code&gt; as 30 when handed over as one string, and as 40 when measured one at a time. &lt;code&gt;。」&lt;/code&gt; did the same. &lt;code&gt;？”&lt;/code&gt; and &lt;code&gt;……&lt;/code&gt; did not. Across the whole paragraph the gap was 10 px, 1254.44 whole against 1264.44 summed. A wrapper that sums per character would read these two marks 10 px wider than the whole-string reading does, in this engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The other two engines
&lt;/h2&gt;

&lt;p&gt;Firefox and WebKit read 40 and 40 for both &lt;code&gt;、「&lt;/code&gt; and &lt;code&gt;。」&lt;/code&gt;. For the paragraph, Firefox gave 1271.5 both ways and WebKit 1264.44 both ways. So the disagreement showed up only in the Chromium run, and the WebKit number happens to equal Chromium's summed number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smaller gaps, and one more mismatch
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;fi&lt;/code&gt; was narrower whole than summed in all three engines: 12.16 against 12.58 in Chromium and WebKit, 12.37 against 12.95 in Firefox. The 83-character mixed Chinese and English sentence came out 1.2 px apart in Chromium (1173.70 whole, 1174.90 summed). The &lt;code&gt;fi&lt;/code&gt; gap is a ligature; the same kind of gap is likely behind the 1.2 px, which is an inference from the word &lt;code&gt;coffee&lt;/code&gt; in that sentence.&lt;/p&gt;

&lt;p&gt;The bigger one: in Chromium, the same paragraph laid out as one line in a normal web page measured 1244.45 px. The canvas whole-string number was 1254.44, another 10 px. Firefox gave 1271.5 on the page and WebKit 1264.45. Why the canvas and the page disagree in Chromium was not investigated; these are readings only.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with this
&lt;/h2&gt;

&lt;p&gt;Measuring the whole line you are about to draw is the safer habit here. If you need to decide where to break, the gap between summed and whole is a number you can print for your own font and your own text before trusting either. The figures above come from one font, one size and five self-made texts, so they say what happened on this Mac, not what happens on yours.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Designing reverse phone lookup pages without overstating what you know</title>
      <dc:creator>wemgehort</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:05:36 +0000</pubDate>
      <link>https://dev.to/wemgehort/designing-reverse-phone-lookup-pages-without-overstating-what-you-know-4k2m</link>
      <guid>https://dev.to/wemgehort/designing-reverse-phone-lookup-pages-without-overstating-what-you-know-4k2m</guid>
      <description>&lt;p&gt;You miss a call. You search the number and find a page with 400 views, two reports, and a red badge. What does that tell you? The views show that the page drew interest. The reports tell you what two submissions claimed. The badge had better explain how it got there.&lt;/p&gt;

&lt;p&gt;That gap between what a system counts and what a reader thinks it knows is the most interesting design problem in a phone lookup directory. Here’s the approach I’d take for a directory like &lt;a href="https://www.numarasorgula.com/" rel="noopener noreferrer"&gt;NumaraSorgula&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give search and storage the same idea of a number
&lt;/h2&gt;

&lt;p&gt;Someone pastes a number with a plus sign. The next visitor types it with a domestic trunk prefix. If both inputs refer to the same number, they should lead to the same page and report history.&lt;/p&gt;

&lt;p&gt;Use a phone-number library with an explicit country context for national-format input. For ordinary numbers the parser can resolve, store a canonical E.164 representation and format it for display separately. Keep short codes in a separate, country-scoped namespace. A short code won’t always behave like an ordinary national number. A number that passes validation tells you something about its format, not who owns it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate page activity from caller reports
&lt;/h2&gt;

&lt;p&gt;A lookup is not a complaint. A page can collect hundreds of views after being linked in a group chat. Keep views out of the risk calculation and show report volume, recency and category separately.&lt;/p&gt;

&lt;p&gt;I’d start with plain copy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No reports yet.&lt;/strong&gt; We don’t have enough information about this caller.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two recent reports.&lt;/strong&gt; Visitors described repeated calls. These accounts haven’t been independently verified.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mixed reports.&lt;/strong&gt; Some visitors described delivery calls; others described unsolicited offers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those states give the reader something useful to act on. They also leave room for two awkward realities: a number can be reassigned, and the number shown on a device can be spoofed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the evidence easier to inspect
&lt;/h2&gt;

&lt;p&gt;For an initial implementation, I’d render a simple timeline with the report date and category first, ahead of any aggregate label. Four weekly reports from different visitors tell a different story from four near-identical submissions in a minute. Treat bursts and duplicate text as moderation signals rather than automatically counting them as corroboration.&lt;/p&gt;

&lt;p&gt;Keep the report form focused on what happened: when did the call come in, what did the caller ask for, and was there a recorded message? Add a reminder not to post names, addresses, verification codes or payment details. Make corrections and removal requests easy to find from the same page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the empty state before the busy one
&lt;/h2&gt;

&lt;p&gt;Three test cases can catch a surprising amount:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Search the same number in national and international format. Both should resolve to one record and one preferred URL.&lt;/li&gt;
&lt;li&gt;Open a page with visits but zero reports. It should say there isn’t enough information, not imply the number is safe.&lt;/li&gt;
&lt;li&gt;Add an old negative report and a recent report describing a routine delivery. Both should remain visible with dates, without presenting either as a verified identity.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A lookup page earns trust when a visitor can see what was reported, when it was reported, and where the evidence ends.&lt;/p&gt;

&lt;p&gt;Further reading: &lt;a href="https://github.com/google/libphonenumber" rel="noopener noreferrer"&gt;Google’s libphonenumber library&lt;/a&gt; and the &lt;a href="https://www.fcc.gov/spoofing" rel="noopener noreferrer"&gt;FCC’s explanation of caller ID spoofing&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: The draft and cover illustration were created with AI assistance. The design examples are illustrative, not claims about features already deployed.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>design</category>
      <category>systemdesign</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Same price per token, 6x the bill — the AI models web devs actually use (Dec 2026)</title>
      <dc:creator>Shams⚡️Nahid</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:04:50 +0000</pubDate>
      <link>https://dev.to/shamsxnahid/same-price-per-token-6x-the-bill-the-ai-models-web-devs-actually-use-dec-2026-3p8h</link>
      <guid>https://dev.to/shamsxnahid/same-price-per-token-6x-the-bill-the-ai-models-web-devs-actually-use-dec-2026-3p8h</guid>
      <description>&lt;p&gt;Claude Fable 5.2 and GPT-6.2 Astra cost exactly the same: &lt;strong&gt;$8 input / $40 output&lt;/strong&gt; per million tokens.&lt;/p&gt;

&lt;p&gt;In independent testing, one finished a task for about &lt;strong&gt;$4&lt;/strong&gt;. The other cost about &lt;strong&gt;$26.54&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Same list price. Roughly &lt;strong&gt;6.6× the bill&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That gap is why I stopped trusting price tables and leaderboards on their own. For December's update of my monthly AI-models guide, I went through what working developers on X reported from real client and production work: builds, side-by-side tests, cost breakdowns, complaints. I left out hype, vendor employees and sponsored posts.&lt;/p&gt;

&lt;p&gt;Here's the short version.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 30-second cheat sheet
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;What devs reach for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend UI &amp;amp; design&lt;/td&gt;
&lt;td&gt;Claude Opus 5.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everyday coding&lt;/td&gt;
&lt;td&gt;Gemini 4 Neon or Opus 5.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Value coding &amp;amp; strict code review&lt;/td&gt;
&lt;td&gt;GPT-6.2 Sol&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Articles &amp;amp; blog content&lt;/td&gt;
&lt;td&gt;Gemini 4 Neon or Carbon&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The genuinely hard problems&lt;/td&gt;
&lt;td&gt;Opus 5.5 executing, Fable 5.2 advising&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's 5 of the 10 task categories. Backend, security, codebase audits, polishing and SEO/performance are in the full guide. Security is the tricky one: the best model for it is one most developers can't even get access to.&lt;/p&gt;

&lt;h2&gt;
  
  
  3 things that surprised me
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. The best setup isn't one model.&lt;/strong&gt; The most-shared architecture workflow on X pairs two Claude models. One does the work; the other steps in only at three specific moments. On long sessions it's the setup developers trust most. On the wrong kind of task, it cost one developer &lt;strong&gt;23% more&lt;/strong&gt; than just running the expensive model alone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Gemini 4 Neon's quality depends on where you run it.&lt;/strong&gt; Since launching on Nov 18 it has become a lot of developers' daily driver, but people report a clear quality gap between one Google app and the rest. If Neon felt "meh" to you, you may have been running it in the wrong place.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The cheapest model has a default-setting trap.&lt;/strong&gt; Composer 2.5 is the cheapest model in the guide at $0.50 / $2.50, but only on a tier Cursor doesn't select by default. The default costs 6× more.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the full guide covers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;All 10 task categories: top pick, strong alternative, cost-efficient pick and what to avoid&lt;/li&gt;
&lt;li&gt;Every model at a glance: where you can actually use it, its price and its biggest weakness&lt;/li&gt;
&lt;li&gt;Cost &lt;strong&gt;per task&lt;/strong&gt; vs cost per token, with independent measurements&lt;/li&gt;
&lt;li&gt;Step-by-step workflows for security reviews and codebase audits&lt;/li&gt;
&lt;li&gt;What changed since October (Gemini 4 Argon and Carbon doubled in price on Dec 1)&lt;/li&gt;
&lt;li&gt;Every developer report linked as a source, so you can check the claims yourself&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://stackkit.site/up-to-date/proven-ai-models-web-development-december-2026/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=ai-models-dec-2026" rel="noopener noreferrer"&gt;Read the full December 2026 guide on StackKit&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I update it every month under the same title, so bookmark it if you want next month's picks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your turn
&lt;/h2&gt;

&lt;p&gt;What's your real stack right now: one model for everything, or a planner + worker + reviewer setup?&lt;/p&gt;

&lt;p&gt;I'm collecting real-world reports for the January update. I especially need results from &lt;strong&gt;SEO and Core Web Vitals work&lt;/strong&gt;, where almost nobody has shared model-specific findings. Drop yours in the comments 👇&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Shams. I run &lt;a href="https://websmith.online" rel="noopener noreferrer"&gt;WebSmith Partner&lt;/a&gt;, a web development and growth agency under &lt;a href="https://shams.digital" rel="noopener noreferrer"&gt;Shams Digital&lt;/a&gt;, and I build &lt;a href="https://stackkit.site" rel="noopener noreferrer"&gt;StackKit&lt;/a&gt;: 50,000+ web design and dev resources you can export straight into any platform.&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🌐 Personal: &lt;a href="https://www.shamsnahid.com" rel="noopener noreferrer"&gt;shamsnahid.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;▶️ YouTube: &lt;a href="https://www.youtube.com/@shamsnahid" rel="noopener noreferrer"&gt;@shamsnahid&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;✍️ Medium: &lt;a href="https://medium.com/@shamsdigital" rel="noopener noreferrer"&gt;@shamsdigital&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;𝕏: &lt;a href="https://x.com/shamsXdaily" rel="noopener noreferrer"&gt;@shamsXdaily&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Extracting Verified EU Company Data (Impressum, Live VIES VAT Validation, PEC &amp; Tech Stack) in Pure HTTP — No Browser Needed</title>
      <dc:creator>IndexSentinel</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:04:28 +0000</pubDate>
      <link>https://dev.to/indexsentinel/extracting-verified-eu-company-data-impressum-live-vies-vat-validation-pec-tech-stack-in-pure-3gin</link>
      <guid>https://dev.to/indexsentinel/extracting-verified-eu-company-data-impressum-live-vies-vat-validation-pec-tech-stack-in-pure-3gin</guid>
      <description>&lt;p&gt;Enriching US B2B domains is easy. Enriching &lt;strong&gt;European&lt;/strong&gt; B2B domains breaks half of generic US scrapers because:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Company registration numbers (&lt;code&gt;HRB&lt;/code&gt;/&lt;code&gt;HRA&lt;/code&gt; in Germany, &lt;code&gt;P.IVA&lt;/code&gt;/&lt;code&gt;REA&lt;/code&gt; in Italy, &lt;code&gt;SIRET&lt;/code&gt; in France) and managing directors live on localized &lt;code&gt;/impressum&lt;/code&gt;, &lt;code&gt;/note-legali&lt;/code&gt;, or &lt;code&gt;/mentions-legales&lt;/code&gt; footer links — not on the homepage.&lt;/li&gt;
&lt;li&gt;Emails in EU legal pages are frequently obfuscated with Cloudflare's &lt;code&gt;/cdn-cgi/l/email-protection#...&lt;/code&gt; XOR encoding.&lt;/li&gt;
&lt;li&gt;Scraping a VAT string from HTML is &lt;strong&gt;not enough&lt;/strong&gt;: you want to know whether that VAT number is currently &lt;strong&gt;active&lt;/strong&gt; in the &lt;strong&gt;official European Commission VIES registry&lt;/strong&gt; alongside the company's registered legal name and address.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All of this is static HTML + official JSON — so spinning up headless Chromium wastes 10x RAM and proxy bandwidth for zero benefit.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Live Official EU VIES Verification Without Heavy Overhead
&lt;/h2&gt;

&lt;p&gt;The European Commission exposes a public REST check endpoint per member state (&lt;code&gt;ec.europa.eu/taxation_customs/vies/rest-api/ms/{country}/vat/{number}&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Combining Impressum discovery with VIES verification in a single pure-HTTP call turns a raw domain (&lt;code&gt;https://www.hetzner.com&lt;/code&gt;) into a compliance-grade B2B record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"www.hetzner.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"companyName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hetzner Online GmbH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"countryHint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"vatIds"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"DE812871812"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"viesValidation"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"checked"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"vatId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DE812871812"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"countryCode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"isValid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"legalName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hetzner Online GmbH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"registeredAddress"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Industriestr. 25, 91710 Gunzenhausen"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"valid"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"techStack"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Cloudflare"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Google Tag Manager"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"registrationNumbers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"HRB 6089"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"italianPec"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"primaryEmail"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"info@hetzner.com"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At the same time, inspecting homepage HTML markers and response headers gives you zero-cost &lt;strong&gt;tech stack fingerprinting&lt;/strong&gt; (&lt;code&gt;Shopify&lt;/code&gt;, &lt;code&gt;WooCommerce&lt;/code&gt;, &lt;code&gt;Webflow&lt;/code&gt;, &lt;code&gt;Next.js&lt;/code&gt;, &lt;code&gt;Cloudflare&lt;/code&gt;, &lt;code&gt;Klaviyo&lt;/code&gt;, &lt;code&gt;HubSpot&lt;/code&gt;, &lt;code&gt;Stripe&lt;/code&gt;, &lt;code&gt;Meta Pixel&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Guarding Against &lt;code&gt;302&lt;/code&gt; Redirect SSRF
&lt;/h2&gt;

&lt;p&gt;Any enrichment API accepting arbitrary &lt;code&gt;https://company.com&lt;/code&gt; URLs from workflows must validate &lt;strong&gt;every&lt;/strong&gt; redirect hop, not just the initial hostname — otherwise a malicious &lt;code&gt;302 Location: http://169.254.169.254/...&lt;/code&gt; hits cloud metadata or internal services. Using a per-request async event hook on the HTTP client solves both initial URLs and multi-hop redirects in ~10 lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Ready to Run: Live Playground, n8n Workflow, Claude MCP &amp;amp; Apify
&lt;/h2&gt;

&lt;p&gt;We packaged this pipeline so you can run it however your stack works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Live VIES + Tech Stack Playground (zero signup):&lt;/strong&gt; test any &lt;code&gt;.de&lt;/code&gt;, &lt;code&gt;.it&lt;/code&gt;, &lt;code&gt;.fr&lt;/code&gt;, or &lt;code&gt;.es&lt;/code&gt; site live at &lt;strong&gt;&lt;a href="https://indexsentinelapp.com/apis#playground" rel="noopener noreferrer"&gt;indexsentinelapp.com/apis&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Dependency Python MCP Server (&lt;code&gt;stdio&lt;/code&gt;) &amp;amp; n8n JSON Workflows:&lt;/strong&gt; downloadable directly from &lt;strong&gt;&lt;a href="https://indexsentinelapp.com/apis#integrations" rel="noopener noreferrer"&gt;indexsentinelapp.com/apis#integrations&lt;/a&gt;&lt;/strong&gt; (works with Claude Desktop, Cursor, Windsurf, or self-hosted n8n)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bulk Pay-Per-Event Apify Store Actor (&lt;code&gt;$2.50 / 1,000 domains&lt;/code&gt;):&lt;/strong&gt; &lt;strong&gt;&lt;a href="https://apify.com/indexsentinel/eu-impressum-vat-contact-extractor" rel="noopener noreferrer"&gt;EU Company Enrichment: Impressum, VIES VAT, PEC &amp;amp; Tech Stack&lt;/a&gt;&lt;/strong&gt; for lists up to 5,000 domains per run&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What other country-specific EU business identifiers (&lt;code&gt;CHE UID&lt;/code&gt;, &lt;code&gt;KVKK&lt;/code&gt;, &lt;code&gt;KvK&lt;/code&gt;, etc.) would be most useful in your pipeline?&lt;/p&gt;

</description>
      <category>python</category>
      <category>automation</category>
      <category>n8n</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Intl.Segmenter words are not line-break points: 6 of 15 wraps changed line count</title>
      <dc:creator>hao jia</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:04:26 +0000</pubDate>
      <link>https://dev.to/iterandum/intlsegmenter-words-are-not-line-break-points-6-of-15-wraps-changed-line-count-557a</link>
      <guid>https://dev.to/iterandum/intlsegmenter-words-are-not-line-break-points-6-of-15-wraps-changed-line-count-557a</guid>
      <description>&lt;p&gt;If you wrap Chinese or Japanese text on a canvas by hand, &lt;code&gt;Intl.Segmenter&lt;/code&gt; looks like the obvious tool. It hands you words, and words feel like the units a line should be allowed to break between. That assumption is what this note checks, and the check says no: a word boundary is not a line-break opportunity.&lt;/p&gt;

&lt;p&gt;The numbers below come from one Apple-silicon Mac, one system font (PingFang SC, the system sans-serif for Chinese) at 20px, and five self-made sample texts at three container widths, 200, 280 and 360 px. That makes 15 cases. Each case was run once in a Chromium-based browser. Firefox and WebKit engines were run once too, and only the segmentation difference and the match counts in the last section come from them. No Safari behaviour is claimed here.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the segmenter returns
&lt;/h2&gt;

&lt;p&gt;This is the whole snippet, and it is the only code in the note.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;seg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Intl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Segmenter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;loc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;granularity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'word'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;segment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;segment&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;zh&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;seg&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'现场提供手作面包和咖啡，欢迎带上家人朋友。'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'zh'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ja&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;seg&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'コーヒー特集がとても面白かった。'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ja'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;en&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;seg&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'hand-drip coffee'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'en'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The printed result is long as JSON (one segment per line), so here it is as a table with nothing dropped. The Chromium output, in order:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Segments&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;zh&lt;/td&gt;
&lt;td&gt;现场 / 提供 / 手 / 作 / 面包 / 和 / 咖啡 / ， / 欢迎 / 带 / 上 / 家人 / 朋友 / 。&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ja&lt;/td&gt;
&lt;td&gt;コーヒー / 特集 / が / とても / 面白 / か / っ / た / 。&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;en&lt;/td&gt;
&lt;td&gt;hand / - / drip / (a single space) / coffee&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Look at what a line-filling loop would do with this. &lt;code&gt;手作&lt;/code&gt; is split into two pieces while &lt;code&gt;面包&lt;/code&gt; stays whole. &lt;code&gt;か&lt;/code&gt;, &lt;code&gt;っ&lt;/code&gt;, &lt;code&gt;た&lt;/code&gt; are three separate segments, while &lt;code&gt;とても&lt;/code&gt; is one. The punctuation &lt;code&gt;，&lt;/code&gt; and &lt;code&gt;。&lt;/code&gt; are segments of their own, so nothing in the output says they must stay glued to the character before them. The hyphen in &lt;code&gt;hand-drip&lt;/code&gt; is a segment as well.&lt;/p&gt;

&lt;p&gt;None of this is a bug in the segmenter. It answers a different question, where words start and end, and line breaking in a browser answers another. In this run the browser's default layout could break between any two Han characters, except where its own line-start rules forbid it. A segmenter word sitting between two Han characters is therefore not a place where native layout wraps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three cases got one more line
&lt;/h2&gt;

&lt;p&gt;Each of the 15 cases compares two things: the DOM block with default line-breaking, read line by line with &lt;code&gt;Range.getClientRects&lt;/code&gt;, and a canvas loop that fills lines with segmenter words and applies the same line-start and line-end punctuation table used for the other canvas variant in this test. The table is this note's own character list, not a standard.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Text&lt;/th&gt;
&lt;th&gt;Width&lt;/th&gt;
&lt;th&gt;Native default&lt;/th&gt;
&lt;th&gt;Segmenter words&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Chinese and Japanese mixed, 68 characters&lt;/td&gt;
&lt;td&gt;280&lt;/td&gt;
&lt;td&gt;5 lines&lt;/td&gt;
&lt;td&gt;6 lines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Punctuation-heavy Chinese, 66 characters&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;7 lines&lt;/td&gt;
&lt;td&gt;8 lines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Emoji and combining characters&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;4 lines&lt;/td&gt;
&lt;td&gt;5 lines&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In the other nine ordinary cases, 15 minus these three and the three long-word ones, the line counts matched. Matching counts do not prove matching breakpoints, which this test did not compare for the segmenter variant, so treat that as a count only.&lt;/p&gt;

&lt;p&gt;The three long-word cases differ in both directions, so they do not fit the "extra line" story. The text holds a 137-character mix with a long URL and a 45-letter English word. Native default gave 7 lines at all three widths, with 3, 3 and 2 lines overflowing the container. The segmenter variant gave 8, 6 and 5 lines with one overflowing line each time. Native layout breaks inside the URL after &lt;code&gt;-&lt;/code&gt; and &lt;code&gt;?&lt;/code&gt;, which the segmenter output for that text may simply not offer. That is an inference, because the segment list for the URL was not printed.&lt;/p&gt;

&lt;p&gt;Why the extra lines in the first three? Also an inference, not something this run isolated: a two-character word such as &lt;code&gt;面包&lt;/code&gt; moves to the next line as one block, so the previous line is left shorter, and over a short paragraph that can add a line. The native layout can instead put one character on each side of the cut.&lt;/p&gt;

&lt;h2&gt;
  
  
  Another engine segments the same sentences differently
&lt;/h2&gt;

&lt;p&gt;Running the same snippet in the Firefox engine split the same sentences differently. The Chinese sentence came out as &lt;code&gt;带 / 上家 / 人 / 朋友&lt;/code&gt; where Chromium gave &lt;code&gt;带 / 上 / 家人 / 朋友&lt;/code&gt;, and the Japanese one ended &lt;code&gt;か / った / 。&lt;/code&gt; where Chromium gave &lt;code&gt;か / っ / た / 。&lt;/code&gt;. So a loop driven by segmenter words can produce different lines from the same string depending on the engine, before any font difference comes in. The line counts quoted in this note for the segmenter variant are Chromium's.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do instead
&lt;/h2&gt;

&lt;p&gt;Segmenter words mark where words start and end, which is a different question from where a line may break. For wrapping, there are two routes in this run. One is to split text per character, keep English words and digit runs whole, and add the two punctuation rules; in this run that matched native layout line for line in 11 of 15 cases in the Chromium and WebKit engines and 7 of 15 in the Firefox engine, with the differences in the first two engines being the punctuation-heavy text at 200 px and the three long-word cases (the Firefox engine differed in more places). The other is to ask the DOM where it broke, with &lt;code&gt;Range.getClientRects&lt;/code&gt;, instead of predicting the breaks.&lt;/p&gt;

&lt;p&gt;The online editor ImgIng &lt;a href="https://imging.ai/" rel="noopener noreferrer"&gt;https://imging.ai/&lt;/a&gt; sidesteps the question for its text layers: lines break where the author presses Enter, so there the breakpoints are the author's decision, not the segmenter's or the browser's.&lt;/p&gt;

&lt;p&gt;The numbers hold for this font at this size on this machine. Other fonts, Windows or Android defaults, and right-to-left text were not tested.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to Compare App Development Quotes Without Overlooking Important Costs</title>
      <dc:creator>CodeStore Readers</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:04:20 +0000</pubDate>
      <link>https://dev.to/codestoreaders/how-to-compare-app-development-quotes-without-overlooking-important-costs-54di</link>
      <guid>https://dev.to/codestoreaders/how-to-compare-app-development-quotes-without-overlooking-important-costs-54di</guid>
      <description>&lt;p&gt;Getting multiple app development quotes is a sensible first step before starting a project. However, businesses often find that different companies provide very different estimates for what appears to be the same app idea. One proposal may be significantly cheaper, while another may cost several times more.&lt;/p&gt;

&lt;p&gt;This does not automatically mean that one company is overcharging. The difference often comes from project scope, team experience, technical requirements, development methods and the services included in the estimate.&lt;/p&gt;

&lt;p&gt;To make a confident decision, businesses need to understand what each quote covers rather than choosing a development partner based only on the final price.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Do App Development Quotes Vary?
&lt;/h2&gt;

&lt;p&gt;Several factors influence the estimated cost of building a mobile application.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. Project Scope and Features&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;The number and complexity of features have a direct impact on development effort. An app with user registration, basic profiles and simple navigation requires a different level of work than one with real-time messaging, payment processing, GPS tracking or AI-powered functionality.&lt;/p&gt;

&lt;p&gt;Some proposals may also include an admin panel, analytics dashboard and third-party integrations, while others may exclude them. These differences can make two estimates difficult to compare.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2. Team Structure and Experience&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;The people working on a project also affect its cost. A development team may include UI/UX designers, mobile developers, backend engineers, QA testers and project managers.&lt;/p&gt;

&lt;p&gt;A proposal with dedicated specialists may cost more than one with fewer resources. However, the important question is whether the proposed team has the right experience to handle the project's requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;3. Technology and Platform Requirements&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Building for iOS, Android or both platforms can change the overall estimate. The choice between native and cross-platform development also affects the technical approach, resources and maintenance requirements.&lt;/p&gt;

&lt;p&gt;Complex backend systems, custom APIs, security requirements and external integrations can add further development effort.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Should You Check Before Comparing Quotes?
&lt;/h2&gt;

&lt;p&gt;Before reviewing the final amounts, make sure every company is estimating the same project.&lt;/p&gt;

&lt;p&gt;Start by preparing a clear list of required features, platforms, integrations and expected deliverables. Share the same requirements with every shortlisted company. This makes it easier to identify differences in their proposals.&lt;/p&gt;

&lt;p&gt;Review these areas carefully:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Design:&lt;/strong&gt; Does the quote include research, wireframes, UI design and revisions?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Development:&lt;/strong&gt; Are all requested features and platforms covered?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing:&lt;/strong&gt; Does the estimate include functional, performance and device testing?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; Will the team assist with App Store and Google Play submissions?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation:&lt;/strong&gt; Are technical documents and handover materials included?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Support:&lt;/strong&gt; Is post-launch assistance included, and for how long?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also check what is excluded. A lower estimate may leave out important work that you will need to pay for separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understand the Pricing Model
&lt;/h2&gt;

&lt;p&gt;App development companies generally use different pricing arrangements. Understanding these models helps you decide which one fits your project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fixed-Price Model:&lt;/strong&gt; The company agrees to a defined price for an agreed scope of work. This can be suitable when requirements are clear and changes are limited. However, additional features or changes outside the agreed scope may require separate payments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Time-and-Materials Model:&lt;/strong&gt; You pay according to the time and resources used. This approach can work well when requirements may evolve during development. It also requires regular progress reviews and budget monitoring.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dedicated Team Model:&lt;/strong&gt; You work with a team assigned to your project for an agreed period. This can be useful for long-term development or products that need continuous improvements.&lt;/p&gt;

&lt;p&gt;There is no single pricing model that works for every project. The right choice depends on how clearly the requirements are defined and how much flexibility you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  Look Beyond the Quoted Price
&lt;/h2&gt;

&lt;p&gt;The initial development estimate does not always represent the total cost of owning an application.&lt;/p&gt;

&lt;p&gt;Businesses should also consider recurring expenses such as cloud hosting, third-party API subscriptions, software licences, security updates and ongoing maintenance.&lt;/p&gt;

&lt;p&gt;For example, an app that uses payment services, maps or messaging APIs may involve usage-based charges after launch. These expenses should be discussed before signing an agreement.&lt;/p&gt;

&lt;p&gt;Ownership is another important consideration. Confirm who will own the source code, design files, developer accounts and other project assets after completion. Make sure the contract explains how these assets will be handed over.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Choose the Right Development Partner
&lt;/h2&gt;

&lt;p&gt;Price matters, but it should not be the only deciding factor. Review the company's portfolio, relevant industry experience, communication process and approach to project management.&lt;/p&gt;

&lt;p&gt;Ask who will handle your project and whether the proposed team will remain involved throughout development. You can also request examples of similar applications and speak with previous clients when possible.&lt;/p&gt;

&lt;p&gt;If you are evaluating an &lt;a href="https://www.codestoresolutions.com/top-mobile-app-development-company-in-usa/" rel="noopener noreferrer"&gt;app development company in USA&lt;/a&gt;, consider how its team handles project planning, communication, delivery expectations and ongoing support. These factors can help you understand the overall value behind its proposal.&lt;/p&gt;

&lt;p&gt;Before making a final decision, compare each company on the same criteria: scope clarity, technical capability, team experience, delivery timeline, ownership terms and total estimated cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Comparing app development quotes requires more than checking which company offers the lowest price. A detailed proposal should explain the work involved, the team responsible, expected deliverables and possible additional expenses.&lt;/p&gt;

&lt;p&gt;Take time to review these details, ask questions about unclear items and understand the terms before signing an agreement. A well-evaluated proposal helps set realistic expectations, control project costs and build a stronger working relationship with your development partner.&lt;/p&gt;

</description>
      <category>mobile</category>
      <category>startup</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
