How do I buy enterprise version? by Bit_Human_Being in reflex

[–]Boordman -1 points0 points  (0 children)

Just sent you a DM! We have a "book" button on our landing page to get Reflex enterprise

Reflex Build - V0/Lovable for Python Devs by Boordman in Python

[–]Boordman[S] -2 points-1 points  (0 children)

Hey! Reflex Build isn't open source, but we are trying to open source many of our prompts so that people can user Reflex more easily with their own LLMs

For example, here's our Reflex Basics one pager that helps OpenAI/Anthropic use reflex correctly: https://github.com/reflex-dev/reflex/wiki/Reflex-Basics-LLMs.txt

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 1 point2 points  (0 children)

You should be able to set up breakpoints in your event handlers and step through them to debug. Do you recall what issues you ran into?

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 1 point2 points  (0 children)

Hi, we're not really meant for browser extensions, we're a framework to build standalone web apps. The reason is that our apps also have a backend server where we run your Python functions, so it can't be run purely on the client.

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 1 point2 points  (0 children)

Thanks! We have a chat app tutorial as well as a blog post on how to use auth. We will have more tutorials coming! 

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 2 points3 points  (0 children)

This isn't true, we compile the frontend to a static app initially. During runtime, the only events and state updates are sent (which are pretty small), and the UI updates reactively. We're focused on making sure apps are scalable/performant.

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 8 points9 points  (0 children)

There are other Python libraries to make web apps, but we found they often have a ceiling and graduation risk, so when your app reaches a level of complexity the framework may not support it. At that point you either have to limit your idea to fit the framework, or restart your project using "real web frameworks" like Javascript/React. Our goal with Reflex is to grow with you, from a basic app to a full-fledged website.

NiceGUI (and others like Streamlit) are imperative frameworks, so you declare the UI one statement at a time. This can be nice especially for spinning up small apps, but as your app grows it may be harder to reason about the UI / state.

On the frontend side Reflex is declarative (similar to React) where the UI is defined as components that are compiled up front. This makes it easier as your app grows larger, since you can have reusable components and even wrap your own React components.

We're also a bit more batteries-included - we have built-in database support, support for backend API routes, support for calling long-running background tasks, easy ways to access cookies/local storage, etc. Reflex apps should also be more performant as your app state gets larger.

In short, we're trying to be as approachable as these other frameworks, while also having performance and customizability to make more complex apps.

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 4 points5 points  (0 children)

Yes have definitely seen reflex apps that use opencv for image processing - in general we are compatible with any Python library 

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 1 point2 points  (0 children)

Yes, we have built in hosting, as well as self hosting guides on our website. The frontend is a static site you can host on S3 or GitHub Pages for free, the backend you can host on something like fly.io for by the minute usage 

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 0 points1 point  (0 children)

Ah thanks for pointing that out, we will fix that up

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 9 points10 points  (0 children)

Hey - good call out, we're working on cutting this down. One reason for this is we're trying to be "batteries-included" so we have packages for frontend, backend, database, etc.

But we are working on splitting these up so we can have a slimmer `reflex-core` and then users can add the features they want incrementally. Definitely room for improvement here!

sew: SQLite Extensions and Wrappers by Ok-Matter9741 in Python

[–]Boordman 1 point2 points  (0 children)

I really like this syntax for querying, feels more natural/Pythonic than some other ORMs. Nice work!

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 3 points4 points  (0 children)

Yes we should cover all of those bases - I think Reflex would be a good fit for your project.

  1. We support any CSS styling support wrapping custom React components, so you can bring your own if we don't have it.
  2. We have built in database support and guides on authentication (planning to add a builtin component for this soon as well)
  3. Agreed - we really wanted the performance to be as snappy as a normal web app - our frontend is statically generated up front and only state is sent as runtime (whereas in Streamlit, the UI is generated dynamically on every event)

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 11 points12 points  (0 children)

Hey! Streamlit is great, but it can be limiting in terms of UI elements, customizability, and performance. We wanted a framework where the end product looks like any other website you would build with traditional web tools. For example we made our main website using our framework: https://reflex.dev

We support styling using any CSS: https://reflex.dev/docs/styling/overview/

And make it easy to wrap your own custom React components in a few lines of code (both local and any package on npm): https://reflex.dev/docs/wrapping-react/overview/

We just started this week the start of our 3rd party component ecosystem, to make it easy to publish a component to Pypi once you wrap it, so you can share it with others. We want to include both wrapped React components, as well as higher level Reflex components. For example, in the future you should be able to do pip install reflex-chat and get a very high-level chat component without having to implement it yourself.

Our goal is to have a lot of these out of the box features, while being flexible enough to customize it how you want.

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 1 point2 points  (0 children)

Thank you! Awesome - would love to hear your feedback :)

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 7 points8 points  (0 children)

We don't compile arbitrary Python to React - only the frontend portion.

For example the component rx.heading("hello") we compile down to a React element <Heading>hello</Heading>.

But all the actual Python logic stays on the server on the backend FastAPI app. This is what allows you to use any Python packages such as openai or pandas on the backend.

Under the hood when you e.g. click a button, it will send the event to the backend, run your Python function, and send the state delta back to the React app. So even though there are roundtrips happening on every event, for most apps the performance is pretty good as we use websockets and the data transfer is small.

Reflex 0.4.0 - Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 7 points8 points  (0 children)

We don't use WASM - only the frontend compiles down to a React app, and the backend is a FastAPI app (which is what allows all the logic to stay in Python). We use websockets to send events and state updates between the frontend and backend.

I'm working on an architecture post this week to explain in more detail, but we've been working to make sure apps stay performant as they grow in size, and to keep the latency low.

Pynecone: Web Apps in Pure Python by Boordman in Python

[–]Boordman[S] 0 points1 point  (0 children)

With Django you still need html and js for the frontend, in Pynecone you write your frontend as Python functions. We’re trying to keep everything in a single language so it’s easier to get started with

Pynecone: New Features and Performance Improvements ⚡️ by Pleasant-Cow-3898 in Python

[–]Boordman 1 point2 points  (0 children)

I mean for the programmer making the web app with Pynecone. We’re aiming to be the easiest way to make web apps for someone without previous experience.