// whoami.ts
"use server";
import { githubWebDevsUtils } from "github/web/devs/utils"; // π₯² i couldn't resist
type ProfileProps = {
expertise: string[];
passion: string[];
teaching: string[];
interest: string[]
}
const mrTProfile: ProfileProps = {
expertise: ["JS/TS", "React/Next.js", "Drizzle ORM/Prisma ORM", "PostgreSQL/MongoDB"],
passion: ["Developer Education", "AI Accessibility", "Career Growth"],
teaching: ["Programming Fundamentals", "AI Integration"],
interest: ["AI/ML", "Astronomy/Space Engineering"]
}
/**
* Very nerdy presentation, I know π
* Let's just have fun folks, while expressing a bit of creativity.
*/
export async function displayProfile(mrTProfile){
const { success, session } = await githubWebDevsUtils.verifySession();
if (!success || !session)
return { message: "Please log in first to access this content." };
try {
const profileInfo = await githubWebDevsUtils.loadProfileInfo(mrTProfile);
return profileInfo;
} catch(err: unknow) {
const e = err as Error;
console.error(`Something wrong happened: ${e.message}`);
}
}
// app/profile/page.tsx
// Coming soon...
π
Working from home
just a nerdy guy having fun, folks
-
Founder of the Wemi Labs
- All around the world
- https://cuttypiedev.vercel.app/
- @DorianTho5
Pinned Loading
-
-
-
keepflowing
keepflowing PublicProject Management App for Independents (highly scalable)
TypeScript 2
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.


