Kashmir Shaiva Institute
Translating an ancient tradition into a modern digital experience. By focusing on the organization's unique constraints, I engineered a multi-tenant architecture and a bespoke request-to-order commerce.
Performance
Best Practices
Engineering narrative.
The Architecture
Multi-Tenant Edge Routing
The Organization operates across different regional domains. Instead of building isolated apps, I designed a single Next.js codebase. Using Edge Middleware, the server dynamically resolves the tenant based on the URL, serving localized content and themes with zero client-side overhead.
Performance
The Trunk and the Leaves
I treat React Server Components as the 'trunk' of a tree—handling heavy tasks like Contentful queries and routing. The ''use client'' directive is reserved strictly for the 'leaves': interactive islands powered by Framer Motion and Zustand. This keeps the JS bundle incredibly lean.

Business Logic
E-Commerce by Policy
Strict copyright policies meant a standard checkout wasn't legally viable. I designed a bespoke 'Request-to-Order' flow instead (If you want to see a standard Shopify flow, check out my Silvestra case study). Using React 19 Server Actions, the system gracefully bifurcates domestic shipping and international requests, ensuring the architecture adapts to the business reality, not the other way around.
Strictly Typed
Mutations
Contentful provides the flexible editorial data, while TypeScript provides the strict guardrails. I integrated GraphQL Codegen to ensure zero runtime errors, pairing it with Zod and Resend for secure, type-safe server mutations.
Contentful CMS
Headless ContentEditorial control over philosophy texts and institute data.
Zustand Store
Local HydrationPersistent cart state synchronized cleanly on the client.
Server Actions
Next.js 16 MutationsZero-JS form submissions handling the core 'Request' logic.
Zod & Resend
Type-Safe DispatchStrict runtime validation before securely emailing the organization.
Server Actions executing request-scoped validation with Zod and handling secure API keys exclusively on the server.
Editorial
Aesthetics.
The UI embraces an editorial, print-inspired aesthetic. I used Tailwind v4 to map contextual color primitives (Saffron, Himalaya, Parchment) into an organic interface, animated with slow, deliberate spring physics.
The technical
decisions behind the code.
When building for an institution with a deep legacy, stability is paramount. I established these core principles to ensure the platform remains robust, maintainable, and respectful to the user.
Multi-Tenant Edge
Built to scale horizontally. Adding a new regional ashram only requires updating the routing logic, keeping the codebase completely DRY and centralized.
Business-Driven Logic
I adapted the engineering to meet strict organizational and legal policies. If you want to see a standard Shopify flow, check out my Silvestra case study.
Organic Motion
A purely static page can feel disconnected. I used Framer Motion's spring physics to create a breathing, calm interaction flow that respects the philosophical subject matter.
Server-First Mentality
By leveraging React 19 Server Components and Server Actions, the client ships almost zero JavaScript for core routing and form submissions.
Engineering
Trade-offs.
Every project is a series of decisions. Here are the critical pivot points where I had to balance technical purity with business reality.
Constraints breed elegant UI
One of the biggest UX challenges here was legal, not technical. Building a robust bifurcation for International vs. Domestic users inside the cart reminded me that engineering is about solving business constraints gracefully, rather than just writing code.
The Power of the Leaf
Pushing state management (Zustand) to the absolute 'leaves' of the component tree prevented hydration bottlenecks, allowing complex layouts to be served as static HTML for blazingly fast performance.