Hwei is an open-source, production-grade, headless e-commerce solution tailored for small to medium businesses. Designed to be modular, scalable, and developer-friendly, Hwei provides a robust backend, an admin panel, and customizable APIs for seamless storefront integration. Whether you're looking to launch your next online store or manage an existing business, Hwei empowers you to build and scale efficiently.
- Authentication: Secure JWT-based authentication with role-based access control.
- Product Management: Create, update, and manage products with support for multiple variants and categories.
- Inventory Tracking: Real-time stock updates and tracking.
- Order Management: Process orders with comprehensive order lifecycle tracking.
- Payment Integration: Out-of-the-box support for Stripe and other payment gateways.
- Admin Panel: Intuitive interface for managing the backend, built using Next.js.
- API-First Design: RESTful APIs for custom storefront and frontend integrations.
- Analytics Dashboard: Business insights including sales trends, inventory alerts, and order reports.
- Headless Architecture: Decouple the frontend from the backend for maximum flexibility.
- Multi-Tenancy: Support for multiple stores under one installation.
- Localization: Multi-language and currency support.
- Search & Filters: Optimized search and filter APIs for products.
- Customizable Roles: Define custom roles and permissions for admin users.
- SEO Ready: Metadata management and Open Graph integration.
- Extensible Modules: Add plugins or microservices as needed.
- Node.js: Backend logic and APIs.
- Express.js: Core server framework.
- PostgreSQL: Relational database for structured data.
- Redis: Caching and session management.
- Prisma: ORM for database management.
- Next.js: Admin dashboard with SSR and SSG support.
- TailwindCSS: Modern and customizable UI components.
- RESTful API: Flexible endpoints for frontend integration.
- Authentication: Secure JWTs with role-based permissions.
- Node.js (>= 18.x)
-
Clone the Repository
git clone https://github.com/yourusername/hwei.git cd hwei
-
Install Dependencies
npm install
-
Set Environment Variables Copy
.env.example
to.env
and configure your database, Redis, and API keys.cp .env.example .env
-
Run Database Migrations
npx prisma migrate dev
-
Start the Development Server
npm run dev
-
Access the Admin Panel Visit
http://localhost:3000
to explore the admin panel.
Hwei provides detailed API documentation for integrating your custom frontend. The documentation includes:
- Authentication: User login, logout, and role management.
- Products: Endpoints for managing products and categories.
- Orders: APIs for processing orders and tracking order statuses.
- Payments: Stripe integration for payment handling.
API Docs are available here.
Contributions are welcome! If you’d like to contribute to Hwei, please:
- Fork the repository.
- Create a feature branch.
- Submit a pull request with your changes.
- Run Backend:
npm run dev
- Run Admin Panel:
npm run dev:admin
- Lint Code:
npm run lint
- Run Tests:
npm run test
Roadmap is available here.
Hwei is released under the MIT License.
- Thanks to the open-source community for inspiration and tools.
- Designed and developed by AKVS with ❤️ for developers and business owners alike.