Transform documentation into actionable tutorial content in minutes using AI
An intelligent web application that scans documentation sites and automatically generates structured tutorial scaffolds complete with outlines, cost estimates, and quality checklists. Turn any docs site into a pipeline of high-value tutorial tasks.
π Try it now! β Add your Vercel URL here after deployment
Note: After deploying, update the URL above with your live Vercel link!
This tool helps convert documentation into actionable tutorial tasks by:
- Crawling documentation websites - Automatically discovers and scrapes all pages
- Identifying tutorial opportunities - Uses Claude AI to find teachable topics
- Generating structured scaffolds - Creates Markdown files with complete outlines
- Estimating creation costs - Provides realistic budget estimates ($100-$500)
- Bulk export - Download all scaffolds as
.mdfiles plus a CSV index
- Smart Documentation Crawling - Automatically discovers and scrapes all pages under a documentation domain
- AI-Powered Analysis - Uses Claude Sonnet 4.5 to identify tutorial opportunities and generate outlines
- Structured Scaffolds - Creates Markdown files with titles, summaries, and section outlines
- Cost Estimation - Provides realistic budget estimates for tutorial creation
- Beautiful UI - Simple, intuitive web interface with real-time feedback
- Multiple Download Options - Individual
.mdfiles or complete ZIP package with CSV index
- Framework: Next.js 14 (App Router)
- AI: Anthropic Claude Sonnet 4.5
- Styling: Tailwind CSS
- Deployment: Vercel
- Web Scraping: Cheerio + Custom Crawler
git clone https://github.com/yourusername/tutorial-generator.git
cd tutorial-generator
npm installcp .env.example .env.localAdd your Anthropic API key to .env.local:
ANTHROPIC_API_KEY=your_api_key_here
Get your API key from: https://console.anthropic.com/
npm run devOpen http://localhost:3000 in your browser.
- Push your code to GitHub
- Import your repository in Vercel
- Add your
ANTHROPIC_API_KEYenvironment variable in Vercel settings - Deploy!
- Enter Documentation URL - Paste any documentation site URL (e.g.,
https://docs.example.com) - Configure Settings - Choose how many pages to crawl (5-100)
- Generate Tutorials - Click the button and wait 2-5 minutes
- Download Results - Get individual
.mdfiles or complete ZIP package
Each generated file includes:
- Title - Clear, actionable tutorial name
- Summary - Brief overview of what the tutorial covers
- Difficulty - Beginner, Intermediate, or Advanced
- Estimated Time - Expected completion time
- Prerequisites - Required knowledge/tools
- Learning Objectives - Key takeaways
- Outline - Detailed section structure with TODO placeholders
- Resources - Links to relevant documentation
Contains:
- Tutorial Number
- Title
- Difficulty Level
- Estimated Time
- Estimated Creation Cost
- Summary
- Prerequisites
- Filename
Perfect for sorting, filtering, and planning your tutorial creation roadmap.
- Documentation Teams - Identify content gaps and create tutorial roadmaps
- Developer Relations - Scale tutorial creation with AI-assisted scaffolding
- Open Source Projects - Generate contributor-friendly tutorial tasks
- Educational Platforms - Build comprehensive learning paths efficiently
- Technical Writers - Get structured outlines for tutorial content
Here's what a generated tutorial scaffold looks like:
# Building Your First REST API with Express.js
> **Status:** Draft Scaffold
> **Difficulty:** Beginner
> **Estimated Time:** 2 hours
> **Estimated Creation Cost:** $250
## Overview
Learn how to build a production-ready REST API using Express.js...
## Prerequisites
- Basic JavaScript knowledge
- Node.js and npm installed
- Understanding of HTTP methods
## What You'll Learn
- Set up an Express.js project from scratch
- Create RESTful API endpoints
- Implement error handling and validation
...- Speed - Analyzes 30 pages in 2-4 minutes
- Cost - ~$0.06 per 30 pages (very economical)
- Quality - Professional tutorial scaffolds with 6-8 sections each
- Scalability - Handles up to 100 pages per request
# Install dependencies
npm install
# Run development server
npm run dev
# Build for production
npm run build
# Start production server
npm startNo tutorials generated?
- Increase the page limit to 40-60
- Try a different documentation site
- Ensure the site isn't blocking crawlers
Timeout errors?
- Reduce page limit to 20-30
- Deploy to Vercel Pro for longer timeouts
Poor quality results?
- Target more technical documentation sections
- Increase page limit for better analysis
tutorial-generator/
βββ src/
β βββ app/
β β βββ api/generate/route.ts # Main API endpoint
β β βββ page.tsx # UI component
β β βββ layout.tsx # Root layout
β β βββ globals.css # Styles
β βββ lib/
β βββ crawler.ts # Web scraping
β βββ analyzer.ts # AI analysis
β βββ markdown-generator.ts # Scaffold creation
β βββ csv-generator.ts # CSV creation
βββ package.json
βββ tsconfig.json
βββ README.md
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use, modify, and distribute.
- Built for the ns.com/earn challenge
- Powered by Anthropic's Claude AI
- Deployed on Vercel's platform
For issues or questions:
- Open a GitHub issue
- Check the troubleshooting section above
- Review the example outputs
Built with β€οΈ for the ns.com/earn challenge
Powered by Claude Sonnet 4.5 β’ Next.js β’ Vercel