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

sweetweb-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sweetweb-cli

The official compiler for SweetWeb (.sw) - A domain-specific language for rapid full-stack web development.

latest
npmnpm
Version
1.2.6
Version published
Maintainers
1
Created
Source

SweetWeb CLI

The official command-line compiler for SweetWeb (.sw).

Installation

npm install -g sweetweb-cli

Usage

Create a new project

sweetweb new my-app
cd my-app

Build your project

sweetweb build site.sw

This will compile your .sw files into a dist/ folder containing standard HTML, CSS, and JS.

Syntax Cheat Sheet

Structure

  • [stack]: Vertical layout (Column)
  • [row]: Horizontal layout (Row)
  • [grid columns 3]: Grid layout

Scripts & Styles (v4.3)

  • [js link "utils.js"]: Link external JavaScript
  • [css link "style.css"]: Link external CSS
  • [js] console.log("Inline") [/js]: Inline Block
  • [css] body { background: red } [/css]: Inline Block

Basic Elements

  • [text "Hello"]
  • [button "Click Me" link "/about"]
  • [input placeholder "Type..."]
  • [image "url"]

Web Components

  • [view "https://example.com" width "100%" height 500]
  • [youtube "VIDEO_ID"]
  • [badge "New"]
  • [avatar "image_url"]

Backend API

  • [api "/user/:id"] ... [/api]: Define serverless functions.
  • [api "/py" lang "python"]: Define Python endpoints.

Features

  • Zero Config: Just run build.
  • Component System: Import reuseable parts.
  • Server Functions: Automatically generates serverless function files.
  • Modern UI: Built-in support for Grid, Stack, Alerts, and more.

Keywords

sweetweb

FAQs

Package last updated on 26 Jan 2026

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