pretext / rules
Cursor rule51k starsChanged 40 days agoLicence not identifiedView on GitHub
Follow project guidance from AGENTS.md
Trending
More talk lately.about the whole repository
Who's talking about chenglou/pretext
- Github Awesome“Pretext: It uses pure JavaScript and arithmetic to measure text, completely bypassing the DOM”YouTube · Mar 29, 2026 · 54k views
- Wes Bos“pretext is a bigger deal than you think”YouTube · Apr 3, 2026 · 53k views
- OrcDev“Everyone's Talking About Pretext (And Here's Why)”YouTube · Mar 30, 2026 · 14k views
- Tom Is Loading“Pretext is a Game Changer”YouTube · Apr 9, 2026 · 7.6k views
- CoderOne“This new JavaScript algorithm made CSS useless”YouTube · Mar 31, 2026 · 5.3k views
The biggest 5 of 117 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 117
Talked about on GitHub, Bluesky, YouTube, Hacker News and the web (117 times).
On GitHub · 50
- Apr 5, 2026Experiment with pretext to virtualize complicated layout — inokawa/virtua13 reactions · 3 comments
- Apr 5, 2026wrap={false} but for components that span across multiple pages — diegomura/react-pdf5 reactions · 2 comments
- Mar 30, 2026feat(cdk/scrolling): Integrate Pretext Library for Precise Text Measurement in Auto-Size Virtual Scroll — angular/components5 reactions · 1 comment
- May 2, 2026chore(deps): bump the npm_and_yarn group across 5 directories with 8 updates — billlzzz10/hyprnote2 reactions · 4 comments
- Apr 5, 2026[Feature]: Improve scrolling with pretext — pingdotgg/t3code2 reactions · 3 comments
45 more on GitHub
- Jun 22, 2026build(deps): bump @chenglou/pretext from 0.0.7 to 0.0.8 in /website — Imagine-That-Ai/BurnBar1 reaction · 3 comments
- Jun 15, 2026build(deps): bump @chenglou/pretext from 0.0.7 to 0.0.8 — AkaraChen/2code1 reaction · 1 comment
- Mar 30, 2026[codex] Research Pretext fit for Noter — samebase/samebase1 reaction · 3 comments
- Mar 30, 2026Add: @chenglou/pretext — cdnjs/packages1 reaction · 1 comment
- Nov 12, 2026chore: bump the dependencies group across 1 directory with 38 updates — vectojs/vectojs0 reactions
- Nov 9, 2026chore(deps): bump the all-updates group across 1 directory with 27 updates — Imagine-That-Ai/BurnBar0 reactions · 2 comments
- Nov 9, 2026Bump the production-dependencies group across 1 directory with 35 updates — Kim-Bogeun/bg-quartz0 reactions · 1 comment
- Nov 8, 2026build(deps): bump the production-runtime group across 1 directory with 10 updates — Timcai06/TTT-I-M0 reactions · 1 comment
- Nov 5, 2026gestion de l'historique du chat — cliftontoaster-reid/ft_transcendence0 reactions
- Nov 5, 2026chore(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — jinpanda11/gmpay-edge0 reactions · 1 comment
- Nov 3, 2026chore(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — Slipknot1ee7/gmpay-edge0 reactions · 1 comment
- Nov 3, 2026build(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — Mediaeater/link-blog0 reactions
- Nov 2, 2026chore(deps): bump the production-deps group across 1 directory with 21 updates — ThoughtCloudsLost/Care-y0 reactions
- Nov 2, 2026chore(deps-dev): bump @chenglou/pretext from 0.0.9 to 1.0.0 — nteract/semiotic0 reactions · 1 comment
- Nov 2, 2026deps: bump @chenglou/pretext from 0.0.7 to 1.0.0 in /web — KyleDerZweite/basalt0 reactions
- Nov 1, 2026build(deps): Bump @chenglou/pretext from 0.0.9 to 1.0.0 — SanHsien/oh-my-ppt0 reactions · 3 comments
- Nov 1, 2026chore(deps): bump the routine-dependencies group across 1 directory with 28 updates — xnmp/tauri-explorer0 reactions
- Oct 31, 2026chore(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — jsonwangruxinc/gmpay-edge0 reactions
- Oct 28, 2026build(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 in /src/quodeq/ui — quodeq/quodeq0 reactions
- Oct 27, 2026Bump @chenglou/pretext from 0.0.9 to 1.0.0 — SergeiNikolenko/Burette0 reactions · 2 comments
- Oct 27, 2026chore(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — zglwry3259/gmpay-edge0 reactions · 1 comment
- Oct 26, 2026chore(deps): bump the dependencies group across 1 directory with 4 updates — linxule/vellum0 reactions
- Oct 23, 2026chore(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 in /FHD/frontend — 42433422/XCMAX0 reactions · 2 comments
- Oct 23, 2026chore(deps): bump the all-updates group across 1 directory with 13 updates — Imagine-That-Ai/BurnBar0 reactions · 5 comments
- Oct 23, 2026build(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — jaredstarner/thesandbox.page0 reactions
- Oct 23, 2026chore(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — ABHICODZ/Project-Lazarus0 reactions · 1 comment
- Oct 22, 2026build(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — echoes-from-afar/platform0 reactions · 1 comment
- Oct 21, 2026chore(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — gvastethecreator/open.md0 reactions · 2 comments
- Oct 19, 2026chore(deps): bump the dependencies group across 1 directory with 2 updates — linxule/vellum0 reactions
- Oct 19, 2026Bump @chenglou/pretext from 0.0.8 to 1.0.0 — Rionlyu/rionlyu-tech-blog0 reactions
- Oct 19, 2026fix(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — Moriae1337/DexuX0 reactions
- Oct 19, 2026chore(deps): bump @chenglou/pretext from 0.0.7 to 1.0.0 in /integrations/react-bubbles — HongMing-Huang/pretext-frontend-motion0 reactions
- Oct 19, 2026chore(deps): bump @chenglou/pretext from 0.0.7 to 1.0.0 in /integrations/vue-bubbles — HongMing-Huang/pretext-frontend-motion0 reactions
- Oct 19, 2026chore(deps): bump @chenglou/pretext from 0.0.7 to 1.0.0 in /integrations/svelte-bubbles — HongMing-Huang/pretext-frontend-motion0 reactions
- Oct 19, 2026chore(deps): bump @chenglou/pretext from 0.0.7 to 1.0.0 in /integrations/vanilla-bubbles — HongMing-Huang/pretext-frontend-motion0 reactions
- Oct 19, 2026chore(deps): bump @chenglou/pretext from 0.0.9 to 1.0.0 — mikesandoval10creator/Guardian-Praeventio0 reactions · 2 comments
- Oct 19, 2026Bump @chenglou/pretext from 0.0.9 to 1.0.0 — Lomuss33/myWebsite0 reactions · 2 comments
- Oct 19, 2026deps: bump @chenglou/pretext from 0.0.9 to 1.0.0 — CoWork-OS/CoWork-OS0 reactions
- Oct 6, 2026chore(deps): bump @chenglou/pretext from 0.0.8 to 0.0.9 in /web — hawkingrei/agenthub0 reactions · 1 comment
- Sep 30, 2026Bump @chenglou/pretext from 0.0.8 to 0.0.9 — Lomuss33/myWebsite0 reactions · 2 comments
- Sep 23, 2026Bump @chenglou/pretext from 0.0.8 to 0.0.9 — Wolverine971/9takes0 reactions · 1 comment
- Sep 11, 2026chore(deps): bump @chenglou/pretext from 0.0.8 to 0.0.9 in /frontend — vbprojects/speedreader0 reactions · 1 comment
- Jul 21, 2026Bump @chenglou/pretext from 0.0.7 to 0.0.8 in /astro-site — Thor-DraperJr/thor-draperjr.github.io0 reactions
- Jul 17, 2026Port Pretext's exact-height accordion to day sections — Huxpro/BusyWeek0 reactions
- Jun 18, 2026build(deps): bump @chenglou/pretext from 0.0.7 to 0.0.8 — bibin765/tangentflow-pdf0 reactions · 1 comment
On Bluesky · 36
- Mar 28, 2026this rules so much. sorry to the CSS zealots xcancel.com/_chenglou/st... github.com/chenglou/pre... chenglou.me/pretext/ — @davidcrespo.bsky.social303 likes and reposts · 19 replies
- Mar 30, 2026Pretext Pure JavaScript/TypeScript library for multiline text measurement & layout. Fast, accurate & supports all the languages you didn't… — @sungkim.bsky.social56 likes and reposts · 3 replies
- Mar 29, 2026Pretty cool! Project page: github.com/chenglou/pre... — @gregdoucette.bsky.social44 likes and reposts · 7 replies
- Mar 30, 2026If you’ve ever had the misfortune of having to deal with dynamic text layout in the browser (or if you’ve ever worked with Apple’s CoreText… — @yiningkarlli.bsky.social16 likes and reposts
- Apr 5, 2026I wonder what the browser perf folks think of that hot new pretext library that was released last week. It sure sounds cool, but throwing… — @rgadellaa.bsky.social8 likes and reposts · 1 reply
31 more on Bluesky
- Mar 29, 2026Another CSS killer 😪 github.com/chenglou/pre... One of the demo says “THE FUTURE OF LAYOUT IS NOT CSS”. Can we just collect some money… — @mateuszjs.bsky.social7 likes and reposts · 1 reply
- May 23, 2026📦 chenglou / pretext ⭐ 47,424 (+74) 🗒 TypeScript Fast, accurate & comprehensive text measurement & layout — @github-trending-js.bsky.social6 likes and reposts · 1 reply
- Apr 25, 2026Just found out about Pretext, a pure JavaScript library that simplifies text measurement and layout without costly DOM reflows. #frontend… — @yellowduck.be5 likes and reposts · 1 reply
- Apr 7, 2026the HTML in canvas github.com/WICG/html-in... proposal is both a long awaited bliss AND an absolute blasphemy. I'll keep an eye on it… — @nicoptere.bsky.social5 likes and reposts · 3 replies
- Apr 2, 2026Mesurer et mettre en page du texte multiligne sans toucher au DOM, c'est possible — Pretext calcule tout en arithmétique pure sur des… — @humancoders.com4 likes and reposts · 1 reply
- May 22, 2026What if you added github.com/chenglou/pre... — @eriskii.net3 likes and reposts · 1 reply
- Apr 1, 2026Trying out pretext (github.com/chenglou/pre...) — @grantcuster.com3 likes and reposts · 2 replies
- Mar 30, 2026Pretext is a Typescript library that allows for super fast text reflow library without having to touch the DOM. github.com/chenglou/pre...… — @codepo8.bsky.social3 likes and reposts
- Mar 30, 2026https://github.com/chenglou/pretext Pretextは、JavaScript/TypeScript製のテキスト測定・レイアウトライブラリです。 DOMに触れずに高速かつ正確に複数行テキストの高さとレイアウトを計算できます。… — @topickapp.bsky.social3 likes and reposts
- Mar 29, 2026Pretext: TypeScript library for multiline text measurement and layout | Discussion — @hackernewsbot.bsky.social3 likes and reposts
- May 7, 2026Cheng Lou's pretext is an impressive frontend engineering feat. His thread is a great tour of what precise text measurement in the browser… — @kevindangoor.com2 likes and reposts · 1 reply
- Apr 9, 2026Pretext : une lib JS/TS pour mesurer et mettre en page du texte multiligne sans toucher au DOM — donc sans reflow. Multilingue, rapide, et… — @camilleroux.com2 likes and reposts
- Apr 2, 2026Finally, a tech advancement that we can be excited about. No seriously, this is a big deal. This a solution to a problem that has been… — @strawbat.bsky.social2 likes and reposts · 2 replies
- Mar 30, 2026It is generated using AI -- the dev writes (in reference to the engine): "This was achieved through showing Claude Code and Codex the… — @pkirn.bsky.social2 likes and reposts · 1 reply
- Mar 29, 2026#🔖テクノロジー GitHub - chenglou/pretext Pure JavaScript/TypeScript library for multiline text measurement & layout. Fast, accurate & supports… — @hatena-bookmark.bsky.social2 likes and reposts
- Mar 29, 2026I like this library. Pretext. It's solving a lot of problems especially with systems that don't support multiline text natively, like #SVG… — @g12n.de2 likes and reposts
- Mar 28, 2026DOMのリフローを発生させずにテキストの計測やレイアウトを行うJavaScriptライブラリ。 `getBoundingClientRect()`などのDOM計測を使わずに、正規化したテキストをセグメントに分解しOfflineCanv… ""… — @azu.bsky.social2 likes and reposts
- Mar 28, 2026AIコーディングするようになってからとにかくあらゆる分野の知識を深めることを目標にしていて、でもあまりに知らないことが多過ぎてかつあちこちに手を広げ過ぎていつも途方に暮れているんだけど、こういうの見てると方向性は間違ってないと改めて思うのだった… — @ykmsdjp.bsky.social2 likes and reposts
- Mar 28, 2026OK this looks pretty amazing: github.com/chenglou/pre... — @cmorrell.com2 likes and reposts
- Jun 7, 2026💎 一次ソースでは「DOMを触らない text measurement」「prepare()で前処理、layout()は pure arithmetic」「1000 blocks 約2ms」「比較図では500x… — @lutie-echosphere.bsky.social1 likes and repost
- Apr 5, 2026Well I just got jump scared by my YouTube Shorts showing someone singing the praises of this month-old, interestingly-named project.… — @clontz.org1 likes and repost · 1 reply
- Apr 2, 2026github.com/chenglou/pre... HOLY FUCKING SHIT — @ivancuric.npmx.social1 likes and repost
- Mar 30, 2026x.com/Techmeme/sta... "DOM을 건드리지 않고 여러 줄로 된 텍스트의 높이를 계산하는 문제를 해결하여 매우 유연한 레이아웃을 구현할 수 있게 해주는 새로운 JS 라이브러리인 ‘Pretext’" chenglou/pretext… — @lunamoth.bsky.social1 likes and repost
- Mar 30, 2026Pretext: 複数行テキストの測定とレイアウトのための TypeScript ライブラリ Pretext: TypeScript library for multiline text measurement and layout 🔺 326 💬 22 🔗 HN… — @hacker-news-jp.bsky.social1 likes and repost · 1 reply
- Mar 30, 2026Pretext: TypeScript library for multiline text measurement and layout View Article | Join the HN Conversation Summary of HN discussion 🧵👇 — @hncompanion.com1 likes and repost · 1 reply
- Mar 30, 2026Pretext: TypeScript library for multiline text measurement and layout https://github.com/chenglou/pretext… — @newsyc250.bsky.social1 likes and repost
- Mar 30, 2026Pretext: TypeScript library for multiline text measurement and layout https://github.com/chenglou/pretext… — @hn.rbrt.fr1 likes and repost
- Mar 30, 2026Pretext: TypeScript library for multiline text measurement and layout https://github.com/chenglou/pretext… — @newsyc200.bsky.social1 likes and repost
- Mar 30, 2026github.com/chenglou/pretext GitHub - chenglou/pretext — @technews4869.bsky.social1 likes and repost
- Mar 29, 2026GitHub - chenglou/pretext https://github.com/chenglou/pretext — @tech-trending.bsky.social1 likes and repost
- Apr 4, 2026holy shit Pretext! chenglou.me/pretext/bubb... github.com/chenglou/pre... www.youtube.com/watch?v=vd14... The JS library can calculate text… — @1a-insec.net0 likes and reposts · 1 reply
On YouTube · 25
- Mar 29, 2026Pretext: It uses pure JavaScript and arithmetic to measure text, completely bypassing the DOM — Github Awesome54k views · 21 comments
- Apr 3, 2026pretext is a bigger deal than you think — Wes Bos53k views · 108 comments
- Mar 30, 2026Everyone's Talking About Pretext (And Here's Why) — OrcDev14k views · 26 comments
- Apr 9, 2026Pretext is a Game Changer — Tom Is Loading7.6k views · 16 comments
- Mar 31, 2026This new JavaScript algorithm made CSS useless — CoderOne5.3k views · 38 comments
20 more on YouTube
- Jul 24, 2026Is This The Future Of Text Layout In The Browser? — Joy of Code5.2k views · 17 comments
- Mar 29, 2026Pretext Just Broke the Web UI Rules (and Devs Are Freaking Out) — Minute Tech5.2k views · 4 comments
- Apr 4, 2026This new pretext javascript algorithm is a CSS killer #javascript #typescript #pretext — CoderOne4.3k views · 2 comments
- Apr 2, 2026The React Motion Creator Just Shipped Something Insane #webdev #javascript #frontenddeveloper — Mad Hat Jerry | AI Tech3.6k views · 6 comments
- Apr 1, 2026Developers Are Going Crazy Over This - Pretext Library — Faultyogi3.3k views
- Mar 29, 2026Bad Apple but it’s a JS text renderer — Linguine2.2k views · 22 comments
- Mar 29, 2026Text Measurement Without DOM Reflows ⚡ Pretext #JavaScript #Shorts — Prism Labs1.6k views
- Mar 31, 2026This Code Solves a 15-Year Web Problem 😳 #codewithharpreet #programming #github — Code With Harpreet1.4k views
- Oct 18, 2026Pretext: Text That Flows Around Shapes — index.opensource1.4k views
- Apr 16, 2026crazy frontend library #itjobs #career — Amarjeet Sharma1.1k views
- May 31, 2026500x Faster Text Layout in 15KB, Zero Dependencies, by a React Core + Midjourney — Free #Shorts — GithubTrendssays it tested it1k views
- Apr 3, 2026Pretext: 15KB Library That's 300x Faster Than the DOM — Prism Labssays it tested it996 views · 2 comments
- Mar 29, 2026CSS 布局要被淘汰了?网页排版革命 Pretext,与 AI 的双向奔赴 — 为什么叫QQ703 views
- Jul 25, 2026I Put a Simple Physics Engine Inside Pretext (the Fastest Text Layout Engine) — Here's What Happened — WiseBuilder415 views
- Mar 30, 2026The Pretext Revolution — AI is changing the world186 views
- Mar 31, 2026pretext - GitHub Trending Today — GitHub Trending Digest180 views
- Mar 31, 2026The Slug + Pretext - explanation for study purposes, generated with NotebookLM — xsoulspace labs142 views · 1 comment
- Sep 7, 2026Pretext.js Explained — Measure Text Without DOM Reflow #JavaScript #WebDev — Agentic Engineering71 views
- Sep 2, 2026Pretext: Text Layout Without DOM Reflow — Straw Hat Devs46 views
- Aug 21, 2026React + Pretext로 텍스트를 피해 다니는 드래곤 | Pretext.js — BugYa15 views
On Hacker News · 3
- Mar 28, 2026Pretext: TypeScript library for multiline text measurement and layout397 points · 69 comments
- Mar 28, 2026Pretext: JavaScript/TypeScript library for multiline text measurement and layout6 points
- Mar 29, 2026Pretext3 points · 1 comment
On the web · 3
- Oct 14, 2026Pretext download — sourceforge.net
- Apr 8, 2026A guy named Cheng Lou shared Pretext is a pure TypeScript ... — facebook.com
- Mar 30, 2026Pretext Does What CSS Can't — Measuring Text Before the ... — hackernoon.comsays it tested it
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,157 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this agents.mdc into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
The licence could not be identified — read it at the source. We count its rules but don't quote them. Read them on GitHub.
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

