@fachada/core
v0.3.2
Published
The core of the Fachada framework
Maintainers
Readme
@fachada/core
The core of the Fachada framework — utilities, integrations and CLI to bootstrap Fachada apps.
Installation
yarn add @fachada/coreUsage
Main Export
import * as fachada from "@fachada/core";Astro Integration
import fachada from "@fachada/core/astro";Astro Templates
import LandingPage from '@fachada/core/astro/templates/LandingPage.astro';Vite Plugin
import fachadePlugin from "@fachada/core/vite";Development
Prerequisites
- Node.js 18+
- Yarn package manager
Build
Build the project using yarn:
yarn buildThis compiles TypeScript to JavaScript and copies Astro templates to the dist directory.
Testing
Run tests:
yarn testWatch mode for development:
yarn test:watchGenerate coverage report:
yarn test:coveragePrepare Hook
The package includes a prepare hook that automatically runs the build when the package is installed:
yarn run buildThis ensures the dist directory is always up-to-date.
Documentation
Framework Configuration
- Navbar Configuration Guide — Customize navbar layout, positioning, mobile behavior, and styling per-app. Complete property reference with 5 practical examples.
- Navbar Migration Guide — Adopt the navbar configuration system. Zero breaking changes; migration is opt-in. Backward compatibility guaranteed.
Configuration References
- AppConfig Interface — Aggregate root for application configuration (types only)
- NavbarConfig Interface — Full navbar configuration type definitions with JSDoc
Exports
| Export | Description |
| ------------------------------------- | ------------------------------------- |
| . | Main entry point with core utilities |
| ./astro | Astro framework integration |
| ./astro/templates/LandingPage.astro | Pre-built Astro landing page template |
| ./vite | Vite plugin for Fachada |
Project Structure
src/astro/— Astro integration, components, and templatessrc/navbar/— Navbar utilities and CSSsrc/vite/— Vite pluginsrc/cli/— Command-line interface for creating Fachada appssrc/utils/— Utility functionssrc/components/— Reusable componentssrc/context/— React context utilitiessrc/types/— TypeScript type definitionsdocs/— Configuration and migration guidessrc/stores/— State management storessrc/theme/— Theme configuration and utilitiessrc/widgets/— Widget components
License
GPL-3.0-or-later
