npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@peakiq/hotel-admin-panel

v1.0.1

Published

Reusable hotel admin panel for Next.js App Router. Includes rooms, bookings, gallery, CMS, SEO, users, and more.

Downloads

313

Readme

@peakiq/hotel-admin-panel

Reusable hotel admin panel for Next.js App Router. Includes rooms, bookings, gallery, CMS, SEO, users, and more.

Quick Start

# 1. Create a new Next.js project
npx create-next-app my-hotel
cd my-hotel

# 2. Install the package
npm install @peakiq/hotel-admin-panel

# 3. Run the setup CLI (copies all admin files, installs deps, sets up database)
npx hotel-admin-setup .

# 4. Start the dev server
npm run dev

Visit http://localhost:3000/admin

The setup CLI will:

  • Copy admin pages, API routes, and lib files into your project
  • Install all required dependencies
  • Prompt for DATABASE_URL if not in .env
  • Create database tables
  • Create a super admin user
  • Print your login credentials

What Gets Installed

After setup, your project will have:

app/
  admin/          ← 26 admin pages (generated)
  api/            ← 41 API routes (generated)
  actions/        ← 2 server actions (generated)
  globals.css     ← yours
  layout.tsx      ← yours
  page.tsx        ← yours
lib/              ← 16 re-export files (generated)
config.ts         ← yours (hotel configuration)
middleware.ts     ← yours (auth gate)

All generated files import from the package — edit them to customize.

Environment Variables

The CLI creates a .env file with DATABASE_URL and SESSION_SECRET automatically.

| Variable | Required | Description | |----------|----------|-------------| | DATABASE_URL | Yes | PostgreSQL connection string (get free at neon.tech) | | SESSION_SECRET | Yes | Auto-generated by CLI | | HOTEL_NAME | No | Hotel display name (default: "My Hotel") | | NEXT_PUBLIC_SITE_URL | No | Full site URL | | CLOUDINARY_CLOUD_NAME | No | For image uploads | | CLOUDINARY_API_KEY | No | For image uploads | | CLOUDINARY_API_SECRET | No | For image uploads | | SMTP_HOST | No | For email notifications | | SMTP_PORT | No | For email notifications | | SMTP_USER | No | For email notifications | | SMTP_PASS | No | For email notifications |

Programmatic Usage

import { setConfig, getConfig } from "@peakiq/hotel-admin-panel";

setConfig({
  hotelName: "My Hotel",
  siteUrl: "https://myhotel.com",
  cloudinaryPrefix: "my-hotel",
  contactEmail: "[email protected]",
});

const config = getConfig();
console.log(config.hotelName);

Features

  • Rooms — CRUD with drag-and-drop reorder, image galleries, amenities
  • Bookings — Channel manager with status workflow, inventory view
  • Gallery — Image management with bulk upload
  • Media — Cloudinary media library
  • Pages — CMS page editor with markdown
  • Experiences — Hotel experience cards
  • Nearby Places — Attraction management
  • Amenities — Amenity management
  • Testimonials — Guest review management
  • Offers — Package/pricing management
  • SEO — Meta tags, OG images, canonical URLs
  • Users — Role-based access control (super_admin, admin, manager)
  • Settings — Site config, 2FA, backups
  • Authentication — Email/password + TOTP 2FA
  • Cloudinary — Image upload/delete
  • Email — Booking notifications, contact form
  • OTA Updates — Over-the-air package updates with rollback
  • Config Validator — Setup wizard ensures all config is complete

License

MIT