mementor-ts
v0.1.0
Published
A powerful documentation management tool that helps you maintain living documentation for your projects
Maintainers
Readme
Mementor TypeScript (mementor-ts)
A powerful documentation management tool that helps you maintain living documentation for your projects. Mementor-ts automatically tracks documentation health, generates snapshots, and provides insights into your documentation's evolution over time.
Features
- 📝 Living Documentation: Keep your documentation in sync with your codebase
- 📸 Snapshots: Track documentation changes over time
- 📊 Health Metrics: Monitor documentation quality and completeness
- 🔄 Change Tracking: Compare snapshots to see how documentation evolves
- 📁 Organized Storage: Hierarchical storage of snapshots by year/month/day
- 🔍 Smart Comparison: Intelligent diffing of documentation changes
Installation
Requirements
- Node.js >= 16.0.0
- npm >= 7.0.0
Global Installation
npm install -g mementor-tsLocal Project Installation
npm install --save-dev mementor-tsDevelopment Setup
# Clone the repository
git clone https://github.com/zeljkoprsa/mementor-ts.git
# Install dependencies
cd mementor-ts
npm install
# Build the project
npm run buildUsage
Initialize a Project
mementor initThis creates the initial documentation structure:
docs/
└── context/
├── active_context.md
├── tech_context.md
├── system_patterns.md
├── product_brief.md
└── snapshots/Create Snapshots
# Create a new snapshot
mementor snapshot
# Watch for changes and create snapshots automatically
mementor watchOrganize Snapshots
# Clean up and organize snapshots into year/month/day structure
mementor cleanupCompare Snapshots
# Compare latest snapshots
mementor compare
# Compare snapshots from a specific date
mementor compare --date 2025-02-07
# Compare specific snapshots
mementor compare --old snapshots/old.md --new snapshots/new.mdDocumentation Structure
Mementor-ts provides a flexible documentation structure that you can customize to your needs. Here's a suggested structure:
1. Active Context
- Current focus areas and development status
- Recent architectural decisions
- Known issues and limitations
- Development environment setup
- Planned next steps
2. Technical Documentation
- Architecture overview
- Technology stack details
- External dependencies
- Infrastructure setup
- Security considerations
3. Development Guidelines
- Coding standards
- Design patterns in use
- Testing strategy
- CI/CD workflow
4. Project Information
- Project overview
- Getting started guide
- Contributing guidelines
- Release notes
You can customize this structure by modifying the templates in your project's configuration.
Health Metrics
Mementor-ts tracks various documentation health metrics to help you maintain high-quality documentation:
- Documentation coverage and completeness
- Update frequency and freshness
- Content structure analysis
- Code example coverage
- Change frequency patterns
- Documentation size metrics
Contributing
We welcome contributions! Here's how you can help:
Setting Up Development Environment
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/mementor-ts.git - Install dependencies:
npm install - Create a branch:
git checkout -b feature/your-feature-name
Development Workflow
- Make your changes
- Run tests:
npm test - Build the project:
npm run build - Commit your changes:
git commit -m "feat: add new feature" - Push to your fork:
git push origin feature/your-feature-name - Create a Pull Request
Coding Standards
- Use TypeScript with strict mode enabled
- Follow ESLint and Prettier configurations
- Write tests for new features
- Update documentation as needed
Commit Message Format
Follow the Conventional Commits specification:
feat:New featuresfix:Bug fixesdocs:Documentation changestest:Adding or updating testschore:Maintenance tasks
License
MIT License - see LICENSE for details
Support
- GitHub Issues: Report bugs or request features
- Documentation: Check the
docsdirectory in the repository for detailed documentation
Roadmap
- [ ] Enhanced documentation health metrics
- [ ] Automated documentation testing in CI/CD
- [ ] Custom documentation templates
- [ ] Documentation quality scoring system
- [ ] Integration with popular documentation platforms
- [ ] Real-time collaboration features
- [ ] Documentation impact analysis
- [ ] AI-powered documentation suggestions
