
Template details
Reglini
Open-source Next.js ecommerce template with Prisma, PostgreSQL, authentication, i18n, and PWA support.
About this template
Reglini is an open-source ecommerce template built with Next.js, Prisma, and TypeScript that powers the new version of reglini-dz.com, giving developers a production-ready storefront foundation with authentication, internationalization, and PWA support.
What is Reglini?
Reglini is a Next.js ecommerce template that generates a storefront from a product catalog and user accounts, producing a browsable shopping experience. It runs on Node.js and uses Prisma as its ORM, with PostgreSQL as the default database configured in prisma/schema.prisma; the datasource can be changed by editing this file and the URI in the .env file. The project is publicly available on GitHub at https://github.com/moh3a/reglini and is the codebase behind the reglini-dz.com store. Its stack includes TypeScript for type safety, Next.js for server-side rendering and API routes, and the repository topics list authentication, internationalization, and PWA support.
Key Features
- Next.js framework — Built on Next.js, with
npm run buildto compile the production bundle andnpm run startto serve it on your local network. - Prisma ORM with PostgreSQL — Data models are defined in
prisma/schema.prisma, and the connection URI is set in.env, making database changes straightforward. - Authentication — Authentication is included, as confirmed by the repository topics.
- Internationalization — i18n support is part of the template, allowing multi-language storefronts.
- PWA support — Progressive Web App features are included, so the storefront can be installed and work offline.
- TypeScript codebase — The entire project is written in TypeScript, giving compile-time type checking.
- Roadmap: featured promotions and hot products — The TODO file lists adding featured promotions and hot products to the storefront, indicating planned merchandising features.
Who is it for?
- Developers building ecommerce storefronts — They can clone the repo, run
npm i,npm run build, andnpm run startto launch a full storefront on their local network, then customize the Prisma schema and environment variables. - Businesses launching online stores — With authentication and internationalization already handled, businesses can focus on catalog setup and product data rather than boilerplate.
- Next.js and Prisma developers — Developers familiar with these technologies can quickly extend the template with new pages, API routes, or database models, following the patterns already in place.
What can you do with Reglini?
- Launch a storefront — Use the quickstart commands to get a production server running, then point it at your PostgreSQL instance by editing the
.envfile. - Swap the database — Change the Prisma provider from PostgreSQL to another database by modifying
prisma/schema.prismaand the connection string, as the documentation explains. - Plan merchandising features — The TODO list mentions adding featured promotions and hot products, so you can contribute these features to highlight products on the storefront.
How does Reglini work?
You start by cloning the repository: git clone https://github.com/moh3a/reglini.git. Then install dependencies with npm i, build the app with npm run build, and start the production server with npm run start. The app runs on your local network and connects to PostgreSQL by default, with instructions for changing the datasource in prisma/schema.prisma and the .env file.
FAQ
What is Reglini?
Reglini is an open-source ecommerce template built with Next.js, Prisma, and TypeScript. It is the codebase for the new version of reglini-dz.com and includes authentication, internationalization, and PWA support out of the box.
What tech stack does Reglini use?
Reglini uses Next.js as its framework, Prisma as its ORM, PostgreSQL as the default database, and TypeScript for static typing. The repository topics also confirm authentication, ecommerce, internationalization, and PWA features.
Is Reglini free to use?
The project is publicly available on GitHub and can be cloned with git clone https://github.com/moh3a/reglini.git. The repository does not include a license file in the provided content, but the code is distributed openly for anyone to download and run.
How do I change the database from PostgreSQL?
Open prisma/schema.prisma, change the provider to the database you want, and update the connection URI in the .env file. The quickstart documentation explicitly describes this workflow.
What is on Reglini's roadmap?
The project's TODO file lists fixing serverless function invocations, moving the buying flow away from localStorage, and adding featured promotions and hot products to the storefront.












