Skip to content

siddnikh/log-place

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

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

 
 
 

Contributors