Monorepo for @parallel-web npm packages.
@parallel-web/ai-sdk-tools- AI SDK tools for Parallel Web@parallel-web/opencode-plugin- Opencode plugin for Parallel Web
This is a pnpm monorepo. Make sure you have pnpm installed:
npm install -g pnpmInstall dependencies:
pnpm install# Build all packages
pnpm build
# Run tests
pnpm test
# Run tests in CI mode (no watch)
pnpm test:ci
# Lint
pnpm lint
# Fix linting issues
pnpm lint:fix
# Format code
pnpm format
# Check formatting
pnpm format:check
# Type check
pnpm typecheck
# Clean build artifacts
pnpm cleanTo run a command in a specific package:
pnpm --filter @parallel-web/ai-sdk-tools build
pnpm --filter @parallel-web/ai-sdk-tools test- Create a new directory in
packages/ - Add a
package.jsonwith the package name@parallel-web/package-name - Set up TypeScript config extending from root
- Add build configuration (tsup)
- Implement your package
Packages are published to npm using automated GitHub Actions workflows.
Every push to main can be published to a canary release with version format x.y.z-canary.{shortSHA}.
- Published with the
canarynpm dist-tag - Does not modify
package.jsonin git - Includes full CI validation before publishing
Install canary version:
npm install @parallel-web/ai-sdk-tools@canaryStable releases are triggered manually via GitHub Actions:
- Go to Actions → Publish Stable Release → Run workflow
- Select version bump type:
patch: Bug fixes (1.2.3 → 1.2.4)minor: New features (1.2.3 → 1.3.0)major: Breaking changes (1.2.3 → 2.0.0)
- Workflow will:
- Run full test suite
- Bump version in
package.json - Generate changelog from conventional commits
- Create git tag and commit
- Publish to npm with
latesttag - Create GitHub release
Install stable version:
npm install @parallel-web/ai-sdk-toolsIf the CI publish workflow fails partway through (e.g., the git tag was pushed but npm publish failed), the workflow isn't idempotent and can't simply be re-run. Use these steps to finish the publish locally.
1. Authenticate with npm:
# Either log in interactively:
npm login
# verify with
npm whoami4. Publish:
cd packages/<package-name>
# Dry-run first to verify tarball contents
npm publish --dry-run --tag latest --access public
# Publish for real
npm publish --tag latest --access publicFor proper changelog generation, follow conventional commit format:
feat: add new feature→ triggers minor version bumpfix: resolve bug→ triggers patch version bumpfeat!: breaking changeorBREAKING CHANGE:→ triggers major version bump
Required GitHub repository secret:
- Name:
NPM_PARALLEL_DEVELOPERS_PASSWORD - Value: npm automation token from
developers@parallel.aiaccount - How to create:
- Log into npmjs.com with
developers@parallel.ai - Go to Account Settings → Access Tokens
- Generate New Token → Select Automation type
- Copy token and add to GitHub repository secrets
- Log into npmjs.com with
MIT