🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

create-liteship

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-liteship

Scaffold a minimal Astro + @czap project — `npm create liteship` and you're rendering boundaries in five minutes

latest
Source
npmnpm
Version
0.9.0
Version published
Maintainers
1
Created
Source

create-liteship

Scaffold a minimal Astro + @czap project — the "first five minutes" of constraint-based adaptive rendering, working on the first pnpm dev.

One command

npm create liteship
# or
pnpm create liteship my-liteship-app

With no directory argument you are prompted (default: my-liteship-app). The target must be empty or not exist yet — scaffolding never overwrites your files.

What it scaffolds

A complete adaptive loop in nine files:

my-liteship-app/
├── README.md                           # run instructions + optional @czap/genui path
├── astro.config.ts                     # @czap/astro integration, boundary/token dirs wired
├── package.json
├── tsconfig.json
├── .gitignore
└── src/
    ├── boundaries/layout.boundaries.ts # ONE Boundary: viewport.width → mobile/tablet/desktop
    ├── tokens/base.tokens.ts           # design tokens (compiled to --czap-* custom properties)
    ├── layouts/Base.astro              # @token blocks resolve against the token defs
    └── pages/index.astro               # ONE Satellite element + ONE @quantize block

The page's satelliteAttrs({ boundary: layout }) element and its @quantize layout { ... } style block share the same boundary export: the @quantize block compiles to static @container queries at build time, and the satellite runtime drives data-czap-state updates on the client. Resize across 768px / 1280px and watch both halves agree.

Next steps (printed after scaffolding)

cd my-liteship-app
pnpm install   # or npm install
pnpm dev       # or npm run dev

Then edit src/pages/index.astro — add a state to the boundary in src/boundaries/layout.boundaries.ts and both the compiled CSS and the runtime pick it up.

For structured LLM UI (optional), add @czap/genui and follow GETTING-STARTED — Generated UI. The scaffold's README.md repeats the install line.

License

MIT

Keywords

create-liteship

FAQs

Package last updated on 09 Jul 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