You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

43m 4s logged

🛠️ Building a QR Code Generator with Streamlit.

Hey everyone! I am currently working on a QR Code Generator - a simple, sleek Streamlit app that lets you generate custom QR codes, preview them instantly, download them as PNGs, and even keep track of your generation history.

To make sure the app runs smoothly and scales nicely, I have mapped out the system architecture.

📐 System Architecture:

  • User Interface (Streamlit): The frontend is responsible for the input form, which allows users to personalize their text/URL, colors, and sizes. It also contains the preview/download section and the history panel.
  • QR Generation Logic (qrcode): This server-side component receives the user’s inputs and constructs the basic QR matrix.
  • Image Processing (Pillow): Works with the basic matrix and converts it into a neat, downloadable PNG image.
  • Session State Management: By making use of Streamlit’s session state, the app keeps last_result (for immediate preview and download) and makes it into a history list of all previously generated codes.

Features I am going to add:

  • Generate a QR code from any text or URL
  • Customize foreground and background colors
  • Adjustable box size and border
  • Download the generated QR code as a PNG
  • Session history of all codes generated, each individually downloadable
1
116

Comments 2

@zach

Please don’t use AI to generate your devlogs. It’s really against the spirit of Stardance!

@vedasm

I did write the actual content myself, but i used AI to polish the phrasing. Sorry for breaking, I will keep it completely raw from next devlogs!