App Server Package

Server-side API layer for the main app

Overview

@zooly/app-srv is the server package that handles API calls for the main application. It's built on top of the @zooly/app-db package and provides the server-side business logic.

Package Details

  • Package Name: @zooly/app-srv
  • Location: packages/srv
  • Type: Server-side API layer

Key Features

  • Built on top of the @zooly/app-db package
  • Provides API endpoints and server-side logic
  • Enforces multi-tenant access through the db package
  • Provides terms setup functionality (IP terms management)

Architecture

The server package acts as a thin layer over the database package:

packages/srv/
└── src/
    └── index.ts     # Server API functions

Dependencies

  • @zooly/app-db - Database access layer

Usage

This package is used by Next.js apps to provide server-side API functionality. It handles business logic and coordinates database operations through the db package.