type StackArea =
| "backend"
| "frontend"
| "architecture"
| "tooling"
| "open-source"
type DeveloperProfile = {
name: string
title: string
experienceYears: number
location: string
primaryLanguages: string[]
favoriteTools: string[]
strengths: StackArea[]
focus: {
products: string[]
architectures: string[]
frontend: string[]
}
}
const profile: DeveloperProfile = {
name: "Kavinda Rathnayake",
title: "Software Engineer",
experienceYears: 3,
location: "Sri Lanka",
primaryLanguages: ["TypeScript", "Rust", "Java"],
favoriteTools: ["React", "Vite", "TanStack Start", "Next.js", "Tailwind CSS", "shadcn/ui"],
strengths: ["backend", "frontend", "architecture", "tooling", "open-source"],
focus: {
products: ["web applications", "backend systems", "REST APIs"],
architectures: ["microservices", "monoliths"],
frontend: ["React", "Vite", "TanStack Start", "Next.js"],
},
}
const summary = [
"Backend-first engineer with full-stack range.",
"Builds custom tools and enjoys open-source work.",
"Likes clean systems, practical architecture, and thoughtful UI.",
]
function createIntro({ name, title, experienceYears }: DeveloperProfile) {
return `${name} is a ${title} with ${experienceYears}+ years of experience.`
}
function chooseMode(areas: StackArea[]) {
return areas.includes("backend") ? "ship reliable systems" : "keep exploring"
}
export function aboutMeInCode() {
return {
intro: createIntro(profile),
mode: chooseMode(profile.strengths),
nowBuilding: profile.focus.products,
primaryLanguages: profile.primaryLanguages,
frontendToolkit: profile.focus.frontend,
values: summary,
}
}
export const currentStatus = aboutMeInCode()