slicejs-web-framework
v4.0.0
Published
<div align="center"> <img src="readme_images/Slice.js-logo.svg" alt="Slice.js logo" width="150" /> <h1>Slice.js</h1> <p>Component-Based Web Development Framework</p> <p> <a href="https://slice-js-docs.vercel.app/Documentation"><strong>Explore
Readme
About this repository
This repository contains the core of the Slice.js framework: the component runtime, routing system, bundle engine, and framework API. It is the package published as slicejs-web-framework on npm.
Prerequisites
- Node.js >= 20
- npm or pnpm
Local development
Clone the repository
git clone https://github.com/VKneider/slice.js.git cd slice.jsInstall dependencies
npm installInitialize a test project (optional, for CLI-based development)
npx slicejs-cli initTest changes locally
npx slicejs-cli dev
Available commands
The framework does not expose commands directly. Use it through the CLI (slicejs-cli):
| Command | Description |
|---------|-------------|
| npx slicejs-cli init | Initialize a Slice.js project |
| npx slicejs-cli dev | Start development server |
| npx slicejs-cli build | Build for production |
| npx slicejs-cli start | Serve production build |
Documentation
Full documentation is available at slice-js-docs.vercel.app.
Slice.js also provides an MCP server for programmatic documentation access:
npx slicejs-mcpThis allows AI assistants and tools to query, search, and retrieve Slice.js documentation.
Project structure
slice.js/
├── api/ # Framework API server
├── src/ # Runtime source code
│ ├── App/ # Application engine
│ ├── Components/# Component system
│ └── ... # Routing, bundles, utilities
├── Slice/ # Visual component framework
├── types/ # TypeScript declarations
└── docs/ # Contribution guidesContributing
We welcome contributions. Please review the guidelines in CONTRIBUTING.md before submitting changes.
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Slice.js - @VKneider
Project Link: https://github.com/VKneider/slice.js
