This repository contains a unified set of TypeScript-based Node.js packages for use across multiple projects. All packages are published to the GitHub Package Registry.
- Package Manager: Bun
- Language: TypeScript (strict mode)
packages/biome-base: Base utilities and shared configurationpackages/core: Core library functionalitypackages/langchainjs-patches: LangChain community patches and extensionspackages/tsconfig-base-bun: Shared TypeScript config for Bun
- Strict TypeScript: All code uses strict settings (see
tsconfig.json) - Explicit Types: No
anytype, always use explicit types - Immutable Patterns: Prefer
readonlyandconstassertions - Error Handling: Use Result/Either patterns or proper error types
- Dependency Injection: Use interfaces for loose coupling
- Single Responsibility: Each module has one reason to change
- Minimum 90% code coverage for new code
- Test all public methods and error conditions
- Mock external dependencies
Use Bun to publish packages:
bun publish- Fork the repo and create a feature branch
- Build a plan before implementing changes (see
.github/copilot-instructions.md) - Add/modify code and cover with unit tests
- Open a pull request with a summary of changes
MIT