Point of sale
Find products by name, SKU or barcode to build a sale and move on to payment.
Our product · Live
Retail management in one place.
Marfen brings sales, inventory, cash management and reporting together for everyday retail operations. It is a product designed and developed by mgalvan.dev.

The images in this case study come from an isolated demonstration environment and use synthetic data. They are not customer metrics, commercial results or an independent verification of every system rule. The architecture is described according to the project documentation.
The context
A sale, an inventory update and a cash movement are parts of the same operation. When that information lives in separate places, understanding the state of the business requires bringing it together.
Marfen starts from that need: keeping daily management in one place so information can follow the operation instead of interrupting it.
The solution
Marfen brings retail management functions into one platform. It supports recording sales, checking products and inventory, managing cash and reviewing business information.
The product is built for businesses that need to move quickly while keeping a clear view of their activity.
The solution
Find products by name, SKU or barcode to build a sale and move on to payment.
Organize products and stock, with the detail needed to know what is available.
Configurable payment methods and cash movements to follow the day's operation.
Record purchases and access supplier information within the same management flow.
Keep customer records and follow the movements on their accounts.
Review profitability reports and manage multiple locations to read the business as a whole.
The product in use
The sales flow brings together product selection, quantities and payment. Inventory checks support that journey with the information available at the time.
Reports provide a view of sales, costs and results for a selected period. The screenshots in this section show product screens with demonstration data.



Engineering
The documented architecture describes a clear path from the interface to server actions, services, repositories and the database. Actions validate input and re-check permissions before business rules run.
The domain and architecture documentation describe the organization as the boundary between businesses. Queries are scoped to an organization and composite keys limit references across separate accounts.
Each branch keeps its own operational context, including inventory, prices and cash. Catalog and customer data are shared at the organization level, while stock and prices belong to the branch.
Services hold business rules and transactions, while repositories handle data access. The documentation also describes atomic inventory updates, historical cost snapshots on sales and checkout idempotency.
The application uses Next.js with the App Router, React, TypeScript, PostgreSQL and Drizzle ORM. Business code is organized by feature, with routes kept separate from each domain's logic.
The documentation describes unit and component tests, PostgreSQL integration tests and end-to-end flows. It also records coverage limits and outstanding integration cases; this is not a fresh verification of the full suite.