Audioscrape: Building in Rust When Everyone Said I Shouldn't

by lukaeschon 10/7/2024, 2:48 PMwith 45 comments

I'm excited to share my journey of bootstrapping Audioscrape, a podcast exploration platform, built entirely in Rust. Despite conventional wisdom suggesting RoR, Python, or TypeScript for rapid MVP development, I chose Rust to challenge myself technically and optimize for low operational costs. The result? A performant application running on a $7/month VM, demonstrating that you can launch lean and scale efficiently.

Why Rust for a Bootstrapped MVP?

Cost-Efficiency: Minimal resource usage translates to lower hosting costs, crucial for bootstrapping.

Performance: Efficient handling of audio processing and web serving, allowing for growth without immediate infrastructure scaling.

Learning Investment: Deepening expertise in a language with growing demand, potentially opening future opportunities.

Proving a Point: Demonstrating Rust's viability for rapid development in web applications.

Project Overview:

Audioscrape aggregates podcast RSS feeds, transcribes episodes, and provides an interactive interface for exploring and discussing podcast content. It's a full-stack Rust application, leveraging various crates from the ecosystem.

Technical Stack:

Backend: Axum (async web framework)

Database: SQLite with SQLx for type-safe queries

Authentication: OAuth2

Image Processing: For social media previews

HTML Templating: Askama

Async Runtime: Tokio

Development Approach:

4k LoC in a single main.rs file (plus HTML templates)

Rapid iteration using Neovim for navigation

Lean development: No external services beyond the VM

Key Features:

Transcription Browsing: Read along with your favorite podcasts or quickly scan for topics of interest.

Segment Highlighting: Share and discuss specific moments from episodes.

Community Interaction: Upvote, comment on, and bookmark your favorite segments.

Advanced Search: Find relevant content across multiple podcasts and episodes.

Person Profiles: Explore appearances of specific guests or hosts across different shows.

Challenges and Learnings:

Overcoming the learning curve of Rust's ownership model

Efficient transcriptions and speaker detection

Managing all aspects solo: Development, design, and operations

Future Plans:

API for third-party integrations

WebAssembly for client-side processing

Scaling strategies for larger datasets (search)

Personalized content delivery

Metrics and Goals:

Current Users: 500 (last 7 days)

MRR: $0

Cost per User: Less than $0.01 (thanks to efficient resource use)

Next Milestone: Add paid features to pay the bills + reduce cost per episode page creation

Questions for the HN Community:

Has anyone else bootstrapped using Rust? What were your experiences?

How do you balance technical debt vs. shipping features in a solo project?

What strategies have worked for you in marketing such technical products?

I'm bootstrapping this project and would greatly appreciate any feedback, especially from those who've launched similar technical products or used unconventional tech stacks for MVPs. Check out Audioscrape at www.audioscrape.com and let me know your thoughts!

by lyang2821on 10/7/2024, 6:08 PM

I bootstrapped Lapdev (https://lap.dev/) all in Rust too. Axum for the backend and Leptos for the frontend. Sharing structs between backend and frontend is quite nice.

Besides the memory safety, type system etc, Rust gives you the confidence that you know it can scale in pretty much all scenarios in terms of performance.

by bsnnkvon 10/7/2024, 5:18 PM

I bootstrapped Notado[1][2] and Kullish[3] in Rust. Best tech stack decisions I ever made.

Similar setups (Rocket and Actix instead of Axum, Tera instead of Askama, Diesel instead of SQLx) and overall experience (incredibly cheap, reliable, and since these projects have been running a long time, amazingly easy to return to the codebases after months/years and make changes with a high level of confidence).

I distinctly remember how happy I felt the first time I realized that I had enough paying subscribers to offset the cost of the running the service!

[1]: https://notado.app

[2]: it had a decent amount of HN discussion last week - https://news.ycombinator.com/item?id=41697228

[3]: https://kulli.sh

by echelonon 10/7/2024, 4:32 PM

Love your story here! You're not doing it wrong at all.

> Has anyone else bootstrapped using Rust? What were your experiences?

We scaled several websites to 6M+ MAUs on Actix/SQLx and ran that on the lowest tier VMs.

Rust is God Mode for efficient and scalable HTTP services. Moreover, the type safety and robust type system give us incredible confidence that our software is defect free.

by erazor42on 10/7/2024, 5:02 PM

> Has anyone else bootstrapped using Rust? What were your experiences?

Yes, we are building a parsing platform in rust. (~50k loc) Stack: actix + diesel (async) for PG.

Getting the right project structure was not simple (that could deserve a blog post). Performance is super nice if you do heavy IO.

Beware of memory usage handling with actix.

Day to day dev is a joy, once it compile you can be confident it will work as expected.

Never .unwrap / panic !

Use clippy to check your code.

Once you have your project structure done, adding a new web handler is as fast as adding one in Django or Flask.

by samier-trellison 10/7/2024, 2:50 PM

> Learning Investment: Deepening expertise in a language with growing demand, potentially opening future opportunities.

If it's just you, then that reason alone justifies it.

by aeturnumon 10/7/2024, 5:59 PM

Neat!

Just fyi I tried to add Criminal[1] and it seems like it was...partially successful[2]? The "Enter RSS URL" page loaded for a while and then stopped.

[1] https://thisiscriminal.com/episodes

[2] https://www.audioscrape.com/podcast/criminal

by vwkdon 10/8/2024, 12:44 PM

Nice project. It's useful for listening to a specific speaker, allowing to skip other speakers who don't add useful information. It enables listening to podcasts even with annoying interviewers. Would be great if this were built in the major podcast listening applications.

by jamil7on 10/7/2024, 7:34 PM

Awesome work. Yes, I’ve been interested in Rust for a while and have been hacking on a side project. It’s an API service in Rust, but for the CRUD management part I used Elixir/Phoenix and Phoenix gen auth to have something up quickly that’s not dependent on some third-party service.

by lispisokon 10/7/2024, 4:37 PM

How did you get your first 500 users?

by peterpans01on 10/7/2024, 4:30 PM

"Database: SQLite with SQLx for type-safe queries"

I might be ignorance. But is it not safe? How do you back up your data?

by deadcoder0904on 10/9/2024, 7:33 AM

How much did it cost to transcribe so many podcasts? Are you running Whisper on your $7 VM?

by thesurlydevon 10/9/2024, 5:23 PM

I'd love to hear how folks are deploying and hosting their Rust projects

by fHron 10/7/2024, 4:48 PM

I actually think Rust is amazing I recently discoevered some rewrites in web developement in rust and they made build times on windows corpo bloat machine way way faster than conventional js/ts implementations so I would say go for it and all power to you, also many are just salty because it's another new thing and new/change = bad

by bravuraon 10/7/2024, 4:26 PM

How is transcription done?

by aleksjesson 10/7/2024, 4:10 PM

4k loc in a single file must be brutal