
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Here is the updated README.md tailored for public users, removing local development steps and including your GitHub repository link.
The Strict Modular Architecture Generator for SvelteKit
sv-modular is a CLI tool designed to generate scalable, type-safe, and modular SvelteKit project structures. This tool enforces an architecture where every feature is perfectly isolated, enforcing a strict separation between UI State (Frontend) and Domain Logic (Backend/API).
🔗 Repository: https://github.com/firzaelbuho/sv-modular
You can run this library directly using npx / bunx or install it globally from the npm registry.
# Run directly without installation
bunx sv-modular create my-feature
# Or install globally
bun add -g sv-modular
# Install globally
npm install -g sv-modular
# Or using PNPM
pnpm add -g sv-modular
Creates a new page complete with an isolated Store, Service, and Components.
# Create a "user-dashboard" module
sv-modular create user-dashboard
# With a custom route path
sv-modular create auth-login --route auth/login
Creates REST API endpoints complete with CRUD Services, Dummy Data, and Specs.
# Format: <nested-folder>/<module-name>
sv-modular create-server bands/linkinpark/songs
create <name>Generates a Frontend/UI Module structure.
| Argument | Description | Example |
|---|---|---|
<name> | Module name in kebab-case format. | product-list |
--route | (Optional) Custom path for the SvelteKit route. | --route app/products |
Output:
src/lib/modules/<name>/ (Store, UI, Logic)src/routes/<route>/+page.svelte (Routing)module.jsoncreate-server <path>Generates a Backend/REST API Module structure.
| Argument | Description | Example |
|---|---|---|
<path> | Module path (can be nested). The final name will be pluralized for the route. | music/rock/albums |
Output:
src/lib/modules/<path>/ (Services, Types, Values, Spec)src/routes/api/<plural-path>/+server.ts (API Endpoints)src/lib/helpers/response.ts (Standard JSON Response)This project adopts a Strict Modularity approach :
src/lib/shared/.any. All data types must be defined.Every page is a module. The folder structure for UI modules is located in src/lib/modules/.
Example for user-profile:
src/lib/modules/user-profile/
├── UserProfilePage.svelte <- Main UI Component
├── store.ts <- Writable Store (State)
├── service.ts <- Business Logic (Mutations)
├── types.ts <- UI State Interfaces
├── values.ts <- Default Constants
└── components/ <- Module-specific Components
src/routes/...) must only contain imports to ModulePage.svelte. No logic is allowed in +page.svelte.store.update(...) inside .svelte files.service.ts (e.g., increment(), fetchUser()).src/lib/shared for shared code.The Backend is structured based on simple Domain Driven Design. API module structures are also located in src/lib/modules/ but are separate from the UI, and exposed via src/routes/api/.
Example command: sv-modular create-server bands/linkinpark/songs
src/lib/modules/bands/linkinpark/songs/
├── types.ts <- Data Model (Interface Song)
├── values.ts <- In-Memory Dummy Data (FAKE_SONG)
├── services.ts <- CRUD Logic (getAll, getById, insert...)
└── spec.md <- API Endpoint Documentation
The CLI automatically generates API routes with a Plural format:
GET /api/bands/linkinpark/songs (List & Filter)POST /api/bands/linkinpark/songs (Create)GET /api/bands/linkinpark/songs/:id (Detail)PUT /api/bands/linkinpark/songs/:id (Update)DELETE /api/bands/linkinpark/songs/:id (Remove)responseOk, responseBadRequest, etc.?address=... and ?age=....?s=keyword.This library mandates the use of TailwindCSS and DaisyUI to ensure consistency.
p-4, flex, text-center).btn, card, modal) and theming.max-w-5xl mx-auto for main content.HeroSection.svelte, ListSection.svelte) inside the module's components/ folder.py-10 or gap-6.md: and lg: for larger screens.<header>, <main>, <section>, <footer>.bg-primary, text-error) from the DaisyUI theme.This project is licensed under the MIT License.
Generated by sv-modular CLI
FAQs
CLI Generator for SvelteKit Modular Architecture
We found that sv-modular demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.