{"id":36945537,"url":"https://github.com/bledxs/soff-monorepo","last_synced_at":"2026-01-16T02:46:17.606Z","repository":{"id":327073064,"uuid":"1107794220","full_name":"bledxs/soff-monorepo","owner":"bledxs","description":"A collection of lightweight, tree-shakeable TypeScript utilities for LATAM business logic - holidays, ID validation, input masking, and currency formatting","archived":false,"fork":false,"pushed_at":"2026-01-12T17:52:33.000Z","size":1075,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-12T22:03:15.892Z","etag":null,"topics":["argentina","brazil","colombia","currency","holidays","javascript","latam","mask","mexico","monorepo","npm-package","tree-shakeable","turborepo","typescript","validation"],"latest_commit_sha":null,"homepage":"https://soff-monorepo-docs.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bledxs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-01T16:09:48.000Z","updated_at":"2026-01-12T17:52:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bledxs/soff-monorepo","commit_stats":null,"previous_names":["bledxs/soff-monorepo"],"tags_count":63,"template":false,"template_full_name":null,"purl":"pkg:github/bledxs/soff-monorepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bledxs%2Fsoff-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bledxs%2Fsoff-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bledxs%2Fsoff-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bledxs%2Fsoff-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bledxs","download_url":"https://codeload.github.com/bledxs/soff-monorepo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bledxs%2Fsoff-monorepo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28384014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T10:34:27.190Z","status":"ssl_error","status_checked_at":"2026-01-13T10:34:26.289Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argentina","brazil","colombia","currency","holidays","javascript","latam","mask","mexico","monorepo","npm-package","tree-shakeable","turborepo","typescript","validation"],"created_at":"2026-01-13T11:19:30.971Z","updated_at":"2026-01-16T02:46:17.600Z","avatar_url":"https://github.com/bledxs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/bledxs/soff-monorepo/master/assets/logo.png\" alt=\"Soff Logo\" width=\"120\" height=\"120\"\u003e\n  \u003ch1\u003eSoff Monorepo\u003c/h1\u003e\n  \u003cp\u003eA collection of lightweight, tree-shakeable TypeScript utilities for common business logic.\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![CI](https://github.com/bledxs/soff-monorepo/actions/workflows/ci.yml/badge.svg)](https://github.com/bledxs/soff-monorepo/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/bledxs/soff-monorepo/branch/master/graph/badge.svg)](https://codecov.io/gh/bledxs/soff-monorepo)\n[![License](https://img.shields.io/github/license/bledxs/soff-monorepo)](LICENSE)\n[![All Contributors](https://img.shields.io/github/all-contributors/bledxs/soff-monorepo?color=ee8449\u0026style=flat-square)](#contributors)\n\n\u003c/div\u003e\n\n---\n\n**Zero dependencies** · **TypeScript** · **Tree-shakeable** · **SSR Ready**\n\n## Packages\n\n| Package                             | Version                                                                                     | Size (gzip)                   | Description                                             |\n| ----------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------------------------------- |\n| [soff-cron](./packages/soff-cron)   | [![npm](https://img.shields.io/npm/v/soff-cron)](https://www.npmjs.com/package/soff-cron)   | ~2KB (Core) / ~3KB (i18n)     | Cron expression parser and human-readable formatter     |\n| [soff-date](./packages/soff-date)   | [![npm](https://img.shields.io/npm/v/soff-date)](https://www.npmjs.com/package/soff-date)   | ~2KB (Core) / ~4KB (Loc)      | Holiday calculator with algorithmic date computation    |\n| [soff-geo](./packages/soff-geo)     | [![npm](https://img.shields.io/npm/v/soff-geo)](https://www.npmjs.com/package/soff-geo)     | ~1KB (Core) / ~45-100KB (Loc) | Geographic data for LATAM (Departments, Municipalities) |\n| [soff-id](./packages/soff-id)       | [![npm](https://img.shields.io/npm/v/soff-id)](https://www.npmjs.com/package/soff-id)       | ~0.5KB (Core) / ~1KB (Loc)    | ID document validation for LATAM countries              |\n| [soff-mask](./packages/soff-mask)   | [![npm](https://img.shields.io/npm/v/soff-mask)](https://www.npmjs.com/package/soff-mask)   | ~3KB (Core)                   | Input masking utilities                                 |\n| [soff-money](./packages/soff-money) | [![npm](https://img.shields.io/npm/v/soff-money)](https://www.npmjs.com/package/soff-money) | ~9KB (Core)                   | Currency formatting and manipulation                    |\n| [soff-phone](./packages/soff-phone) | [![npm](https://img.shields.io/npm/v/soff-phone)](https://www.npmjs.com/package/soff-phone) | ~0.5KB (Core) / ~1KB (Loc)    | Phone number validation and formatting                  |\n\n## ✨ Features\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd width=\"33%\"\u003e\n\n### 🚀 Lightweight\n\nEach package is optimized for minimal bundle size. Most packages are under 5KB gzipped.\n\n\u003c/td\u003e\n\u003ctd width=\"33%\"\u003e\n\n### 🌳 Tree-shakeable\n\nImport only what you need. Every function and locale is independently importable.\n\n\u003c/td\u003e\n\u003ctd width=\"33%\"\u003e\n\n### 📦 Zero Dependencies\n\nPure TypeScript with no external runtime dependencies.\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"33%\"\u003e\n\n### 🔷 TypeScript First\n\nFull type safety out of the box with exported types and interfaces.\n\n\u003c/td\u003e\n\u003ctd width=\"33%\"\u003e\n\n### 🌐 Universal\n\nWorks in Node.js, browsers, and edge runtimes (Cloudflare, Vercel, etc.).\n\n\u003c/td\u003e\n\u003ctd width=\"33%\"\u003e\n\n### 🌎 LATAM Focus\n\nBuilt specifically for Latin American business requirements and regulations.\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## 🚀 Quick Start\n\n```bash\n# Install individual packages\nnpm install soff-cron soff-date soff-geo soff-id soff-mask soff-money soff-phone\n\n# Or with pnpm\npnpm add soff-cron soff-date soff-geo soff-id soff-mask soff-money soff-phone\n\n# Or with yarn\nyarn add soff-cron soff-date soff-geo soff-id soff-mask soff-money soff-phone\n```\n\n### 📚 Usage Examples\n\n### soff-cron\n\n```typescript\nimport { formatCron, validateCron, parseCron } from 'soff-cron';\n\n// Format cron to human-readable text\nformatCron('0 9 * * 1-5', { locale: 'en' }); // → 'At 09:00, Monday through Friday'\nformatCron('*/15 * * * *', { locale: 'es' }); // → 'Cada 15 minutos'\n\n// Validate cron expression\nvalidateCron('0 0 * * *'); // → { isValid: true }\n\n// Parse cron to structured data\nparseCron('0 9-17 * * 1-5'); // → { minute: {...}, hour: {...}, ... }\n```\n\n### soff-date\n\n```typescript\nimport { getHolidays, isHoliday } from 'soff-date/locales/co';\n\n// Get all Colombian holidays for 2025\ngetHolidays(2025);\n\n// Check if a date is a holiday\nisHoliday(new Date('2025-01-01')); // → { key: 'newYear', ... }\n```\n\n### soff-geo\n\n```typescript\nimport { searchMunicipality } from 'soff-geo/locales/co';\n\n// Search for a municipality\nsearchMunicipality('Medellin'); // → [{ name: 'Medellín', code: '05001', ... }]\n```\n\n### soff-id\n\n```typescript\nimport { validateCC } from 'soff-id/locales/co';\n\n// Validate Colombian ID\nvalidateCC('1234567890'); // → { isValid: true, ... }\n```\n\n### soff-mask\n\n```typescript\nimport { mask } from 'soff-mask';\nimport { phoneCO } from 'soff-mask';\n\n// Apply phone mask\nmask('3001234567', phoneCO); // → '(300) 123 4567'\n```\n\n### soff-money\n\n```typescript\nimport { Money, COP } from 'soff-money';\n\n// Create and format money\nconst price = Money.fromDecimal(1500000, COP);\nprice.format(); // → '$1.500.000'\n```\n\n### soff-phone\n\n```typescript\nimport { validate } from 'soff-phone/co';\n\n// Validate phone\nvalidate('3001234567'); // → { isValid: true, type: 'mobile', ... }\n```\n\n## Development\n\nThis monorepo uses [Turborepo](https://turbo.build/) and [npm workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces).\n\n```bash\n# Install dependencies\nnpm install\n\n# Build all packages\nnpm run build\n\n# Run tests\nnpm run test\n\n# Run tests with coverage\nnpm run test:coverage\n\n# Type check\nnpm run type-check\n\n# Lint\nnpm run lint\n```\n\n## Repository Structure\n\n```\nsoff-monorepo/\n├── apps/\n│   └── docs/          # Documentation website (Next.js)\n├── packages/\n│   ├── soff-date/     # Holiday calculator\n│   ├── soff-geo/      # Geographic data\n│   ├── soff-id/       # ID validation\n│   ├── soff-mask/     # Input masking\n│   ├── soff-money/    # Currency utilities\n│   ├── soff-phone/    # Phone validation\n│   └── tsconfig/      # Shared TypeScript configs\n├── .github/\n│   └── workflows/     # CI/CD pipelines\n└── turbo.json         # Turborepo configuration\n```\n\n## Contributing\n\nContributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'feat: add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## Versioning\n\nThis project uses [Changesets](https://github.com/changesets/changesets) for versioning. Each package is versioned independently.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://all-contributors.js.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/bledxs\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/90062924?v=4\" width=\"100px;\" alt=\"Luis C. Rojas\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eLuis C. Rojas\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/bledxs/soff-monorepo/commits?author=bledxs\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/bledxs/soff-monorepo/commits?author=bledxs\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#maintenance-bledxs\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"#infra-bledxs\" title=\"Infrastructure\"\u003e🚇\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n---\n\nMade with ❤️ for the LATAM developer community\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbledxs%2Fsoff-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbledxs%2Fsoff-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbledxs%2Fsoff-monorepo/lists"}