UNPKG

axcora

Version:

Modern and Super Light Static Site Generator

165 lines (114 loc) β€’ 4.08 kB
# Axcora Framework [![npm version](https://img.shields.io/npm/v/axcora.svg?style=flat-square)](https://npmjs.com/package/axcora) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Support](https://img.shields.io/badge/Support-Donate-blue)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JVZVXBC4N9DAN) > **All-in-One Static Site Generator & CSS Framework** > Build modern, responsive static sites with a powerful build system, reusable UI components, auto-SEO, and built-in dark modeβ€”all in one toolkit. --- ## 🌐 Documentation - πŸ“š [Official Docs](https://ssg.axcora.com) - 🧩 [Component Library](https://ssg.axcora.com/components) --- ## ✨ Overview **Axcora** is a full-featured toolkit to build beautiful, lightweight, high-grade static websites easily. Combine a next-gen static site generator (Markdown/YAML/templating) with a modular CSS framework and rich UI component library β€” ideal for blogs, docs, portfolios, or any modern web project. --- ## πŸš€ Key Features - **Automatic Static Site Generation:** Every markdown file in the `content/` directory becomes a fully linked page, blog post, tag, and category, with slugs and navigation auto-generated. - **Modular Templating with `.axcora`:** Use `.axcora` templates, layouts, partials, blocks, slots, and frontmatter for flexible, composable, DRY page structures. - **Built-in CSS Framework:** No third-party CSS required: comes bundled with modern, minified CSS for every component, dark mode, utility classes, and responsive layouts, powered by Axcora. - **Automatic, Page-Level SEO:** Meta tags, Open Graph, canonical links, sitemaps and RSS are built for you, every buildβ€”no plugin or config needed. - **Per-Page CSS Minification:** CSS is bundled and minified by page for ultra-fast CDN delivery. - **Lightning-fast Search Index:** Creates a full-text JSON index for blazing-fast, local search. - **Ready for Any Hosting:** Deploy to Netlify, Vercel, GitHub Pages, Cloudflare β€” any static host. --- ## 🏁 Getting Started ### 1. Installation Requires **Node.js v20+** Quick Start ```bash npm install axcora axcora -V axcora init myproject cd myproject npm install axcora dev open localhost:3000 axcora build upload your public folder in to your host axcora serve ``` ### 2. Initialize and Build ```bash npx axcora init myproject cd myproject npm install npm run build ``` ### 3. Start Development Server ```bash axcora dev or npm run dev ``` Open your browser at `http://localhost:8080` (default) to preview. ### 4. Build for Production ```bash axcora build or npm run build ``` ### 5. Serve Production Build ```bash axcora serve or npm start ``` --- ## 🎨 Using the CSS Framework **Via NPM:** ```bash npm install axcora ``` **Or inject via CDN:** ```html <link href="https://cdn.jsdelivr.net/npm/axcora-css@1.0.1/axcora.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/axcora-js@1.0.1/axcora.min.js"></script> ``` --- ## πŸ“‚ Example Project Structure ``` myproject/ β”œβ”€β”€ content/ β”‚ β”œβ”€β”€ index.md β”‚ └── blog/ β”œβ”€β”€ src/ β”‚ └── templates/ β”œβ”€β”€ static/ β”‚ └── img/ β”œβ”€β”€ axcora.config.ts └── package.json ``` --- ## πŸ“¦ Bundle Sizes - **Base:** 15.6 KB - **Essentials:** 19.6 KB - **Minified:** 43.7 KB - **JavaScript:** 11.8 KB --- ## πŸ™Œ Support This Project - [Donate via Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JVZVXBC4N9DAN) - [Sponsor on Github](https://github.com/sponsors/mesinkasir) - [Coffee/Gumroad](https://creativitaz.gumroad.com/coffee) --- ## πŸ”— License This project is licensed under the [MIT License](LICENSE). --- > Built & maintained by **Axcora Tech** β€” fast, scalable, and open source static site tooling for creators, developers, and teams.