How inkithai/convertlab works
Purpose and Runtime
This is a Next.js TypeScript application for discovering file-conversion tools and presenting conversion workflows. It is primarily a frontend product surface; no server-side conversion engine, API routes, database, or external service integration is present in the repository.
Application Entry and Shell
The root route and shared application shell establish the landing experience and persistent navigation.
• src/app/layout.tsx
• src/app/page.tsx
• src/app/globals.css
layout.tsx wraps routes with site-wide structure, while the home page uses a format-selection UI to direct users into conversion-specific routes.
Navigation and Site Structure
Reusable header/footer components define the global navigation boundary. Conversion and tool-directory routes are separate product entry points.
• src/components/layout/header.tsx
• src/components/layout/footer.tsx
• src/app/conversion/page.tsx
• src/app/tools/page.tsx
Conversion Discovery Flow
Users choose a source/target format from the landing picker or conversion directory, then navigate to a dynamic conversion URL keyed by conversion type.
• src/app/hero-format-picker.tsx
• src/app/conversion/conversion-picker.tsx
• src/app/conversion/[type]/page.tsx
The [type] route is the principal per-conversion boundary: it resolves the route parameter and renders the appropriate conversion experience.
Client-side Conversion Experience
Interactive behavior for an individual conversion route is isolated in a client component.
• src/app/conversion/[type]/conversion-client.tsx
• src/app/conversion/[type]/page.tsx
This separation suggests server-rendered route setup plus browser-side file/input interaction. Actual file transformation implementation is not visible, so the UI should be treated as decoupled from any future conversion backend or browser processing layer.
Conversion Catalog and Domain Data
Converter definitions are organized by format family and likely supply the route metadata, supported pairings, labels, and tool descriptions consumed by pickers and dynamic pages.
• src/lib/converters/data.ts
• src/lib/converters/documents.ts
• src/lib/converters/office.ts
This catalog is the central domain boundary: adding supported conversions should primarily extend these modules rather than route code.
Tool Directory
The tools section provides a catalog-style browsing surface distinct from the direct conversion flow.
• src/app/tools/tool-directory.tsx
• src/app/tools/page.tsx
• src/lib/converters/data.ts
It likely consumes the same converter catalog, making catalog consistency important across landing, conversion, and directory experiences.
Shared Contracts and Deployment Configuration
Application-wide naming/constants and TypeScript declarations support consistent UI/domain usage; Next.js is the runtime and build/deployment framework.
• src/constants/app.ts
• src/types/declarations.d.ts
• next.config.js
• package.json
Main entry points: layout.tsx Root layout · data.ts Converter catalog · page.tsx Dynamic conversion route · hero-format-picker.tsx Hero format picker
Components 17
App Shell
- Root layout
src/app/layout.tsx - Header
src/components/layout/header.tsx - Footer
src/components/layout/footer.tsx - Global styles
src/app/globals.css
Product Routes
- Home page
src/app/page.tsx - Conversion directory
src/app/conversion/page.tsx - Tools page
src/app/tools/page.tsx - Tool directory
src/app/tools/tool-directory.tsx
Conversion Flow
- Hero format picker
src/app/hero-format-picker.tsx - Conversion picker
src/app/conversion/conversion-picker.tsx - Dynamic conversion route · Resolves the conversion type and sets up its experience.
src/app/conversion/[type]/page.tsx - Conversion client · Browser-side file and input interaction surface.
src/app/conversion/[type]/conversion-client.tsx
Converter Catalog
- Converter catalog · Central source for supported conversions and metadata.
src/lib/converters/data.ts - Document converters
src/lib/converters/documents.ts - Office converters
src/lib/converters/office.ts
Other components
- Next.js runtime · Build and deployment runtime.
next.config.js - App constants & types
src/constants/app.ts
Connections 21
- Next.js runtime → Root layout: runs
- Root layout → Header: renders
- Root layout → Footer: renders
- Root layout → Global styles: loads
- Root layout → Home page: wraps
- Root layout → Conversion directory: wraps
- Root layout → Tools page: wraps
- Home page → Hero format picker: renders
- Conversion directory → Conversion picker: renders
- Hero format picker → Dynamic conversion route: navigates to
- Conversion picker → Dynamic conversion route: navigates to
- Dynamic conversion route → Conversion client: renders
- Tools page → Tool directory: renders
- Converter catalog → Document converters: organizes
- Converter catalog → Office converters: organizes
- Hero format picker → Converter catalog: uses formats
- Conversion picker → Converter catalog: uses formats
- Dynamic conversion route → Converter catalog: resolves type
- Tool directory → Converter catalog: browses
- App constants & types → Root layout: supports
- App constants & types → Converter catalog: shared naming