Overview of Perseid UsersEngine
UsersEngine is an extension of the @perseid/server Engine class that provides specialized methods for handling user authentication and authorization within the Perseid framework.website·Indexed 32 days ago
https://perseid.devA full-stack development framework featuring a UI component library (@perseid/ui), a state management system (@perseid/store), and a server-side API reference (@perseid/server) with support for Express, Fastify, MySQL, and PostgreSQL.
UsersEngine is an extension of the @perseid/server Engine class that provides specialized methods for handling user authentication and authorization within the Perseid framework.Perseid is a framework designed for building large-scale web applications, providing a set of fundamental building blocks for both backend and user interface development. Key architectural characteristics include:
The data model in Perseid is an abstract representation of all data an application handles. It provides a database-agnostic abstraction that works across both SQL and noSQL systems. This single definition drives several core packages:
@perseid/form: Generates complex dynamic forms from the configuration.@perseid/server: Generates database structures and fully functional REST APIs for CRUD operations.@perseid/client: Automatically builds applications and user interfaces.@perseid/server and is intended to offload computationally-intensive tasks from API servers to maintain high HTTP request performance.MongoDatabaseClient is a MongoDB implementation of the database client in @perseid/server. It extends the AbstractDatabaseClient class and provides methods for managing MongoDB database connections, resource creation, and query generation.Model class is used to define and manage data model schemas. It extends BaseModel and allows for the definition of data model types and the generation of public schemas for front-end introspection.class Model<
/** Data model types definitions. */
DataModel = DefaultDataModel,
> extends BaseModel<DataModel>UITooltip wrapper displays additional text around child elements on focus, key press, or hover. It is designed for accessibility and is fully supported by screen readers.MySQLDatabaseClient is a MySQL-specific implementation of the database client in @perseid/server, extending the AbstractDatabaseClient class. It manages the connection to MySQL via a mysql.Pool and handles the translation between the application's data model and SQL structures.@perseid/form is a generic engine that generates complex, input-based UIs (forms, surveys, chatbots, etc.) via a JSON configuration. It supports React, Svelte, and Vue natively, but allows for custom frontend implementations. The structural hierarchy consists of: