├── .nvmrc ├── .npmrc ├── src ├── routes │ ├── +layout.ts │ ├── +layout.svelte │ └── +page.svelte ├── app.css ├── lib │ ├── index.ts │ └── components │ │ ├── RenderScanObserver.css │ │ ├── Logo.svelte │ │ ├── RenderScan.svelte │ │ └── RenderScanObserver.svelte ├── app.d.ts └── app.html ├── .aidigestignore ├── .prettierignore ├── static ├── favicon.png └── og-image.jpg ├── .github ├── render-scan-demo.gif └── workflows │ └── build.yml ├── postcss.config.js ├── .prettierrc ├── .gitignore ├── tailwind.config.ts ├── vite.config.ts ├── tsconfig.json ├── svelte.config.js ├── eslint.config.js ├── LICENSE ├── README.md └── package.json /.nvmrc: -------------------------------------------------------------------------------- 1 | 22 -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /src/routes/+layout.ts: -------------------------------------------------------------------------------- 1 | export const prerender = true; 2 | -------------------------------------------------------------------------------- /.aidigestignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .prettier* 3 | eslint* 4 | postcss* 5 | docs -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | # Package Managers 2 | package-lock.json 3 | pnpm-lock.yaml 4 | yarn.lock 5 | -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khromov/svelte-render-scan/HEAD/static/favicon.png -------------------------------------------------------------------------------- /static/og-image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khromov/svelte-render-scan/HEAD/static/og-image.jpg -------------------------------------------------------------------------------- /.github/render-scan-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khromov/svelte-render-scan/HEAD/.github/render-scan-demo.gif -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {} 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /src/app.css: -------------------------------------------------------------------------------- 1 | @import 'tailwindcss/base'; 2 | @import 'tailwindcss/components'; 3 | @import 'tailwindcss/utilities'; 4 | -------------------------------------------------------------------------------- /src/lib/index.ts: -------------------------------------------------------------------------------- 1 | // Reexport your entry components here 2 | export { default as RenderScan } from './components/RenderScan.svelte'; 3 | export { default as RenderScanObserver } from './components/RenderScanObserver.svelte'; 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": true, 3 | "singleQuote": true, 4 | "trailingComma": "none", 5 | "printWidth": 100, 6 | "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], 7 | "overrides": [ 8 | { 9 | "files": "*.svelte", 10 | "options": { 11 | "parser": "svelte" 12 | } 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /src/app.d.ts: -------------------------------------------------------------------------------- 1 | // See https://svelte.dev/docs/kit/types#app.d.ts 2 | // for information about these interfaces 3 | declare global { 4 | namespace App { 5 | // interface Error {} 6 | // interface Locals {} 7 | // interface PageData {} 8 | // interface PageState {} 9 | // interface Platform {} 10 | } 11 | } 12 | 13 | export {}; 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | 3 | # Output 4 | .output 5 | .vercel 6 | .netlify 7 | .wrangler 8 | /.svelte-kit 9 | /build 10 | /dist 11 | 12 | # OS 13 | .DS_Store 14 | Thumbs.db 15 | 16 | # Env 17 | .env 18 | .env.* 19 | !.env.example 20 | !.env.test 21 | 22 | # Vite 23 | vite.config.js.timestamp-* 24 | vite.config.ts.timestamp-* 25 | codebase.md -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- 1 | import forms from '@tailwindcss/forms'; 2 | import typography from '@tailwindcss/typography'; 3 | import type { Config } from 'tailwindcss'; 4 | 5 | export default { 6 | content: ['./src/**/*.{html,js,svelte,ts}'], 7 | 8 | theme: { 9 | extend: {} 10 | }, 11 | 12 | plugins: [typography, forms] 13 | } satisfies Config; 14 | -------------------------------------------------------------------------------- /src/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | %sveltekit.head% 8 | 9 | 10 |132 | Watch your components update in real-time. Perfect for debugging reactivity and performance 133 | issues. 134 |
135 | 136 | 137 |141 | Try switching the highlight colors on this page below! 142 |
143 | 144 |{feature}
205 |Install
215 |SvelteKit
243 |Add to your root +layout.svelte file to enable the component in all pages:
244 |Vanilla Svelte
249 |Start with render scanning disabled by default:
259 |265 | Move the button left to avoid overlapping with other UI elements: 266 |
267 |273 | Hide the render scan button while keeping functionality active: 274 |
275 |281 | Adjust how long the render scan highlights remain on screen (default=1000): 282 |
283 |289 | Optional user defined function that gets called once per valid mutation: 290 |
291 |Use multiple props together:
297 |303 | GitHub 304 |
305 |306 | © {new Date().getFullYear()} svelte-render-scan · Version {pkg.version} 307 |
308 | 309 | {#if mounted} 310 |