
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
GOV-GUI is a comprehensive web component library designed to enhance the user experience across the 1Gov/1Citizen Portal of Botswana. This library standardizes the graphical user interface across various government services, ensuring a consistent, accessible, and high-quality user experience that reflects the Botswana Government brand.
Built with Stencil.js, these web components work seamlessly across all modern JavaScript frameworks (Angular, React, Vue, Ember) and vanilla JavaScript projects.
GOV-GUI aims to solve the interface fragmentation issue in the 1Gov/1Citizen Portal by providing a unified component library. As the portal is built using a microservice architecture with contributions from various 100% citizen-owned companies, GOV-GUI ensures consistent UI/UX across all services while maintaining web accessibility standards and brand identity.
npm install gov-gui
Import and register the components in your main JavaScript file:
// For JavaScript projects
import { defineCustomElements } from 'gov-gui/loader';
defineCustomElements(window);
After registration, you can use any component in your HTML:
<gov-button label="Click Me"></gov-button>
import React from 'react';
import { defineCustomElements } from 'gov-gui/loader';
// Register components once at the application root
defineCustomElements(window);
function App() {
return (
<div>
<gov-button label="Click Me"></gov-button>
</div>
);
}
import React from 'react';
import { JSX as GovGuiJSX } from 'gov-gui';
declare module 'react' {
namespace JSX {
interface IntrinsicElements extends GovGuiJSX.IntrinsicElements {}
}
}
function App() {
return (
<div>
<gov-button label="Click Me"></gov-button>
</div>
);
}
In main.ts:
import { defineCustomElements } from 'gov-gui/loader';
defineCustomElements(window);
In app.module.ts:
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
@NgModule({
// other configurations
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppModule {}
In main.js:
import { defineCustomElements } from 'gov-gui/loader';
defineCustomElements(window);
In app/index.html:
<script src="node_modules/gov-gui/dist/gov-gui/gov-gui.esm.js"></script>
Or in your application code:
import { defineCustomElements } from 'gov-gui/loader';
defineCustomElements(window);
GOV-GUI offers a rich set of components designed for government service interfaces:
gov-layout, gov-container, gov-row, gov-box,gov-topbar, gov-sidebar,gov-menubar, gov-breadcrumb, gov-tabs,gov-form, gov-input, gov-checkbox, gov-radiobutton, gov-dropdown, gov-combo-box, gov-date-time-picker, gov-alert, gov-modal, gov-toaster, gov-tooltip, gov-popups,gov-table, gov-pagination, gov-chart, gov-badge, gov-avatar, gov-button, gov-accordion, gov-stepper, gov-slider, gov-switcher, gov-chip, gov-choice-chips, gov-segmented-chips, gov-icon, gov-upload, gov-calenderFor TypeScript projects, especially those using React with TSX files, GOV-GUI provides full type definitions. To use components in TSX files without TypeScript errors:
import { JSX as GovGuiJSX } from 'gov-gui';
declare module 'react' {
namespace JSX {
interface IntrinsicElements extends GovGuiJSX.IntrinsicElements {}
}
}
To contribute to GOV-GUI:
git clone [repository-url]
cd gov-gui
npm install
npm start
To build for production:
npm run build
To run tests:
npm test
[License information]
The 1Gov/1Citizen Portal is a key initiative by the Government of Botswana to digitize government services. Built on a microservice architecture, it improves accessibility, efficiency, and transparency in public service delivery through digital transformation.
FAQs
Gov UI Component Library Demo ready Build
The npm package gov-gui receives a total of 21 weekly downloads. As such, gov-gui popularity was classified as not popular.
We found that gov-gui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.