onlook
AGENTS.md27k starsChanged 2 years agoApache-2.0View on GitHub
Actionable rules for repo agents—keep diffs minimal, safe, token‑efficient. - Monorepo managed by Bun workspaces (see root package.json). - App: apps/web/client (Next.js App Router + TailwindCSS). - API routes: apps/web/client/src/server/api/routers/*, aggregated in apps/web/client/src/server/api/root.ts. - Shared utilities: packages/* (e.g., packages/utility). - UI: Next.js App Router, TailwindCSS. - API: tRPC + Zod (apps/web/client/src/server/api/*). - Package manager: Bun only — use Bun for all installs and scripts; do not use npm, yarn, or pnpm. - Default to Server Components. Add use client when…
- Reads credentials
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about onlook-dev/onlook
- A Hacker News story“Show HN: Onlook – Open-source, visual-first Cursor for designers”Hacker News · May 29, 2025 · 408 points
- A Hacker News story“Show HN: An open-source, local-first Webflow for your own app”Hacker News · Aug 29, 2024 · 227 points
- A Hacker News story“Launch HN: Onlook (YC W25) – An open-source developer tool for designers”Hacker News · Nov 19, 2026 · 125 points
- @ponceto91.bsky.social“Dans ma vidéo d'hier je vous parlais de vide coding. Et bien voici onlook, un environnement visuel …”Bluesky · Jun 3, 2025 · 12 likes
- @midu.dev“¡Este proyecto es tendencia en GitHub! Y pinta brutal. Onlook fusiona Figma y Cursor para crear diseños …”Bluesky · Jun 4, 2025 · 9 likes
The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 56
Talked about on Bluesky, GitHub and Hacker News (56 times).
On Bluesky · 39
- Jun 3, 2025Dans ma vidéo d'hier je vous parlais de vide coding. Et bien voici onlook, un environnement visuel open-source de vibecoding pour les… — @ponceto91.bsky.social12 likes and reposts · 2 replies
- Jun 4, 2025¡Este proyecto es tendencia en GitHub! Y pinta brutal. Onlook fusiona Figma y Cursor para crear diseños web. ✓ Para Windows, macOS y Linux… — @midu.dev9 likes and reposts · 1 reply
- Feb 4, 2025Onlook : un éditeur visuel Open Source pour vos applications React Une application de bureau qui permet aux concepteurs et développeurs de… — @bearstech.com9 likes and reposts · 2 replies
- Jan 26, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 onlook-dev / onlook ⭐ 4,862 (+207) 🗒 TypeScript The open source Cursor for Designers. Design… — @github-trending.bsky.social7 likes and reposts
- Jun 3, 2025Tiens, tiens, Onlook : "An Open-Source Visual Vibecoding Editor" What could possibly go wrong? 👉 github.com/onlook-de... — @bearstech.com6 likes and reposts
34 more on Bluesky
- Jan 26, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 onlook-dev / onlook ⭐ 4,862 (+207) 🗒 TypeScript The open source Cursor for Designers. Design… — @github-trending-js.bsky.social4 likes and reposts · 1 reply
- Oct 13, 2026Onlook's branching and checkpoints say more than its chat UI. When prompts, drag and drop, and direct code edits all touch one app, history… — @iam.slys.dev3 likes and reposts
- Jan 13, 2026📦 onlook-dev / onlook ⭐ 23,931 (+42) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style,… — @github-trending-js.bsky.social3 likes and reposts
- Jun 3, 2025💎 Hidden Gem! 💎 (1000+ new stars) 📦 onlook-dev / onlook ⭐ 13,343 (+2,403) 🗒 TypeScript The Cursor for Designers • An Open-Source Visual… — @github-trending-js.bsky.social3 likes and reposts · 1 reply
- Feb 12, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 onlook-dev / onlook ⭐ 7,591 (+306) 🗒 TypeScript The open source Cursor for Designers. Design… — @github-trending.bsky.social3 likes and reposts
- Feb 11, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 onlook-dev / onlook ⭐ 7,414 (+274) 🗒 TypeScript The open source Cursor for Designers. Design… — @github-trending-js.bsky.social3 likes and reposts
- Apr 19, 2026📦 onlook-dev / onlook ⭐ 25,423 (+45) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style,… — @github-trending-js.bsky.social2 likes and reposts
- Jan 13, 2026📦 onlook-dev / onlook ⭐ 23,931 (+42) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style,… — @github-trending.bsky.social2 likes and reposts
- Nov 3, 2025📦 onlook-dev / onlook ⭐ 23,133 (+39) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style,… — @github-trending-js.bsky.social2 likes and reposts
- Jul 1, 2025📦 onlook-dev / onlook ⭐ 19,673 (+99) 🗒 TypeScript The Cursor for Designers • An Open-Source Visual Vibecoding Editor • Visually build,… — @github-trending-js.bsky.social2 likes and reposts
- Jun 14, 2025OSS Highlight of the week - Design like Figma, code like a pro, Onlook lets you visually edit your UI and sync changes directly to your… — @devshorts.in2 likes and reposts
- Jun 10, 2025OnLook - 디자이너를 위한 Cursor | GeekNews news.hada.io/topic?id=21365 onlook: The Cursor for Designers github.com/onlook-dev/o... — @lunamoth.bsky.social2 likes and reposts
- Feb 2, 2025デザイナーのためのAIアシスタント付きReactアプリケーションのデザインツール。 — @matsuu.bsky.social2 likes and reposts
- Sep 3, 2024Show HN: An open-source, local-first Webflow for your own app Show HN: オープンソース、ローカルファーストのウェブフローをあなたのアプリに 🔺 227 💬 20 🔗 HN Post | Article — @hacker-news-jp.bsky.social2 likes and reposts · 1 reply
- Nov 20, 2026Launch HN: Onlook (YC W25) – An open-source developer tool for designers https://github.com/onlook-dev/onlook/ [comments] [116 points] — @hnfeed.bsky.social1 likes and repost
- Nov 20, 2026Launch HN: Onlook (YC W25) – An open-source developer tool for designers https://github.com/onlook-dev/onlook/… — @hn100.atproto.rocks1 likes and repost · 1 reply
- Sep 29, 2026🚀 GitHub Intelligence Drop onlook (TypeScript • 🟢) ⭐ 26.8K → https://github.com/onlook-dev/onlook 12-factor-agents (TypeScript • 🟡) ⭐… — @githubfeed.bsky.social1 likes and repost
- Jan 14, 2026今日のGitHubトレンド onlook-dev/onlook Onlookは、Next.jsとTailwindCSSを用いたAIを活用したビジュアルファーストのコードエディタです。 ブラウザ上で直接DOMを編集し、リアルタイムにデザインとコードを連携させることができます。… — @dailygithubtrends.bsky.social1 likes and repost
- Oct 27, 2025📦 onlook-dev / onlook ⭐ 23,003 (+33) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style,… — @github-trending-js.bsky.social1 likes and repost
- Aug 30, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 onlook-dev / onlook ⭐ 22,173 (+126) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First… — @github-trending-js.bsky.social1 likes and repost
- Aug 26, 2025📦 onlook-dev / onlook ⭐ 21,671 (+65) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style,… — @github-trending.bsky.social1 likes and repost
- Aug 26, 2025📦 onlook-dev / onlook ⭐ 21,671 (+65) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style,… — @github-trending-js.bsky.social1 likes and repost
- Aug 14, 2025📦 onlook-dev / onlook ⭐ 21,384 (+38) 🗒 TypeScript The Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style,… — @github-trending-js.bsky.social1 likes and repost
- Jul 29, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 onlook-dev / onlook ⭐ 21,116 (+138) 🗒 TypeScript The Cursor for Designers • An Open-Source Visual… — @github-trending-js.bsky.social1 likes and repost
- Jun 4, 2025💎 Hidden Gem! 💎 (1000+ new stars) 📦 onlook-dev / onlook ⭐ 14,861 (+2,404) 🗒 TypeScript The Cursor for Designers • An Open-Source Visual… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 4, 2025今日のGitHubトレンド onlook-dev/onlook Onlookは、デザイナー向けのオープンソースのビジュアル優先コードエディタです。 AIを活用し、Next.js+TailwindCSSでウェブサイトなどを構築できます。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 3, 2025https://github.com/onlook-dev/onlook Onlookは、デザイナー向けのオープンソースなビジュアルファーストのコードエディタです。 Next.jsとTailwindCSSでWebサイトやプロトタイプをAIで作成できます。… — @topickapp.bsky.social1 likes and repost
- Jun 2, 2025今日のGitHubトレンド onlook-dev/onlook このリポジトリは、デザイナー向けのオープンソースのウェブ制作ツールOnlookの開発を目的としています。… — @dailygithubtrends.bsky.social1 likes and repost
- May 31, 2025今日のGitHubトレンド onlook-dev/onlook このリポジトリはデザイナーのための視覚優先オープンソースコードエディタOnlookのウェブ版開発を目的としています。… — @dailygithubtrends.bsky.social1 likes and repost
- Jan 27, 2025github.com/onlook-d... yug1224 starred onlook-dev/onlook - Onlookはデザイナー向けオープンソースのCursorで、Reactアプリ上で直接デザイン可能。 -… — @yug1224.com1 likes and repost
- Jan 26, 2025今日のGitHubトレンド onlook-dev/onlook このリポジトリは、ReactとTailwindCSSを使用するWebサイトやアプリ向けに、ブラウザ上で直接DOM編集を可能にするオープンソースのカーソルツール「Onlook」を提供します。… — @dailygithubtrends.bsky.social1 likes and repost
- Dec 14, 2024github.com/onlook-d... GitHub - onlook-dev/onlook: The open source, local-first Figma for React. Design directly in your live React app and… — @technews4869.bsky.social1 likes and repost
- Jun 3, 2025Show HN: Onlook – Open-source, visual-first Cursor for designers View Article | Join the HN Conversation Summary of HN discussion 🧵👇… — @hncompanion.com0 likes and reposts · 1 reply
- Jun 3, 2025Show HN: Onlook - オープンソース、ビジュアルファーストのデザイナー向けカーソル Show HN: Onlook – Open-source, visual-first Cursor for designers 🔺 320 💬 25 🔗 HN Post |… — @hacker-news-jp.bsky.social0 likes and reposts · 1 reply
On GitHub · 13
- Jun 4, 2025[feat] make an flatpak and host on flathub — onlook-dev/desktop1 reaction · 4 comments
- Nov 27, 2026[New Resource] Muse Autonomous Ingestion - 2026-11-27 (11 Gems) — ai717/free.itis.chat0 reactions · 1 comment
- Nov 20, 2026📰 Hacker News AI 社区动态日报 2026-11-20 — 96loveslife/big_model_radar0 reactions
- Nov 1, 2026Daily Review: `onlook-dev/onlook` — hsiangjenli/star-to-review0 reactions
- Oct 25, 2026Prove preview-only Next.js source instrumentation — anthony-jabbour/allstudio0 reactions · 4 comments
8 more on GitHub
- Jun 6, 2026[Add] Onlook (onlook-dev/onlook) — PyTorchKR/landscape0 reactions
- Oct 24, 2025bun install — oven-sh/bun0 reactions · 2 comments
- Oct 6, 2025Add missing AI coding tools: 8 new tools including code review, VS Code extensions, and IDE frameworks — johnhenry/awesome-ai-tools0 reactions · 2 comments
- Aug 8, 2025Header in built version but not dev version — fuma-nama/fumadocs0 reactions · 2 comments
- Jul 20, 2025[bug] the title of bug report — onlook-dev/desktop0 reactions
- Jun 10, 2025Onlook, the AI-Powered Visual Code Editor for Designers, Gains 18k Stars on GitHub / GitHubで18kスター獲得、デザイナー向けAIビジュアルコードエディタ『Onlook』 — xhiroga/news0 reactions
- Jun 4, 2025[bug] Login with GitHub not possible when using AppImage — onlook-dev/desktop0 reactions · 1 comment
- Sep 30, 2024Thanks for the package! — hymhub/css-to-tailwind0 reactions
On Hacker News · 4
- May 29, 2025Show HN: Onlook – Open-source, visual-first Cursor for designers408 points · 81 comments
- Aug 29, 2024Show HN: An open-source, local-first Webflow for your own app227 points · 51 comments
- Nov 19, 2026Launch HN: Onlook (YC W25) – An open-source developer tool for designers125 points · 87 comments
- Jun 4, 2025Onlook: The Cursor for Designers5 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
23 rules. About 0 are common, 9 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 30
Prefer local patterns and existing abstractions.
- Distinctive: line 31
Do not modify build outputs, generated files, or lockfiles.
- Distinctive: line 32
Use Bun for all scripts; do not introduce npm/yarn.
- Distinctive: line 33
Avoid running the local dev server in automation contexts.
- Very specific: line 38
Default to Server Components.
- Very specific: line 53
Use publicProcedure/protectedProcedure from apps/web/client/src/server/api/trpc.ts.
- Distinctive: line 65
Never pass server-only clients into client code.
- Very specific: line 72
Prefer env from @/env. In server-only helpers (e.g., base URL in src/trpc/helpers.ts), read process.env only for deployment vars like …
- Very specific: line 76
Import ./src/env in apps/web/client/next.config.ts to enforce validation.
- Very specific: line 80
Use path aliases: @/* and ~/* map to apps/web/client/src/* (see apps/web/client/tsconfig.json).
- Very specific: line 82
Do not import server-only modules into client components.
- Very specific: line 89
Create store instances with useState(() => new Store()) for stability across renders.
- Very specific: line 91
Keep active store in useRef.
- Very specific: line 93
Avoid useMemo for store instances.
- Distinctive: line 95
Avoid putting the store instance in effect deps if it loops.
- Very specific: line 107
Prefer existing UI components from @onlook/ui and local patterns.
- Distinctive: line 116
Keep keys stable; prefer additions over breaking renames.
- Very specific: line 130
Avoid useMemo to create MobX stores (risk of lost references).
- Distinctive: line 135
Search narrowly with ripgrep.
- Very specific: line 136
Read small sections; avoid node_modules, .next, large assets.
- Very specific: line 142
Run type checking with bun run typecheck
- Very specific: line 145
DO NOT run db:gen. This is reserved for the maintainer.
- Distinctive: line 146
DO NOT use any type unless necessary
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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.
Files
Onlook Agents Guide
Actionable rules for repo agents—keep diffs minimal, safe, token‑efficient.
Purpose & Scope
- Audience: automated coding agents working within this repository.
- Goal: small, correct diffs aligned with the project’s architecture.
- Non-goals: editing generated artifacts, lockfiles, or
node_modules.
Repo Map
- Monorepo managed by Bun workspaces (see root
package.json). - App:
apps/web/client(Next.js App Router + TailwindCSS). - API routes:
apps/web/client/src/server/api/routers/*, aggregated inapps/web/client/src/server/api/root.ts. - Shared utilities:
packages/*(e.g.,packages/utility).
Stack & Runtimes
- UI: Next.js App Router, TailwindCSS.
- API: tRPC + Zod (
apps/web/client/src/server/api/*). - Package manager: Bun only — use Bun for all installs and scripts; do not use npm, yarn, or pnpm.
Agent Priorities
- Correctness first: minimal scope and targeted edits.
- Respect client/server boundaries in App Router.
- Prefer local patterns and existing abstractions; avoid one-off frameworks.
- Do not modify build outputs, generated files, or lockfiles.
- Use Bun for all scripts; do not introduce npm/yarn.
- Avoid running the local dev server in automation contexts.
- Respect type safety and
Next.js App Router
- Default to Server Components. Add
use clientwhen using events, state/effects, browser APIs, or client-only libs. - App structure:
apps/web/client/src/app/**(page.tsx,layout.tsx,route.ts). - Client providers live behind a client boundary (e.g.,
apps/web/client/src/trpc/react.tsx). - Example roots:
apps/web/client/src/app/layout.tsx(RSC shell, providers wired, scripts gated by env). - Components using
mobx-react-lite'sobservermust be client components (includeuse client).
tRPC API
- Routers live in
apps/web/client/src/server/api/routers/**and must be exported fromapps/web/client/src/server/api/root.ts. - Use
publicProcedure/protectedProcedurefromapps/web/client/src/server/api/trpc.ts; validate inputs with Zod. - Serialization handled by SuperJSON; return plain objects/arrays.
- Client usage via
apps/web/client/src/trpc/react.tsx(React Query + tRPC links).
Auth & Supabase
- Server-side client:
apps/web/client/src/utils/supabase/server.ts(uses Next headers/cookies). Use in server components, actions, and routes. - Browser client:
apps/web/client/src/utils/supabase/client/index.tsfor client components. - Never pass server-only clients into client code.
Env & Config
- Define/validate env vars in
apps/web/client/src/env.tsvia@t3-oss/env-nextjs. - Expose browser vars with
NEXT_PUBLIC_*and declare in theclientschema. - Prefer
envfrom@/env. In server-only helpers (e.g., base URL insrc/trpc/helpers.ts), readprocess.envonly for deployment vars likeVERCEL_URL/PORT. Never useprocess.envin client code; in shared modules, guard withtypeof window === 'undefined'. - Import
./src/envinapps/web/client/next.config.tsto enforce validation.
Imports & Paths
- Use path aliases:
@/*and~/*map toapps/web/client/src/*(seeapps/web/client/tsconfig.json). - Do not import server-only modules into client components. Limited exception:
editor modules that already use
path; reuse only there. Never importprocessin client code. - Split code by environment if needed (server file vs client file).
MobX + React Stores
- Create store instances with
useState(() => new Store())for stability across renders. - Keep active store in
useRef; clean up async withsetTimeout(() => storeRef.current?.clear(), 0)to avoid route-change races. - Avoid
useMemofor store instances; React may drop memoized values leading to data loss. - Avoid putting the store instance in effect deps if it loops; split concerns (e.g., project vs branch).
observercomponents are client-only. Place one client boundary at the feature entry; child observers need not includeuse client(e.g.,apps/web/client/src/app/project/[id]/_components/main.tsx).- Example store:
apps/web/client/src/components/store/editor/engine.ts:1(usesmakeAutoObservable).
Styling & UI
- TailwindCSS-first styling; global styles are already imported in
apps/web/client/src/app/layout.tsx. - Prefer existing UI components from
@onlook/uiand local patterns. - Preserve dark theme defaults via
ThemeProviderusage in layout.
Internationalization
next-intlis configured; provider lives inapps/web/client/src/app/layout.tsx.- Strings live in
apps/web/client/messages/*. Add/modify keys there; avoid hardcoded user-facing text. - Keep keys stable; prefer additions over breaking renames.
Common Pitfalls
- Missing
use clientwhere needed (events/browser APIs) causes unbound events; a single boundary at the feature root is sufficient. - New tRPC routers not exported in
src/server/api/root.ts(endpoints unreachable). - Env vars not typed/exposed in
src/env.tscause runtime/edge failures. Preferenv; avoid newprocess.envreads in client code. - Importing server-only code into client components (bundling/runtime errors).
Note:
pathis already used in specific client code-editor modules; avoid expanding Node API usage beyond those areas. - Bypassing i18n by hardcoding strings instead of using message files/hooks.
- Avoid
useMemoto create MobX stores (risk of lost references); avoid synchronous cleanup on route change (race conditions).
Context Discipline (for Agents)
- Search narrowly with ripgrep; open only files you need.
- Read small sections; avoid
node_modules,.next, large assets. - Propose minimal diffs aligned with existing conventions; avoid wide refactors.
Notes
- Unit tests can be run with
bun test - Run type checking with
bun run typecheck - Apply database updates to local dev with
bun run db:push - Refrain from running the dev server
- DO NOT run
db:gen. This is reserved for the maintainer. - DO NOT use any type unless necessary
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.

