Svelte 5 embed components for media and social platforms, built as a pnpm monorepo with:
packages/sveltekit-embeds: the component libraryapps/web: a demo app that consumes the library via workspace linkingThe library currently includes components for:
All components support lazy rendering through GeneralObserver.
corepack enable
pnpm install
Run the library playground:
pnpm dev:lib
Run the demo app:
pnpm dev:web
Run workspace checks:
pnpm check
Run library unit/browser tests:
pnpm --filter sveltekit-embeds test:unit
Build and lint the published library output:
pnpm --filter sveltekit-embeds prepack
Prerequisites:
npm loginRecommended release flow from repo root:
pnpm install
pnpm release:check
pnpm release:dry-run
pnpm --filter sveltekit-embeds exec npm version patch
pnpm release:publish
If you need a different semver bump, use npm version minor or npm version major instead of npm version patch.
.
├── apps/
│ └── web/ # Demo app
├── packages/
│ └── sveltekit-embeds/ # Library package
├── package.json # Workspace scripts
└── pnpm-workspace.yaml
packages/sveltekit-embeds/README.mdapps/web/README.md