https://github.com/productdevbook/nitro-kutu
See requests in the terminal. Get more detail with the panel.
https://github.com/productdevbook/nitro-kutu
nitro nitro-module nuxt nuxt3 nuxt4 terminal
Last synced: 8 months ago
JSON representation
See requests in the terminal. Get more detail with the panel.
- Host: GitHub
- URL: https://github.com/productdevbook/nitro-kutu
- Owner: productdevbook
- Created: 2024-12-04T18:44:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T17:41:18.000Z (10 months ago)
- Last Synced: 2025-01-28T17:45:22.371Z (8 months ago)
- Topics: nitro, nitro-module, nuxt, nuxt3, nuxt4, terminal
- Language: TypeScript
- Homepage:
- Size: 554 KB
- Stars: 24
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nitro Kutu

```ts
➜ Local: http://localhost:3001/
➜ Network: use --host to expose[nitro 1:41:02 AM] ✔ Nitro Server built in 272 ms
01:41:02 □ ● GET │ / │ 2.386ms -
01:57:53 □ ● GET │ / │ 0.784ms -
01:57:53 □ ● GET │ / │ 0.603ms -
01:57:54 □ ● GET │ / │ 0.171ms -
01:57:54 □ ● GET │ / │ 0.272ms -
01:57:54 □ ● GET │ / │ 0.157ms -
01:57:55 □ ● GET │ / │ 0.186ms -
```> [!NOTE]
> See requests in the terminal. Get more detail with the panel.## Usage
First, install `nitro-kutu` packages as a dev dependency: ([unjs/nypm](https://nypm.unjs.io) will automatically detect your package manager!)
```sh
npx nypm@latest add -D nitro-kutu
```For **Nuxt** update `nuxt.config.ts`:
```ts
export default defineNuxtConfig({
modules: ["nitro-kutu"],
});
```For **Nitro** update `nitro.config.ts`:
```ts
import nitroKutu from "nitro-kutu";export default defineNitroConfig({
modules: [nitroKutu],
});
```## Dashboard
`http://localhost:3001/api/_analytics/dashboard` for the dashboard. `api/_analytics/dashboard` is the default path.
## Development
- Clone this repository
- Install the latest LTS version of [Node.js](https://nodejs.org/en/)
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Build in stub mode using `pnpm build --stub`
- Run Nitro playground using `pnpm dev:nitro` or Nuxt playground using `pnpm dev:nuxt`## License
[MIT](./LICENSE)