Skip to content

feat: add svelte-starter-kit and CLI integration#3

Open
Moxypixy wants to merge 1 commit intoK-Kluster:masterfrom
Moxypixy:master
Open

feat: add svelte-starter-kit and CLI integration#3
Moxypixy wants to merge 1 commit intoK-Kluster:masterfrom
Moxypixy:master

Conversation

@Moxypixy
Copy link
Copy Markdown

@Moxypixy Moxypixy commented Jan 7, 2026

This PR integrates a new Svelte Starter Kit into the monorepo and updates the kaspa-starter-cli to support it.

The Svelte starter kit provides a feature-parity implementation of the existing React starter, demonstrating how to build Kaspa applications using Svelte 5 and the
@kluster/kaspa-wasm-web
SDK.

Key Changes

  1. New App: apps/svelte-starter-kit
    Added a complete Svelte 5 + Vite + TypeScript starter project.
    Includes modular features:
    BlockDAG Info: Visualizing current DAG state.
    Balance Checker: Real-time balance lookup.
    Live Blocks: Monitoring new blocks.
    Configured with TailwindCSS and shadcn-svelte for UI components.
    Includes vite.config.ts adjustments to ensure correct WASM SDK loading.
  2. CLI Updates: packages/kaspa-starter-cli
    New Option: Added "svelte" to the interactive project type selection.
    New Flag: Added --type <react|nodejs|svelte> flag to bypass interactive prompts (useful for CI/testing).
    Logic: Updated project initialization to handle Svelte dependencies and platform configuration ("web").
  3. Verification
    Added dev:svelte-starter-kit script to root package.json.
    Verified that the CLI correctly bootstraps a working Svelte application.
    Verified that npm run dev and npm run build work in the generated project.
    How to Test
    Build the CLI:
    npm run build --filter=kaspa-starter-cli
    Generate a Project:
    node packages/kaspa-starter-cli/dist/index.js --dev --type svelte

OR interactively:

node packages/kaspa-starter-cli/dist/index.js --dev
Run the App:
cd svelte-starter
npm run dev

@IzioDev
Copy link
Copy Markdown
Collaborator

IzioDev commented Feb 12, 2026

Hey @Moxypixy, I'm sorry I missed this.
100% wanted! More starters 🔥.

Could you please have a quick look at the conflicts before I proceed with the review? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants