Create Svelte packages, build and push them to npm. This is part of the SvelteKit framework and CLI.
The quickest way to get started is via the create-svelte package:
npm create svelte@latest my-app
cd my-app
npm install
npm run dev
See the documentation to learn more.