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

@fleetbase/customer-portal-engine

v0.0.11

Published

Extendable Customer Portal for Fleetbase

Downloads

0

Readme

Overview

Fleetbase Customer Portal is a first-party Fleetbase extension that gives customers a secure, self-service workspace connected to Fleetbase Console, FleetOps, and Ledger. It ships as an Ember engine for the frontend and a Laravel package for the backend API.

The portal is designed for customer-facing logistics workflows: customers can sign in, track orders, place new orders, view invoices, manage documents, open support tickets, update account preferences, and use dashboard widgets tailored to their account.

Features

  • Customer authentication - Customer login, two-factor verification, password recovery, customer session loading, and automatic redirects from customer access URLs.
  • Dashboard workspace - Customer dashboard registration with widgets for active orders, completed orders, unpaid invoices, open support tickets, recent orders, and pending actions.
  • Order management - Order listing, order details, order creation, route preview, place lookup, payload/entities, custom fields, notes, documents, cancel, reschedule, and file attachments.
  • Quotes and payments - Preliminary service quote lookup, portal-scoped purchase rates, optional Stripe checkout sessions, payment status checks, and Ledger invoice reconciliation.
  • Billing - Customer invoice lists, invoice details, and invoice summaries backed by Ledger when it is installed and available.
  • Support - Customer support tickets backed by FleetOps Issues, including issue creation, summaries, comments, replies, editing, and deletion.
  • Documents and address book - Customer-visible order documents plus account-scoped place search, lookup, creation, update, and deletion.
  • Account settings - Account profile data, self-service password change, vendor conversion flows, personnel management, and notification preferences.
  • Admin configuration - Console settings panel for portal configuration, access URL validation, enabled order configs, enabled service rates, and payment settings.
  • Extension points - Sidebar and login registries, dashboard/widget registration, virtual routes, and menu integration for extending the portal from other Fleetbase packages.

Architecture

This repository contains both sides of the extension:

addon/      Ember engine source: routes, templates, components, services, widgets, and extension registration
app/        Re-exports that make addon modules available to the consuming Fleetbase Console app
server/     Laravel package source: routes, controllers, services, providers, notifications, and observers
tests/      Ember/QUnit tests and dummy app support

Frontend package

@fleetbase/customer-portal-engine

The Ember engine mounts at the Fleetbase route configured in package.json:

{
    "fleetbase": {
        "route": "customer-portal",
        "mount": "root"
    }
}

The engine registers customer portal routes for authentication, dashboard, orders, billing, support, documents, address book, notifications, settings, account management, and virtual extension pages.

Backend package

fleetbase/customer-portal-api

The Laravel package registers portal APIs under the configurable prefix:

customer-portal/int/v1

Backend controllers and services scope data to the authenticated customer account, integrate with FleetOps orders and issues, integrate with Ledger invoices and transactions, and expose portal configuration for Console admins.

Installation

Install the backend package in the Fleetbase API:

composer require fleetbase/customer-portal-api

Install the Ember engine in Fleetbase Console:

pnpm install @fleetbase/customer-portal-engine

The package also depends on Fleetbase shared frontend packages and first-party backend packages, including Core API, FleetOps, and Ledger.

Development Setup

For local Fleetbase extension development, use Fleetbase's package linker so Console and API resolve this checkout instead of published package versions. See the official Fleetbase Development Setup guide for the full workflow.

Clone Fleetbase with submodules:

git clone https://github.com/fleetbase/fleetbase.git
cd fleetbase
git submodule update --init --recursive

Install the package linker once from the Fleetbase repository root:

npm link
flb-package-linker --help

Enable the customer portal package:

flb-package-linker enable customer-portal
flb-package-linker install customer-portal

You can let the linker run install commands immediately:

flb-package-linker enable customer-portal --install

For backend package work in Docker, mount local source into the application container:

services:
  application:
    environment:
      ENVIRONMENT: "development"
      APP_DEBUG: "true"
    volumes:
      - ./api:/fleetbase/api
      - ./packages:/fleetbase/packages

Restart the stack after changing Docker mounts:

docker compose up -d

Fleetbase runs Laravel Octane, so reload the application worker after PHP changes:

docker compose exec application php artisan octane:reload

For frontend work, run the Fleetbase Console development server locally or in Docker. The local path is usually the fastest:

docker compose stop console
cd console
pnpm install
pnpm start:dev

Console will be available at:

http://localhost:4200

Configuration

The backend config lives in server/config/customer-portal.php:

return [
    'api' => [
        'version' => '0.0.1',
        'routing' => [
            'prefix' => 'customer-portal',
            'internal_prefix' => 'int',
        ],
    ],
];

Portal admins can configure customer portal behavior from Fleetbase Console settings. The package includes API support for:

  • Portal configuration loading and saving
  • Customer access URL slug validation
  • Enabled order configurations
  • Enabled service rates
  • Payment availability and Stripe-backed checkout configuration

Quality Checks

Install dependencies for this package:

pnpm install
composer install

Run frontend checks:

pnpm lint
pnpm test

Run backend checks:

composer test

Useful focused commands:

pnpm start
pnpm build
pnpm test:ember
pnpm test:ember-compatibility
composer test:lint
composer test:types
composer test:unit

Contributing

Contributions are welcome. Keep changes scoped, include tests for behavior changes, and verify both the Ember engine and Laravel package paths when a feature crosses the frontend/backend boundary.

When developing inside the Fleetbase monorepo, prefer flb-package-linker over manual package.json, composer.json, or workspace edits so local development links remain reversible.

License

Fleetbase Customer Portal is released under the GNU Affero General Public License v3.0 or later. See LICENSE.md for details.