DEV Community

💻 Arpad Kish 💻
💻 Arpad Kish 💻

Posted on

@greeneyesai/api-utils

A super-lightweight, fully typed TypeScript lib to help you implement versatile NodeJS REST APIs quickly. Enterprise-ready. Patterns include Model-View-Controller architecture, typed middlewares, Inversion of Control (DI) for Controller and Provider constructs, support for event-driven composition, a health check endpoint abstraction, declarative routing, CORS middleware, verbose error handling, worker-thread based asynchronous logging, support for graceful shutdown and runtime exception handling.

Providers included: an abstraction over Sequelize ORM for PostgreSQL supporting Trait-based extensions, a Redis client with full API support, an AWS S3 object storage client and an AWS SES email relay client.

Code examples are included on the NPM page.

NPM page: https://www.npmjs.com/package/@greeneyesai/api-utils
Current version: 1.11.11
Author: @rpi1337
License: GNU Lesser General Public License v3.0

© GreenEyes Artificial Intelligence Services, LLC.

API Trace View

Struggling with slow API calls?

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Billboard image

Try REST API Generation for MS SQL Server.

DreamFactory generates live REST APIs from database schemas with standardized endpoints for tables, views, and procedures in OpenAPI format. We support on-prem deployment with firewall security and include RBAC for secure, granular security controls.

See more!

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay