✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Andrii Bidochko
  • 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.

Claude Code piano web app architecture

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 recordings and notes (including ms timestamps).
  • RESTful routes and a PlayController that 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:

  1. Recording names: Claude added a name column, a hidden input that appears after recording, and fallback logic that uses the record ID when no name is supplied.
  2. GitHub footer: A footer with the Octocat SVG and a “View on Github” link was injected into every view.
  3. Secure URLs: An access_token column replaced sequential IDs, making recordings accessible only via a hash.
  4. Copy‑link button: Users can now copy a shareable URL directly from the playback page.
  5. Note duration: Claude added a duration_ms field 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:

  1. From assistance to autonomy: AI can now generate entire scaffolds, not just snippets.
  2. Rapid MVP creation: Startups can validate ideas in hours, dramatically lowering time‑to‑market.
  3. Lower barrier for non‑experts: Musicians with minimal coding background can prototype interactive tools.
  4. 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:

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.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.