mementor-ts v0.1.0
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-ts
Local Project Installation
npm install --save-dev mementor-ts
Development 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 build
Usage
Initialize a Project
mementor init
This 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 watch
Organize Snapshots
# Clean up and organize snapshots into year/month/day structure
mementor cleanup
Compare 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.md
Documentation 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
docs
directory 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
5 months ago