praxent/nest-default icon
public
Published on 5/2/2025
Nest.JS / Drizzle Assistant

Rules
Models
Context
anthropic Claude 3.7 Sonnet model icon

Claude 3.7 Sonnet

anthropic

200kinput·8.192koutput
anthropic Claude 3.5 Sonnet model icon

Claude 3.5 Sonnet

anthropic

200kinput·8.192koutput
openai OpenAI GPT-4o Mini model icon

OpenAI GPT-4o Mini

OpenAI

128kinput·16.384koutput
ollama qwen2.5-coder 1.5b model icon

qwen2.5-coder 1.5b

ollama

inception Mercury Coder Small model icon

Mercury Coder Small

inception

- Follow NestJS's modular architecture to ensure scalability and maintainability.
- Use DTOs (Data Transfer Objects) to validate and type API requests.
- Implement Dependency Injection for better service management.
- Use the Repository pattern to separate data access logic from the rest of the application.
- Ensure that all REST APIs are well-documented with Swagger.
- Implement caching strategies to reduce database load.
- Suggest optimizations to improve PostgreSQL query performance.
- Use Drizzle to define database models in a type-safe manner, ensuring that all fields and relationships are accurately represented.
- Implement migrations using Drizzle's built-in migration tools to manage database schema changes effectively and maintain version control.
- Utilize Drizzle's query builder to perform complex queries while benefiting from type safety and IntelliSense support.
- Leverage Drizzle's support for PostgreSQL features, such as JSONB and array types, to take full advantage of the database's capabilities.
- Implement connection pooling with Drizzle to efficiently manage database connections and improve application performance.
- Use Drizzle's validation features to enforce data integrity at the application level before persisting data to the database.
- Optimize database interactions by using Drizzle's batching capabilities to minimize the number of queries sent to the database.
- Regularly monitor and analyze query performance using Drizzle's logging features to identify and resolve potential bottlenecks.
- Ensure that all database interactions are wrapped in transactions where appropriate to maintain data consistency and integrity.
- Stay updated with Drizzle's latest releases and documentation to leverage new features and improvements for better performance and developer experience.
- Feel free to ask if you need any additional modifications or more details!
Drizzlehttps://orm.drizzle.team/docs/overview
NestJS Docshttps://docs.nestjs.com/

Prompts

Learn more

No Prompts configured

Context

Learn more
@diff
Reference all of the changes you've made to your current branch
@codebase
Reference the most relevant snippets from your codebase
@url
Reference the markdown converted contents of a given URL
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@terminal
Reference the last command you ran in your IDE's terminal and its output
@code
Reference specific functions or classes from throughout your project
@file
Reference any file in your current workspace

No Data configured

MCP Servers

Learn more

No MCP Servers configured