npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@webwriter/website-builder

v1.0.1

Published

Build, explore and understand static websites with different layouts (Freeform, Flow, Flex, Grid).

Readme

Website Builder (@webwriter/[email protected])

License: MIT | Version: 1.0.1

Build, explore and understand static websites with different layouts (Freeform, Flow, Flex, Grid).

Snippets

Snippets are examples and templates using the package's widgets.

| Name | Import Path | | :--: | :---------: | | Flex Starter | @webwriter/website-builder/snippets/flex-starter.html | | Flex Advanced | @webwriter/website-builder/snippets/flex-advanced.html | | Grid Starter | @webwriter/website-builder/snippets/grid-starter.html | | Grid Advanced | @webwriter/website-builder/snippets/grid-advanced.html | | Freeform Starter | @webwriter/website-builder/snippets/freeform-starter.html | | Freeform Advanced | @webwriter/website-builder/snippets/freeform-advanced.html | | Flow Starter | @webwriter/website-builder/snippets/flow-starter.html | | Flow Advanced | @webwriter/website-builder/snippets/flow-advanced.html |

WebwriterWebsiteBuilder (<webwriter-website-builder>)

Usage

Use with a CDN (e.g. jsdelivr):

<link href="https://cdn.jsdelivr.net/npm/@webwriter/website-builder/widgets/webwriter-website-builder.css" rel="stylesheet">
<script type="module" src="https://cdn.jsdelivr.net/npm/@webwriter/website-builder/widgets/webwriter-website-builder.js"></script>
<webwriter-website-builder></webwriter-website-builder>

Or use with a bundler (e.g. Vite):

npm install @webwriter/website-builder
<link href="@webwriter/website-builder/widgets/webwriter-website-builder.css" rel="stylesheet">
<script type="module" src="@webwriter/website-builder/widgets/webwriter-website-builder.js"></script>
<webwriter-website-builder></webwriter-website-builder>

Fields

| Name (Attribute Name) | Type | Description | Default | Reflects | | :-------------------: | :--: | :---------: | :-----: | :------: | | wwState (ww-state) | string | Saves the widget data in an attribute | "" | ✗ |

Fields including properties and attributes define the current state of the widget and offer customization options.

Methods

| Name | Description | Parameters | | :--: | :---------: | :-------: | | setActiveNodes | Set the freeform or ordered nodes array, depending on the current layout mode | next: BuilderNode[] | normalizeOrder | Sets the order attribute of each node to its position in the array | - | selectNodeId | Select a node based on its id | id: string | clearSelection | Clear the selection of nodes | - | getSelectedNode | Get the BuilderNode object of the selected node, if a node is selected | - | updateNode | Update the node with given id using a (partial) BuilderNode object | id: string, patch: Partial<BuilderNode> | deleteSelectedNode | Delete the selected node | - | blurActive | Blur the active element | - | isEditingWithinComponent | Returns whether the focus is currently on an element that accepts typing text | - | isInteractiveTarget | Returns whether the event target is an "interactive" element, that requires clicking for interaction | target: EventTarget | null | allowInteractEvent | Returns whether the interact key is pressed | _e: any | selectNodeFromWrapper | Select node from a wrapper click. Prevents link navigation unless ctrl/meta held.Uses _allowInteract (ctrl/meta key), NOT allowInteractEvent (A key). | e: MouseEvent, id: string | isAuthorMode | Whether the widget is currently in author mode (contenteditable) | - | isStudentMode | Whether the widget is currently in student mode | - | gridPlacementFromPointer | Get grid placement from pointer position | root: HTMLElement, clientX: number, clientY: number | getPaletteItems | Returns sorted, filtered list of component type IDs for the palette | - | quickAdd | Quickly add a node by type via the elements palette | type: string | groupSelected | Group the selected nodes | - | ungroupContainer | Ungroups the selected group of nodes | containerId: string | setCodeTabVisible | Set visibility of the code tab | tab: CodeTab, visible: boolean | openAllComponentsDialog | Open the all components dialog | -

Methods allow programmatic access to the widget.

Editing config

| Name | Value | | :--: | :---------: |

The editing config defines how explorable authoring tools such as WebWriter treat the widget.

No public slots, events, custom CSS properties, or CSS parts.


Generated with @webwriter/[email protected]