How kartik192008/portfolio-x-kartik- works
This workspace contains a portfolio site, a component-preview sandbox, a small HTTP API server, and shared API/database libraries. The portfolio workflow is a visitor browsing the home, work, toolkit, lab, and contact experience; the sandbox workflow is opening a preview path and rendering a dynamically loaded component. The API starts an Express app and routes API requests to health handling. No README was provided, and the API server and libraries are not shown wired together, so those connections are omitted.
Main entry points: main.tsx Portfolio mount · src/index.ts API listener · app.ts Express app · src/index.ts Drizzle database
Components 18
Portfolio site
- Portfolio mount
artifacts/kartik-portfolio/src/main.tsx - Portfolio experience
artifacts/kartik-portfolio/src/App.tsx - Error boundary
artifacts/kartik-portfolio/src/components/error-boundary.tsx
Component previews
- Sandbox mount
artifacts/mockup-sandbox/src/main.tsx - Preview router
artifacts/mockup-sandbox/src/App.tsx - Preview discovery
artifacts/mockup-sandbox/mockupPreviewPlugin.ts
HTTP API
- API listener
artifacts/api-server/src/index.ts - Express app
artifacts/api-server/src/app.ts - API routes
artifacts/api-server/src/routes/index.ts - Health route
artifacts/api-server/src/routes/health.ts - Request logger
artifacts/api-server/src/lib/logger.ts
Shared libraries
- Custom fetch
lib/api-client-react/src/custom-fetch.ts - Drizzle database
lib/db/src/index.ts - Database schema
lib/db/src/schema/index.ts - API Zod exports
lib/api-zod/src/index.ts
Other components
- Visitor
- API caller
- PostgreSQL
Connections 13
- Visitor → Portfolio mount: opens site
- Portfolio mount → Portfolio experience: renders
artifacts/kartik-portfolio/src/main.tsx - Portfolio mount → Error boundary: wraps
artifacts/kartik-portfolio/src/main.tsx - Visitor → Sandbox mount: opens sandbox
- Sandbox mount → Preview router: renders
artifacts/mockup-sandbox/src/main.tsx - API caller → API listener: sends request
- API listener → Express app: starts
artifacts/api-server/src/index.ts - Express app → API routes: mounts at /api
artifacts/api-server/src/app.ts - API routes → Health route: registers
artifacts/api-server/src/routes/index.ts - Express app → Request logger: configures logging
artifacts/api-server/src/app.ts - API listener → Request logger: logs startup
artifacts/api-server/src/index.ts - Drizzle database → Database schema: loads schema
lib/db/src/index.ts - Drizzle database → PostgreSQL: connects to
lib/db/src/index.ts