Home / Companies / Upstash / Blog / Post Details
Content Deep Dive

How I've built Envflow using Laravel & Upstash Redis

Blog post from Upstash

Post Details
Company
Date Published
Author
Jorge Lapa
Word Count
1,010
Language
English
Hacker News Points
-
Summary

Envflow is a Laravel-based project designed for securely sharing environment variables using Upstash Redis as its primary database for storing encrypted data. The project was inspired by Nuno Maduro's Pyre app and focuses on providing a way to encrypt and share short-lived secret messages. Built with the TALL stack—Tailwind CSS, Alpine JS, Laravel, and Livewire—Envflow uses Upstash Redis for its serverless, Redis-compatible database capabilities, allowing for fast and cost-effective storage of encrypted data that expires after a set period. The application features a homepage for encryption, a success page for sharing decryption links, and a decryption page that ensures the encryption key is not stored in the database. Using Laravel's Encrypter class, Envflow generates custom encryption keys at runtime, and the Action/Executor pattern is employed to organize business logic, enhancing reusability and maintainability. The deployment of Envflow on Laravel Cloud was straightforward, and the project underscores the potential of Upstash Redis as more than just a key-value store, with the source code available on GitHub for further exploration and contribution.