This plugin allows you to synchronize your notes from Granola (https://granola.ai) directly into your Obsidian vault. It fetches documents from Granola, converts them from ProseMirror JSON format to Markdown, and saves them as .md
files.
- Sync Granola notes to your Obsidian vault
- Support for syncing to daily notes
- Periodic automatic syncing
- Customizable sync settings
- Download the latest release from the releases page
- Extract the zip file into your Obsidian plugins folder
- Enable the plugin in Obsidian settings
- Set the path to your Granola token file in the plugin settings
- Configure whether to sync to daily notes or a specific folder
- Set up periodic sync if desired
- Node.js 18 or later
- npm
- Clone the repository
- Install dependencies:
npm install
To build the plugin:
npm run build
The plugin uses Jest for testing. To run the tests:
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage
The plugin uses a combination of unit and integration tests:
-
Unit Tests:
- Test individual service classes in isolation
- Mock external dependencies
- Focus on business logic
-
Integration Tests:
- Test interactions between components
- Test file system operations
- Test API integration
- Create a new test file in the appropriate test directory
- Follow the existing test patterns
- Use Jest's mocking capabilities for external dependencies
- Run tests to ensure they pass
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
MIT