You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mleku
24383ef1f4
Decompose handle-event.go into DDD domain services (v0.36.15)
Major refactoring of event handling into clean, testable domain services:
- Add pkg/event/validation: JSON hex validation, signature verification,
timestamp bounds, NIP-70 protected tag validation
- Add pkg/event/authorization: Policy and ACL authorization decisions,
auth challenge handling, access level determination
- Add pkg/event/routing: Event router registry with ephemeral and delete
handlers, kind-based dispatch
- Add pkg/event/processing: Event persistence, delivery to subscribers,
and post-save hooks (ACL reconfig, sync, relay groups)
- Reduce handle-event.go from 783 to 296 lines (62% reduction)
- Add comprehensive unit tests for all new domain services
- Refactor database tests to use shared TestMain setup
- Fix blossom URL test expectations (missing "/" separator)
- Add go-memory-optimization skill and analysis documentation
- Update DDD_ANALYSIS.md to reflect completed decomposition
Files modified:
- app/handle-event.go: Slim orchestrator using domain services
- app/server.go: Service initialization and interface wrappers
- app/handle-event-types.go: Shared types (OkHelper, result types)
- pkg/event/validation/*: New validation service package
- pkg/event/authorization/*: New authorization service package
- pkg/event/routing/*: New routing service package
- pkg/event/processing/*: New processing service package
- pkg/database/*_test.go: Refactored to shared TestMain
- pkg/blossom/http_test.go: Fixed URL format expectations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
3 weeks ago |
| .. |
|
applesauce-core
|
Add Claude Code skills for web frontend frameworks
|
1 month ago |
|
applesauce-signers
|
Add Claude Code skills for web frontend frameworks
|
1 month ago |
|
cypher
|
add cypher to cloud skills
|
1 month ago |
|
distributed-systems
|
Add foundational resources for elliptic curve operations and distributed systems
|
1 month ago |
|
domain-driven-design
|
Fix Blossom CORS headers and add root-level upload routes (v0.36.12)
|
3 weeks ago |
|
elliptic-curves
|
Add foundational resources for elliptic curve operations and distributed systems
|
1 month ago |
|
go-memory-optimization
|
Decompose handle-event.go into DDD domain services (v0.36.15)
|
3 weeks ago |
|
golang
|
Refactor for interface clarity and dependency isolation.
|
1 month ago |
|
ndk
|
Add NDK skill documentation and examples
|
2 months ago |
|
nostr
|
Fix NIP-42 AUTH compliance: always respond with OK message
|
1 month ago |
|
nostr-tools
|
Add Claude Code skills for web frontend frameworks
|
1 month ago |
|
nostr-websocket
|
Add comprehensive documentation for CLAUDE and Nostr WebSocket skills
|
2 months ago |
|
react
|
Add NDK skill documentation and examples
|
2 months ago |
|
rollup
|
Add Claude Code skills for web frontend frameworks
|
1 month ago |
|
skill-creator
|
Add Golang skill and reference materials
|
2 months ago |
|
svelte
|
Add Claude Code skills for web frontend frameworks
|
1 month ago |
|
typescript
|
Add NDK skill documentation and examples
|
2 months ago |