Getting started
Getting started
smartsoft001 is a set of publishable npm packages that share the models, UI components and backend building blocks used across Angular, React and NestJS projects.
Installation
Add the packages you need to an existing Angular, React or NestJS workspace.
Packages
Browse the shared libraries and the crud, auth and trans feature families.
Components
Every smart-* UI component with its API, an executed usage example and the live Storybook story.
Claude Code skills
The smart-core, smart-angular and smart-react plugins that bring the repository conventions into Claude Code.
What is smartsoft001
The framework is an Nx monorepo published as @smartsoft001/* packages. Shared libraries cover models, domain-core, utils, UI components for Angular and for React, NestJS helpers, MongoDB access, users and integrations such as PayPal, PayU, Paynow, Revolut, Facebook and Google. On top of them sit three feature families: crud for metadata-driven data management, auth for authentication and trans for payment transactions across PayU, PayPal, Paynow and Revolut.
Every feature family is split the same way. The domain layer holds entities and business rules with no framework dependency, while the shell layer adapts that domain to a runtime: nestjs for the backend, angular and react for the frontend, dtos for the contracts between them and app-services for the glue. Every code sample in these docs is cut from code that is compiled and tested in CI, so it reflects the packages as they are published.
Quick start
The frontend half comes in two flavours, Angular and React; the switch under the title picks the one these docs show.
Install the packages you need in an existing workspace.
npm install @smartsoft001/angular @smartsoft001/models
Then drop a framework component into a standalone Angular component. The code below is not typed into this page: it is cut from an example file that is compiled and executed by the repository's test suite, so it always matches the published packages.
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
import { ButtonComponent, IButtonOptions } from '@smartsoft001/angular';
@Component({
selector: 'docs-button-basic-example',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [ButtonComponent],
template: `<smart-button [options]="options">Save</smart-button>`,
})
export class ButtonBasicExampleComponent {
saved = signal(false);
options: IButtonOptions = {
click: () => this.saved.set(true),
variant: 'primary',
size: 'md',
};
}
Install the React stack in an existing workspace.
npm install @smartsoft001/react-stack react react-dom
Then wrap the application in SmartProvider and use a framework component inside it. The code below is not typed into this page: it is cut from an example file that is compiled and executed by the repository's test suite, so it always matches the published packages.
import 'reflect-metadata';
import '@smartsoft001/react/styles.css';
import '@smartsoft001/crud-shell-react/styles.css';
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import {
createHistoryNavigation,
SmartButton,
SMART_PRESET_COMPONENTS,
SmartProvider,
useNavigation,
useTranslate,
} from '@smartsoft001/react';
// Created once: the adapter follows the browser history. An application with
// a router passes an adapter over that router instead.
const navigation = createHistoryNavigation();
// Deep-merged over the library's own dictionary.
const translations = { openNotes: 'Open notes' };
function Home() {
const t = useTranslate();
const { navigate } = useNavigation();
return (
<SmartButton options={{ click: () => navigate('/notes') }}>
{t('openNotes')}
</SmartButton>
);
}
export function mount(element: HTMLElement) {
const root = createRoot(element);
root.render(
<StrictMode>
<SmartProvider
language="eng"
translations={translations}
navigation={navigation}
// The styled (Preline) implementation of every component; without it
// each component renders its unstyled standard implementation.
{...SMART_PRESET_COMPONENTS}
>
<Home />
</SmartProvider>
</StrictMode>,
);
return root;
}
Installation details and per-package guides are being published section by section, so this page will grow as each area of the framework is documented.

