Skip to content
Warlock.js v4

Core

@warlock.js/core is the framework. It defines the HTTP layer (routing, controllers, middleware, request/response helpers), the module conventions every Warlock app follows, the connector lifecycle that boots and shuts down the other packages, and the CLI you use to scaffold + install everything.

If you’re new, start with Getting Started — five short pages take you from <pm> create warlock to your first route serving real traffic.

  • HTTP server powered by Fastify, with routing, middleware, and a curated set of response helpers (response.success, response.notFound, …).
  • Module conventionssrc/app/<module>/{routes,controllers,services,…}/ with predictable file naming and clear boundaries.
  • Connectors — the auto-wiring layer that boots @warlock.js/cascade, @warlock.js/cache, @warlock.js/herald, @warlock.js/logger, mail, storage, and sockets at startup.
  • CLIwarlock dev / warlock build / warlock add <feature> and a generator suite (warlock generate.module, …controller, …repository).
  • Validation, encryption, mail, file uploads, image processing, benchmarking, retry helpers — the boring reliable pieces, already built and already wired.