📄️ Context
One major feature in Pashmak is context. It allows for separating processes safely without sharing sensitive data between them. It also leaves flexibility to share resources among different processes.
📄️ Facades
Facades in Pashmak provide a clean, convenient interface to access framework services. They act as static-like proxies to underlying service instances, giving you a simple and expressive syntax while maintaining flexibility and testability.
Pashmak provides a simple way to send emails using different drivers.
📄️ File Storage
Pashmak uses neko-storage module to manage files. This is a unified file storage library that supports multiple storage providers while providing a simple intermeow interface to manage files.
📄️ Helpers
Set of useful helper functions.
📄️ Logger
Pashmak provides a simplified logging system built on top of Pino, allowing you to record important information during execution.
📄️ Middleware
Just like any other web frameworks, Pashmak supports middlewares. Middlewares are pieces of code that wrap execution of controller methods. They can be used for various purposes such as authentication, logging, request modification, response modification, etc. Middlewares are functions, objects, or classes that can execute with direct access to the request and response objects. The main distinction between middlewares in Pashmak vs nestjs or express is that middlewares can execute code before AND after the controller method.
📄️ Queue and Messaging
The concept of the queue is to allow messages to be sent using connections an queue.
📄️ Scheduler and Cron Jobs
Every system needs to run some tasks periodically. Pashmak provides a simple way to define and run scheduled tasks using cron syntax.
📄️ Cache
Caching is a mechanism for storing data in a temporary storage area to reduce the time it takes to access that data in the future.
📄️ Validation
Pashmak does not implement its own validation library. Instead, it provides built-in validation support through the @ValidatedRequest decorator, which integrates with popular validation libraries like Yup and Zod.
📄️ API Documentation Generation
Pashmak includes a built-in command to help you generate OpenAPI 3.0 documentation. This makes it easy to maintain up-to-date API documentation without manual effort.