How fabio-tiago/depaco works
DEPACO is a Next.js site for discovering and printing children’s coloring pages and educational activities, with a premium-pack sales funnel. Visitors browse or search drawings, open a drawing page, and can download/print or follow a pack offer to checkout. The map also includes the blog, activity generators, contact flow, and purchase tracking. Edges reflect shown imports/calls or README statements; some integrations and unsampled flows are therefore not connected.
Main entry points: algolia.ts Search access · app/page.tsx Home · [id]/page.tsx Drawing page · DesenhoCard.tsx Drawing cards
Components 34
Discovery & browsing
- Home
app/page.tsx - Drawing search
app/buscar/page.tsx - Autocomplete
components/SearchAutocomplete.tsx - Drawing page
app/desenhos/[id]/page.tsx - Drawing cards
components/DesenhoCard.tsx - Category listings
app/categorias/[categoria]/page.tsx - Character listings
app/personagem/[slug]/page.tsx - Curated pages
app/[slug]/page.tsx - Category definitions
lib/categorias.ts - Curated page data
lib/paginasFofas.ts - Share drawing
components/BotaoCompartilhar.tsx
Educational activities
- Activity directory
app/atividades-educativas/page.tsx - Activity categories
app/atividades-educativas/categoria/[tipo]/page.tsx - Activity page
app/atividades-educativas/[id]/page.tsx - Activity catalog
lib/atividades-data.ts - Word search game
components/GeradorCacaPalavras.tsx - Maze generator
components/GeradorLabirinto.tsx
Blog & contact
- Blog listing
app/blog/page.tsx - Blog article
app/blog/[slug]/page.tsx - Markdown posts
lib/blog.ts - Contact page
app/contato/page.tsx - Contact form
components/FormularioContato.tsx - Contact endpoint
app/api/contato/route.ts
Packs & conversion
- Pack catalog
lib/oferta.ts - Offer card
components/OfertaCard.tsx - Pack page
app/pack/[id]/page.tsx - Checkout button
components/BotaoCheckout.tsx - Embedded checkout
components/CheckoutElements.tsx - Payment provider
- Purchase confirmation
app/obrigado/page.tsx - Purchase tracking
components/PurchaseTracker.tsx
Shared services
- Search access
lib/algolia.ts - Algolia index
Other components
- Visitor
Connections 46
- Visitor → Home: opens
app/page.tsx - Visitor → Drawing search: searches
app/buscar/page.tsx - Visitor → Drawing page: opens
app/desenhos/[id]/page.tsx - Visitor → Activity directory: browses
app/atividades-educativas/page.tsx - Visitor → Blog listing: reads
app/blog/page.tsx - Visitor → Contact page: contacts
app/contato/page.tsx - Visitor → Pack page: views offer
app/pack/[id]/page.tsx - Home → Search access: loads highlights
app/page.tsx - Home → Markdown posts: loads posts
app/page.tsx - Home → Offer card: renders offer
app/page.tsx - Home → Autocomplete: renders search
app/page.tsx - Drawing search → Search access: searches index
app/buscar/page.tsx - Drawing search → Drawing cards: renders hits
app/buscar/page.tsx - Drawing search → Offer card: renders offer
app/buscar/page.tsx - Autocomplete → Search access: queries
components/SearchAutocomplete.tsx - Search access → Algolia index: searches
lib/algolia.ts - Drawing page → Search access: loads drawing
app/desenhos/[id]/page.tsx - Drawing page → Drawing cards: renders related
app/desenhos/[id]/page.tsx - Drawing page → Offer card: renders offer
app/desenhos/[id]/page.tsx - Drawing page → Share drawing: offers sharing
app/desenhos/[id]/page.tsx - Category listings → Search access: loads drawings
app/categorias/[categoria]/page.tsx - Category listings → Category definitions: uses category data
app/categorias/[categoria]/page.tsx - Category listings → Drawing cards: renders results
app/categorias/[categoria]/page.tsx - Character listings → Search access: loads drawings
app/personagem/[slug]/page.tsx - Character listings → Drawing cards: renders results
app/personagem/[slug]/page.tsx - Curated pages → Curated page data: loads page data
app/[slug]/page.tsx - Curated pages → Search access: loads drawings
app/[slug]/page.tsx - Curated pages → Drawing cards: renders results
app/[slug]/page.tsx - Activity directory → Activity catalog: lists activities
app/atividades-educativas/page.tsx - Activity categories → Activity catalog: filters activities
app/atividades-educativas/categoria/[tipo]/page.tsx - Activity categories → Word search game: renders game
app/atividades-educativas/categoria/[tipo]/page.tsx - Activity page → Activity catalog: loads activity
app/atividades-educativas/[id]/page.tsx - Activity page → Word search game: renders game
app/atividades-educativas/[id]/page.tsx - Activity page → Maze generator: renders generator
app/atividades-educativas/[id]/page.tsx - Blog listing → Markdown posts: loads posts
app/blog/page.tsx - Blog article → Markdown posts: loads article
app/blog/[slug]/page.tsx - Contact page → Contact form: renders form
app/contato/page.tsx - Contact form → Contact endpoint: submits contact
- Pack page → Pack catalog: loads pack
app/pack/[id]/page.tsx - Pack page → Checkout button: renders checkout
app/pack/[id]/page.tsx - Pack page → Embedded checkout: renders checkout
app/pack/[id]/page.tsx - Checkout button → Payment provider: starts payment
- Embedded checkout → Payment provider: hosts checkout
- Offer card → Pack catalog: uses pack details
components/OfertaCard.tsx - Visitor → Purchase confirmation: returns after purchase
- Purchase confirmation → Purchase tracking: renders tracker
app/obrigado/page.tsx