- Updated: December 15, 2025
- 6 min read
Claude Code AI Coding Assistant Powers Rapid Development of a Piano Web App
Claude Code enabled a developer to build a complete, production‑ready piano web app in Ruby on Rails with minimal manual coding, handling UI, database, and playback logic entirely through AI‑generated prompts.
From Idea to Interactive Piano in Hours
When a solo developer wanted to test the limits of Claude Code’s AI coding assistant, the result was a fully functional piano web application that lets users record, name, and replay melodies. The experiment, documented in a recent blog post, showcases how generative AI can replace weeks of repetitive coding with a handful of concise prompts.

What Is Claude Code?
Claude Code is Anthropic’s AI coding assistant built on the Claude family of large language models. It excels at:
- Understanding high‑level specifications and turning them into complete codebases.
- Generating database migrations, routes, controllers, and front‑end assets for popular frameworks like Ruby on Rails.
- Iteratively refining code based on developer feedback, effectively acting as a pair programmer.
Because Claude Code can maintain context across a session, it’s ideal for end‑to‑end projects where the developer supplies only the functional goals.
Step‑by‑Step: Building the Piano Web App
The development workflow can be broken into four MECE‑aligned phases:
1️⃣ Project Bootstrap
The developer started a fresh Rails project:
rails new PianoWebApp
Claude was then prompted with a concise description: “Create a piano web app where users can record notes, store them in a recordings table, and replay them via /play/:id.” Within seconds, Claude produced the initial rails generate scaffold commands, migration files, and a minimal JavaScript keyboard UI.
2️⃣ Core Features & UI
Claude generated:
- Database schema for
recordingsandnotes(includingmstimestamps). - RESTful routes and a
PlayControllerthat reads note timing data. - A responsive HTML5 piano keyboard with event listeners for mouse clicks and keyboard presses.
The resulting UI allowed users to press keys, hear tones, and automatically log each note with its millisecond offset.
3️⃣ Iterative Enhancements
After the initial scaffold, the developer asked Claude to add several refinements:
- Recording names: Claude added a
namecolumn, a hidden input that appears after recording, and fallback logic that uses the record ID when no name is supplied. - GitHub footer: A footer with the Octocat SVG and a “View on Github” link was injected into every view.
- Secure URLs: An
access_tokencolumn replaced sequential IDs, making recordings accessible only via a hash. - Copy‑link button: Users can now copy a shareable URL directly from the playback page.
- Note duration: Claude added a
duration_msfield to capture how long a key is held, ensuring faithful playback.
4️⃣ Final Polish & Deployment
Minor mobile audio issues were flagged, and Claude suggested a workaround using the Web Audio API’s resume() method after a user gesture. Although the fix required a developer’s final tweak, the bulk of the work was already AI‑generated.
Challenges Faced and How Claude Resolved Them
Even with a powerful assistant, real‑world constraints surfaced:
UX of Recording Names
Initially, the name field appeared before a recording existed, confusing users. By re‑prompting Claude, the field was hidden until the recording completed, improving the flow without extra front‑end code.
Preventing ID Enumeration
Sequential IDs expose user data. Claude introduced a random access_token and updated the controller to look up recordings by this token, effectively mitigating enumeration attacks.
Mobile Audio Autoplay Restrictions
Browsers block autoplay without a user gesture. Claude suggested invoking audioContext.resume() inside a click handler, a pattern that resolved most mobile playback failures after a small manual adjustment.
Code Duplication in Views
The generated footer was duplicated across templates. While not ideal, the developer noted the issue and planned to refactor using Rails partials—a quick manual step that does not diminish the overall productivity gain.
Results: Speed, Quality, and Community Reception
From zero to a demo‑ready piano app, the entire process took roughly 8 hours of combined human‑AI interaction, compared to an estimated 2‑3 days of manual development. Key outcomes include:
- Time saved: Over 70% reduction in coding effort.
- Feature completeness: Recording, naming, secure sharing, and accurate playback.
- Open‑source visibility: The GitHub repository received 150+ stars within the first week.
- Developer confidence: The author now considers Claude Code a daily co‑pilot for rapid prototyping.
For anyone curious, the live demo is accessible at webpiano.jcurcioconsulting.com, where you can test the keyboard and share recordings instantly.
What This Means for AI‑Assisted Development
Claude Code’s success illustrates a broader shift:
- From assistance to autonomy: AI can now generate entire scaffolds, not just snippets.
- Rapid MVP creation: Startups can validate ideas in hours, dramatically lowering time‑to‑market.
- Lower barrier for non‑experts: Musicians with minimal coding background can prototype interactive tools.
- Integration opportunities: Pairing Claude with platforms like OpenAI ChatGPT integration or ChatGPT and Telegram integration can extend functionality to chat‑driven code generation.
Companies building AI‑centric products can leverage such assistants to accelerate internal tooling, as demonstrated by the UBOS platform overview, which already offers a Web app editor on UBOS for low‑code development.
Take the Next Step with AI‑Powered Development
If you’re a developer or product manager looking to embed AI into your workflow, explore these resources:
- AI agents that can automate repetitive tasks.
- Generative AI services for code, content, and media.
- Web development guides that pair traditional frameworks with AI assistants.
- Enterprise AI platform by UBOS for scaling AI‑driven solutions.
- UBOS pricing plans to find a tier that fits your budget.
- UBOS templates for quick start—including an AI Chatbot template you can adapt for music‑related bots.
- Workflow automation studio to chain Claude‑generated code with CI/CD pipelines.
- AI marketing agents that can promote your new app automatically.
- AI SEO Analyzer to ensure your piano app ranks well from day one.
- AI Article Copywriter for creating blog posts like this one.
Whether you’re a solo coder, a startup founder, or part of an enterprise dev team, integrating Claude Code—or any advanced LLM—into your stack can turn ambitious ideas into reality faster than ever before.
Conclusion
The piano web app case study proves that generative AI is no longer a novelty; it’s a practical development partner. By leveraging Claude Code’s ability to understand high‑level intent and produce production‑grade code, developers can focus on creativity and user experience rather than boilerplate. As AI assistants mature, we can expect a new era where building sophisticated SaaS products, music tools, or any interactive web experience becomes a collaborative dance between human insight and machine intelligence.
Ready to experiment? Dive into the UBOS for startups and start building your own AI‑enhanced applications today.
Andrii Bidochko
CTO UBOS
Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.