Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#React

Custom Zustand Middleware for Advanced E-commerce Logging and Debugging

Customize the variables below to instantly engineer your prompt.

Required Variables

zustand-custom-middleware-logging.txt
Act as a DevTools and Observability Engineer. Build a sophisticated, custom Zustand middleware function specifically designed for debugging an enterprise e-commerce platform. The middleware must meticulously trap and log all state transitions at the specified [LOG_LEVEL], but it must contain a strict regex/validation layer that automatically intercepts and brutally redacts highly [SENSITIVE_KEYS] (like credit card hashes, passwords, or PII) before they ever hit the console. Furthermore, engineer the middleware to selectively batch and asynchronously transmit specific, high-value state mutations (e.g., `SET_CART_TOTAL`) directly to an external [ANALYTICS_ENDPOINT] for user behavior tracking. Guarantee the middleware utilizes `setTimeout` or Web Workers so it fundamentally cannot introduce main-thread latency.

Example Text Output

"A high-performance middleware utility that provides developers with clean Redux-style logs while maintaining privacy and reporting business-critical events to analytics."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Custom Zustand Middleware for Advanced E-commerce Logging and Debugging" prompt used for?

A high-performance middleware utility that provides developers with clean Redux-style logs while maintaining privacy and reporting business-critical events to analytics.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.