reidbarber / gen-ui Goto Github PK
View Code? Open in Web Editor NEWUse text or image prompts to generate components and apps built with React.
Use text or image prompts to generate components and apps built with React.
Can use something like html2canvas.
May be difficult to implement with the iframe: codesandbox/sandpack#838
Can look into dispatching via Sandpack or window.postMessage().
Using something like puppeteer or playwright.
Assistant editor should all for uploading and managing files for knowledge retrieval: https://platform.openai.com/docs/assistants/tools/knowledge-retrieval
Can currently be done via OpenAI's platform: https://platform.openai.com/assistants
https://platform.openai.com/docs/guides/vision
It will need to use the vision model separately and get a text description to send to the main thread, until Assistants API supports vision inputs natively.
Maybe you could use gpt 4 vision to check the current state of how the website looks, then send that input off together with the prompt so that the ai can understand what its looking at and what the user is referring to
https://platform.openai.com/docs/api-reference/assistants/createAssistant
Can use metadata field to specify it to be able to be used by GenUI, and other info.
Assistants API now supports vision natively: https://x.com/gdb/status/1788694574149337336
Can save at each state, or better yet use git in the browser: https://github.com/isomorphic-git/isomorphic-git
It would be much faster if the updateFile
function didn't have to include the entire update file, if just a small part of it is being changed.
updateFile could support string replace where RegEx can be used to replace part of the initial file.
Alternatively, using unified diffs may be worth trying: https://aider.chat/docs/unified-diffs.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.