coderpulse-widgets
v1.1.0
Published
A collection of open source widgets for use in blogs, websites and other tools
Downloads
454
Maintainers
Readme
CoderPulse Widgets
A collection of open source widgets and components for the CoderPulse ecosystem.
About
CoderPulse Widgets is a collection of high-performance, open-source UI components built by the team at CoderPulse.
Our goal is to provide developers with premium, drop-in widgets that just work. Available as an NPM package for modern apps and via CDN for easy embedding in any site.
Checks out our full suite of developer tools:
- CoderPulse.io - The complete developer toolkit.
- Cron Helper - The inspiration for our Cron Builder widget.
Tech Stack
- Framework: Lit
- Build Tool: Vite
- Language: TypeScript
- Testing: Vitest
Project Structure
src/components/: Core Lit components.src/embed.ts: Entry point for the single-file embed bundle (WordPress/Embed).src/index.ts: Entry point for the NPM package.dist/: Build output.index.js: ESM bundle for NPM.coderpulse-widgets-embed.umd.js: Self-contained bundle for script tags.
Components
Cron Builder
A visual cron expression generator and explainer.
Features:
- Visual editor for Minute, Hour, Day, Month, and Week.
- Real-time human-readable explanation (e.g., "At 04:05").
- Next scheduled specific run times.
- "Copy to Clipboard" functionality.
- Mobile responsive.
Usage
import 'coderpulse-widgets';<script src="https://unpkg.com/coderpulse-widgets/dist/coderpulse-widgets-embed.umd.js"></script>Then use the widget in your HTML:
<cp-cron-builder></cp-cron-builder>Installation
npm install coderpulse-widgetsInclude the following script tag in your <head> or before the closing </body> tag:
<script src="https://cdn.jsdelivr.net/npm/coderpulse-widgets/dist/coderpulse-widgets-embed.umd.js"></script>Development
npm run devBuild
npm run buildTesting
npm run testLinting
npm run lint