{"repo":"SergeantWeb/sveltekit-plugin-system","free":true,"listed":false,"github":"https://github.com/SergeantWeb/sveltekit-plugin-system","clone":"git clone https://github.com/SergeantWeb/sveltekit-plugin-system.git","description":"A tiny plugin system for SvelteKit — let self-contained \"plugins\" inject components, run actions, and transform data through filters at named locations across your app, without touching your core code.","language":"TypeScript","stars":13,"topics":["plugin-system","svelte","sveltekit","sveltekit-plugin","wordpress-hooks"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"sveltekit-plugin-system A tiny plugin system for SvelteKit — let self-contained \"plugins\" inject components , run actions , and transform data through filters at named locations across your app, without touching your core code. Think of it as WordPress-style hooks for SvelteKit: your app exposes named locations , and plugins (dropped into a plugins/ folder) hook into them. Works on both the server and the client . - Requirements: Svelte 5 and SvelteKit 2. (For Svelte 4 / SvelteKit 1, use 0.1.x .) --- Table of contents - Why - Concepts - Installation - Quick start - Writing a plugin - The three hook types - Components - Actions - Filters - Loading plugins - API reference - Tailwind compatibility - Examples - Contributing --- Why You want a codebase where features can be added or removed as drop-in folders — for a marketplace, a white-label product, optional modules, or simply to keep concerns separate. Instead of editing shared files every time, you expose extension points and let plugins attach to them. Concepts - Location — a named extension point (a plain string, e.g. \"after-content\" ). - Plugin — a folder containing an index.ts (or index.js ) whose default export is a function that receives the shared hooks object and registers hooks on locations. - Hook — what a plugin attaches to a location. There are three kinds: - a component to render, - an action to run (side effects), - a filter to transform a value. Installation Quick start 1. Register plugins in src/routes/+layout","default_branch":null,"files":null,"tree":[],"storefront":"/r/SergeantWeb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SergeantWeb/sveltekit-plugin-system/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}