Inspiration
While working on a project, I needed a tool to generate the epoch times for a week starting from a selected date. Unfortunately, I couldn’t find an app or website that met my needs. Building one myself would take more time than I could afford, and publishing it would add another layer of complexity. Frustrated, I found myself wishing for a tool where I could simply describe the app I wanted, and it would generate it for me. That wish sparked the creation of Lightning Apps.
What It Does
Lightning is a powerful, AI-driven platform designed to make app development fast and accessible. It allows users to create fully functional React applications using simple text descriptions or visual inputs, such as sketches or images. Powered by SambaNova’s cutting-edge AI technology, Lightning transforms ideas into responsive web applications in real-time.
How it works:
- Users begin by describing their app concept—whether it’s a productivity tool, calculator, or something entirely unique—or by uploading a rough design sketch.
- Lightning’s advanced AI interprets the input and generates a React app that reflects both the desired functionality and design.
- You can also generate data or insights within your generated app. Lightning has the capability to use the Llama LLM within the generated app, it can handle prompting and formatting the output by itself.
By leveraging natural language processing and computer vision, the platform delivers apps that are not only intelligent but also visually refined.
What sets Lightning apart is its collaborative approach. Once the app is generated, users can provide feedback, tweak designs, adjust features, use AI features within, and see their changes instantly. This hands-on process ensures the final app perfectly aligns with the user’s vision.
When the app is ready, it can be published directly from the platform. Published apps are accessible through a personal dashboard and can be shared via a unique link. Users also have the flexibility to revisit and edit any previous version of their app, giving them complete creative freedom and control.
How We Built It
- Frontend & API: Next.js, Tailwind, Sandpack
- Database: SQLite
- Authentication: Clerk
- AI: Llama Models, SambaNova Cloud
Challenges We Ran Into
- Live React Rendering: Initially, the plan was to generate HTML code within an iframe. However, I discovered and fell in love with Shadcn components, which led me to search for a live React renderer. Most solutions were either inadequate or too slow until I found Sandpack, which worked perfectly.
- Expanding Beyond Text Input: The first version of Lightning was text-based only. When SambaNova introduced Llama Vision models, the platform underwent a significant architectural overhaul to integrate these new capabilities.
- Prompt Engineering: Instructing the large language model (LLM) to generate code using Shadcn components, while ensuring proper formatting as an artifact, required meticulous prompt engineering.
- LLM within Apps: Prompting an LLM to generate prompts for an LLM accurately proved to be even more of a challenge.
What We Learned
- The importance of fast inference speeds in today’s AI-powered world.
- Avoid the temptation to endlessly add features in pursuit of a “perfect” launch.
- Prompting large language models effectively is a skill in itself! 😅
What’s Next for Lightning Apps | Micro Apps in Lightning Speed
- Enable users to modify and update already-published apps with ease.
- Allow LLM-powered generation of additional files and seamless incorporation into the app’s existing structure.
- Provide a “fork” feature to clone existing projects, making customization easier for users.
- Introduce multi-user collaborative editing for real-time, simultaneous app development.
- Add an inbuilt sketchboard for users to sketch their app designs.
Here are some apps that you can try out right now!
Built With
- llama
- next.js
- sambanova
- sqlite
Log in or sign up for Devpost to join the conversation.