Skip to content

siddnikh/log-place

Repository files navigation

LogPlace 😎

A tiny, self-hostable log board built with modern toys (Next.js 15, React 19, Prisma, Tailwind v4, shadcn/ui). Throw it on Vercel's free tier, point your side-projects at a single HTTP endpoint, and boom - instant log history with graphs, no SaaS bills. Nice, right? :)

THIS IS MEANT FOR PERSONAL USE

Why bother? 🤔

• One endpoint - POST /api/log - for every hobby app.
• Stores any JSON you chuck at it - no judgement.
• Filters, details, pretty graphs 📊 - because numbers look cooler visualised.
• Dark UI with a touch of brown - so moody, so classy.

Tech Stack ⚙️

Layer Goodies
Runtime Next.js 15 (App Router)
DB ORM Prisma + MySQL
UI React 19 · shadcn/ui · Tailwind v4
Charts Recharts
Hosting Vercel (free)

Quick Start (Local) 🏃‍♂️💨

# 1. Grab the code & install deps
bun install      # or npm/yarn/pnpm, you do you

# 2. Env vars
cp .env.example .env   # then fill 'em in

# 3. Fire it up
bun run prisma generate
bun run dev            # opens http://localhost:3000

You'll land on a simple password screen - enter your secret and you're in 🎉.

.env cheat-sheet 📝

Variable What it does
DATABASE_URL MySQL connection (PlanetScale works great)
AUTH_ID Shared secret clients must send in authId
PASSWORD The dashboard login password

Heads-up: Vercel → Project Settings → Environment Variables - dump them there.


Deploy to Vercel for $0 💸

  1. Fork / push repo → GitHub.
  2. Import into Vercel. Auto Next.js detection FTW.
  3. Add the env vars above.
  4. Smash Deploy, 30 s later you're live.
  5. Optional: hook up PlanetScale in one click → copy its DATABASE_URL.

Done! Your logs are now chilling at https://<whatever>.vercel.app 🙌.


How to log stuff 📨

POST /api/log
Content-Type: application/json

{
  "authId": "<AUTH_ID>",       // must match the env var
  "appName": "my-app",        // any non-empty string
  "log": { "hello": "world" } // any JSON payload
}

• Wrong authId? Record is still saved but tagged ⚠️ error (handy for spotting bad creds).
• New appName values auto-populate the filter dropdown.


Roadmap / Crazy ideas 🔮

  • Real-time stream via WebSockets
  • CSV export
  • Light mode? maybe lol
  • Bring your own themes / shadcn presets

PRs welcome just open an issue first so we're on the same page. Cheers! :)


License 🪪

MIT © 2025 - use, fork, break, enjoy.

About

I keep my logs in this, here 🤷‍♂️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published