Changelog
Version 1.3.3
Highlights
-
✅ Official documentation site published (VitePress) and deployed to GitHub Pages: https://matheuscampagnolo.github.io/kaelum/
-
✅ CI workflow added to build docs and publish the static output to
gh-pagesautomatically whenmainis updated. -
✅ Packaging improvements
.npmignoreupdated (excluded.github,docs, and other non-shipping files).package.jsonmetadata improved for npm readiness.- Project version bumped to v1.3.3.
CLI
npx kaelum create— interactive project generator with templates:webtemplate (static + views + middleware scaffold)apitemplate (REST scaffold with controllers and middleware)
Core helpers (CommonJS usage)
const kaelum = require('kaelum');const app = kaelum();Key functions:
-
app.setConfig(options)— configure built-in features:{ cors, helmet, static, bodyParser, logs, port }
-
app.start(port, callback)— starts the HTTP server (port fallback to config or default) -
app.addRoute(path, handlers)— register routes; accepts:- a single handler (assumed GET), or
- an object with HTTP methods
{ get, post, put, delete, ... }
-
app.apiRoute(resource, handlers)— build RESTy resource trees with nested subpaths (e.g./:id) -
app.setMiddleware(...)— register middleware(s), arrays or mount under a path -
app.redirect(from, to, status)— helper to register redirects -
app.healthCheck(path = '/health')— standard health endpoint -
app.useErrorHandler(options)— attaches Kaelum’s JSON error handler
Notable fixes & changes in v1.3.3
ci(docs): Added GitHub Actions workflow to build docs and publish the static site to thegh-pagesbranch.chore: Added.npmignoreentries to exclude.github,docsand other non-shipping files from npm package.fix(docs): Added dependency override and regenerateddocs/package-lock.jsonto avoid a brokendebug@4.4.2resolved URL in CI.docs: Updated README with badges and link to the hosted documentation.
Post-release notes & next steps
- Expand
setConfigin a future release (e.g., add logging configuration, extended static options). - Add a CI job to publish GitHub Release artifacts automatically (optional).
- Consider publishing prebuilt templates / starters as separate packages or templates repo.
Thanks to everyone who contributed and tested the docs build. Feedback and PRs are welcome — see the docs for contribution pointers.