diff --git a/apps/embed/bun.lock b/apps/embed/bun.lock index 0ec213b7..d4863f9e 100644 --- a/apps/embed/bun.lock +++ b/apps/embed/bun.lock @@ -9,6 +9,7 @@ "@iconify-json/tabler": "^1.2.26", "@iconify/tailwind4": "^1.2.1", "@logtape/logtape": "^2.0.2", + "chalk": "^5.6.2", "dayjs": "^1.11.19", "flyonui": "^2.4.1", "hono": "^4.11.7", @@ -274,6 +275,8 @@ "caniuse-lite": ["caniuse-lite@1.0.30001766", "", {}, "sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA=="], + "chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], + "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], "commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="], diff --git a/apps/embed/package.json b/apps/embed/package.json index 6865c98f..c4658b0c 100644 --- a/apps/embed/package.json +++ b/apps/embed/package.json @@ -25,6 +25,7 @@ "@iconify-json/tabler": "^1.2.26", "@iconify/tailwind4": "^1.2.1", "@logtape/logtape": "^2.0.2", + "chalk": "^5.6.2", "dayjs": "^1.11.19", "flyonui": "^2.4.1", "hono": "^4.11.7", diff --git a/apps/embed/src/index.tsx b/apps/embed/src/index.tsx index db3dc5b9..d8eb8b9a 100644 --- a/apps/embed/src/index.tsx +++ b/apps/embed/src/index.tsx @@ -19,6 +19,7 @@ import getTopArtists from "./xrpc/getTopArtists"; import getTopAlbums from "./xrpc/getTopAlbums"; import getTopTracks from "./xrpc/getTopTracks"; import getRecentScrobbles from "./xrpc/getRecentScrobbles"; +import chalk from "chalk"; const app = new Hono(); @@ -150,4 +151,24 @@ app.get("/", (c) => { ); }); -export default app; +console.log( + chalk.greenBright(` + ______ __ __ + / ____/___ ___ / /_ ___ ____/ / + / __/ / __ \`__ \\/ __ \\/ _ \\/ __ / + / /___/ / / / / / /_/ / __/ /_/ / +/_____/_/ /_/ /_/_.___/\\___/\\__,_/ +`), +); + +const port = process.env.EMBED_PORT ? Number(process.env.EMBED_PORT) : 4001; +console.log( + chalk.blueBright( + "🚀 Server is running!" + chalk.whiteBright(` http://localhost:${port}`), + ), +); + +export default { + port, + fetch: app.fetch, +};