MCPcopy Index your code
hub / github.com/ai-hero-dev/ai-hero

github.com/ai-hero-dev/ai-hero @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
538 symbols 1,671 edges 380 files 0 documented · 0% updated 17d ago★ 1,5592 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AI Hero

From Zero to AI Hero

Welcome!

AI Hero is the course I'm building to take you from zero to fully-fledged AI engineer.

It's going to be the perfect course for anyone looking to transition from frontend, backend, or full-stack development to working with AI.

I'm open sourcing most of the code for the course, including:

  • Examples
  • Exercises
  • Libraries & SDKs (like Evalite, my evals framework)
  • Articles

Following repo notifications can be pretty painful, so get on my newsletter to stay up to date.

Examples

The bit I'm currently working on is the examples directory.

Each example is a self-contained, runnable code sample that demonstrates a concept or technique.

Anything marked with TODO is, well, you get it.

Quickstart

Let's get you running your first example.

1. Install node

You'll need Node.js installed to run the exercises and examples. LTS (Long Term Support) is recommended.

2. Install PNPM

Install pnpm using Corepack.

3. Install Dependencies

# Installs all dependencies
pnpm install

4. Add A .env File

Create a .env file in the root of the project with the following content:

# Your OpenAI API key
OPENAI_API_KEY=your-api-key

# OR your Anthropic API key
ANTHROPIC_API_KEY=your-api-key

I'll be adding a guide on running the examples with local models soon.

5. Run An Example

Runs the first example of examples/vercel-ai-sdk. Each example links to a corresponding article on AI Hero.

pnpm run example v 01

Extension points exported contracts — how you extend this code

SearchParameters (Interface)
(no doc)
courses/01-deepsearch-in-typescript/00-apps/05-day-8-app/src/serper.ts
CrawlSuccessResponse (Interface)
(no doc)
examples/model-context-protocol/07-my-mcp-on-http/crawl-site.ts
SearchParameters (Interface)
(no doc)
examples/_TODO/tools/01-serper-TODO/tools.ts
KnowledgeGraph (Interface)
(no doc)
courses/01-deepsearch-in-typescript/00-apps/05-day-8-app/src/serper.ts
CrawlErrorResponse (Interface)
(no doc)
examples/model-context-protocol/07-my-mcp-on-http/crawl-site.ts
KnowledgeGraph (Interface)
(no doc)
examples/_TODO/tools/01-serper-TODO/tools.ts
Sitelink (Interface)
(no doc)
courses/01-deepsearch-in-typescript/00-apps/05-day-8-app/src/serper.ts
BulkCrawlSuccessResponse (Interface)
(no doc)
examples/model-context-protocol/07-my-mcp-on-http/crawl-site.ts

Core symbols most depended-on inside this repo

render
called by 10
internal/read-articles.ts
runLocalDevServer
called by 9
examples/_shared/dev-server/run-local-dev-server.ts
fetchFromSerper
called by 9
examples/_TODO/tools/01-serper-TODO/tools.ts
crawlWebsite
called by 7
examples/model-context-protocol/06-my-mcp/crawl-site.ts
cacheModelInFs
called by 6
examples/vercel-ai-sdk/17-caching-TODO/cache-model-in-fs.ts
getMessageHistory
called by 5
courses/01-deepsearch-in-typescript/00-apps/06-final-app/src/system-context.ts
getMessageHistory
called by 5
courses/01-deepsearch-in-typescript/00-apps/07-migrated-to-v5/src/system-context.ts
fetchFromAiHero
called by 5
internal/watch-articles.ts

Shape

Function 314
Interface 168
Method 44
Class 12

Languages

TypeScript100%

Modules by API surface

courses/01-deepsearch-in-typescript/00-apps/07-migrated-to-v5/src/system-context.ts13 symbols
courses/01-deepsearch-in-typescript/00-apps/06-final-app/src/system-context.ts13 symbols
courses/01-deepsearch-in-typescript/00-apps/05.5-day-8-app-with-resumable-streams/src/system-context.ts11 symbols
courses/01-deepsearch-in-typescript/00-apps/05-day-8-app/src/system-context.ts11 symbols
examples/model-context-protocol/07-my-mcp-on-http/crawl-site.ts10 symbols
examples/model-context-protocol/06-my-mcp/crawl-site.ts10 symbols
examples/model-context-protocol/04-logging-with-stdio-transport/crawl-site.ts10 symbols
examples/_TODO/agents/03-cms-agent-TODO/server/cms-client.ts9 symbols
courses/01-deepsearch-in-typescript/00-apps/07-migrated-to-v5/src/server/scraper.ts9 symbols
courses/01-deepsearch-in-typescript/00-apps/06-final-app/src/server/scraper.ts9 symbols
courses/01-deepsearch-in-typescript/00-apps/05.5-day-8-app-with-resumable-streams/src/server/scraper.ts9 symbols
courses/01-deepsearch-in-typescript/00-apps/05-day-8-app/src/server/scraper.ts9 symbols

For agents

$ claude mcp add ai-hero \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact