loki-mode 6.27.1 → 6.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/VERSION +1 -1
- package/dashboard/__init__.py +1 -1
- package/docs/INSTALLATION.md +1 -1
- package/package.json +1 -1
- package/templates/rest-api.md +43 -0
- package/templates/saas-app.md +42 -0
- package/web-app/server.py +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
### Traction
|
|
16
16
|
|
|
17
|
-
**737 stars** | **150 forks** | **10,
|
|
17
|
+
**737 stars** | **150 forks** | **10,600+ Docker pulls** | **19,000+ npm downloads** | **590 commits** | **252 releases published** | **18 releases in a single day (March 18, 2026)**
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.27.
|
|
1
|
+
6.27.2
|
package/dashboard/__init__.py
CHANGED
package/docs/INSTALLATION.md
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# PRD: REST API Service
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
A production-ready RESTful API backend with authentication, CRUD operations, pagination, filtering, rate limiting, and comprehensive documentation.
|
|
5
|
+
|
|
6
|
+
## Target Users
|
|
7
|
+
- Backend developers building API-first applications
|
|
8
|
+
- Teams needing a structured API for frontend or mobile clients
|
|
9
|
+
- Developers learning REST API best practices
|
|
10
|
+
|
|
11
|
+
## Core Features
|
|
12
|
+
1. **Authentication** - JWT-based auth with access and refresh tokens, password hashing with bcrypt
|
|
13
|
+
2. **Resource CRUD** - Full create, read, update, delete operations with proper HTTP methods and status codes
|
|
14
|
+
3. **Pagination and Filtering** - Cursor-based pagination, field filtering, sorting, and search across resources
|
|
15
|
+
4. **Rate Limiting** - Per-endpoint and per-user rate limits with configurable windows and limits
|
|
16
|
+
5. **Input Validation** - Request body and query parameter validation with detailed error messages
|
|
17
|
+
6. **API Documentation** - Auto-generated OpenAPI/Swagger documentation with interactive testing
|
|
18
|
+
7. **Error Handling** - Consistent error response format with appropriate HTTP status codes
|
|
19
|
+
|
|
20
|
+
## Technical Requirements
|
|
21
|
+
- Node.js with Express and TypeScript
|
|
22
|
+
- Prisma ORM with SQLite (dev) / PostgreSQL (prod)
|
|
23
|
+
- JSON Web Tokens for stateless authentication
|
|
24
|
+
- Express middleware architecture
|
|
25
|
+
- Environment-based configuration
|
|
26
|
+
- Structured logging with request correlation IDs
|
|
27
|
+
- Database migrations and seed data
|
|
28
|
+
|
|
29
|
+
## Quality Gates
|
|
30
|
+
- Unit tests for middleware, validators, and business logic
|
|
31
|
+
- Integration tests for all API endpoints
|
|
32
|
+
- Authentication flow tested end-to-end
|
|
33
|
+
- Rate limiter tested under concurrent requests
|
|
34
|
+
- OpenAPI spec validates against schema
|
|
35
|
+
- No N+1 query issues in list endpoints
|
|
36
|
+
|
|
37
|
+
## Success Metrics
|
|
38
|
+
- All CRUD endpoints return correct status codes and response shapes
|
|
39
|
+
- JWT auth flow works: register, login, refresh, logout
|
|
40
|
+
- Pagination returns correct pages with proper metadata
|
|
41
|
+
- Rate limiter blocks excessive requests with 429 responses
|
|
42
|
+
- Swagger UI serves interactive documentation
|
|
43
|
+
- All tests pass
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# PRD: SaaS Application
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
A modern SaaS web application with user authentication, subscription billing, team management, and an admin dashboard.
|
|
5
|
+
|
|
6
|
+
## Target Users
|
|
7
|
+
- Indie developers launching subscription-based products
|
|
8
|
+
- Small teams needing a billing-ready web application
|
|
9
|
+
- Founders validating a SaaS idea quickly
|
|
10
|
+
|
|
11
|
+
## Core Features
|
|
12
|
+
1. **User Authentication** - Email/password signup and login with session management and email verification
|
|
13
|
+
2. **OAuth Integration** - Sign in with Google and GitHub for frictionless onboarding
|
|
14
|
+
3. **Subscription Billing** - Stripe integration with Free, Pro, and Enterprise pricing tiers
|
|
15
|
+
4. **Admin Dashboard** - User management, subscription metrics, revenue analytics, and system health monitoring
|
|
16
|
+
5. **User Settings** - Profile editing, password changes, avatar upload, and plan management
|
|
17
|
+
6. **Team Management** - Invite members by email, assign roles (owner, admin, member), manage permissions
|
|
18
|
+
7. **API Layer** - RESTful API with authentication middleware, rate limiting, and input validation
|
|
19
|
+
|
|
20
|
+
## Technical Requirements
|
|
21
|
+
- Next.js 14 with App Router and TypeScript
|
|
22
|
+
- TailwindCSS with shadcn/ui components
|
|
23
|
+
- Prisma ORM with PostgreSQL
|
|
24
|
+
- NextAuth.js v5 for authentication
|
|
25
|
+
- Stripe SDK for payment processing
|
|
26
|
+
- Server-side rendering for authenticated pages
|
|
27
|
+
- Middleware-based route protection
|
|
28
|
+
|
|
29
|
+
## Quality Gates
|
|
30
|
+
- Unit tests for business logic and utilities (Vitest)
|
|
31
|
+
- API integration tests for auth flow and billing webhooks
|
|
32
|
+
- E2E tests for signup, subscribe, and cancellation flow (Playwright)
|
|
33
|
+
- All API routes validated with zod schemas
|
|
34
|
+
- Stripe webhook signature verification
|
|
35
|
+
- CSRF protection on all mutations
|
|
36
|
+
|
|
37
|
+
## Success Metrics
|
|
38
|
+
- User can sign up, verify email, and log in via email or OAuth
|
|
39
|
+
- Subscription checkout and cancellation work end-to-end
|
|
40
|
+
- Admin dashboard displays accurate user and revenue data
|
|
41
|
+
- Role-based access control enforced on all routes
|
|
42
|
+
- All tests pass with zero console errors
|
package/web-app/server.py
CHANGED