sommark-web
v3.1.1
Published
SomMark Web is a lightweight web framework and high-performance Static Site Generation using Vite and the SomMark engine.
Maintainers
Readme
What is SomMark Web?
SomMark Web is a lightweight web framework and high-performance Static Site Generation (SSG) using Vite and the SomMark engine. It is powered by the SomMark Engine, a template language designed to be the structural foundation of your content.
Features
- Auto-routing — Every
.smarkfile insrc/pagesis a page. - Dynamic routing — Data-driven pages generated per slug from any async data source.
- Module system — Reusable layouts and components with
[import]and[slot]. - Built-in api(s) —
getPages(),getMetadata(),getHeadings(),glob(),getData(), and more available in every file. - SEO automation — Generates
sitemap.xml,robots.txt, and audits pages on build. - HMR — Changes reflect instantly in the browser during development.
- Zero runtime weight — Compiles to plain HTML. No framework JS shipped to the browser unless you add it.
Quick Start
Installs a ready-to-use project template so you can start a SomMark Web site immediately.
npx create-sommark-web@latestUse as a Plugin
Already have a Vite project? Install SomMark Web as a plugin and drop it into your existing setup.
npm install sommark-web// vite.config.ts
import { defineConfig } from "vite";
import sommarkWeb from "sommark-web";
export default defineConfig({
plugins: [sommarkWeb()]
});License
MIT © Adam Elmi Eid
