New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

svwc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svwc

Svelte on Web Components

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

svwc

Create Svelte client-side Web Components without any bundler.

Usage

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>My App</title>
  </head>
  <body>
    <svelte-component name="my-component" style="display: none">
      <script lang="ts" type="javascript/blocked">
        let { foo } = $props();
        let counter = $state(0);
        function increment() {
          counter += 1;
        }
      </script>
      <p>{foo}</p>
      <p>{counter}</p>
      <button onclick="{increment}">Increment</button>
    </svelte-component>
    <my-component foo="bar"></my-component>
    <script type="module" src="https://esm.sh/svwc"></script>
  </body>
</html>

FAQs

Package last updated on 09 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts