Catalog npm
PACKAGE EXPLORERView in registry

9ight

npm

A Next.js API framework

Versions collected7
Direct dependencies33From release 0.0.0-canary.6
Last observed20 Oct, 21:38 UTC

README

Current package documentation

9ight 🌒

A Next.js API framework

yarn add 9ight next
// pages/api/users.ts

import { Body, Controller, Get, Params, Post } from '9ight';

const db = [];

@Controller('users')
export default class Users {

  @Get(':id')
  get(@Params() { id }) {
    return db[id];
  }

  @Patch(':id')
  update(@Body() body) {
    db[id] = Object.assign(db[id], body)
    return db[id];
  }

  @Post()
  create(@Body() body) {
    db.push({ id: db.length, name: body.name });
    return db.slice(-1)
  }

  @Get()
  list() {
    return db;
  }
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 7

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.0-canary.6Registry latest28 Jan 202033
0.0.0-canary.528 Jan 202033
0.0.0-canary.426 Jan 202029
0.0.0-canary.326 Jan 202030
0.0.0-canary.226 Jan 202030
0.0.0-canary.126 Jan 202030
0.0.0-canary.021 Jan 202024

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b22fdb31f332685bf61ee2a985afef05057e4851ab6e2cc91642e1854230b797