Application shell providing common UI components, layout, and platform utilities for 1fe widgets.
Follow our documentation here to learn more about 1fe and how the shell works.
npm install @1fe/shell
# or
yarn add @1fe/shell
The @1fe/shell
package provides the application shell that serves as the foundation for 1fe widgets. It includes:
- Platform utilities accessible to widgets via the sandbox
- Common UI components for consistent user experiences
- Layout management and routing capabilities
- Performance monitoring and telemetry
- Storage utilities for persistent data
import renderOneFEShell from '@1fe/shell';
// Render the 1fe shell
const shellContainer = document.getElementById('shell-root');
renderOneFEShell(shellContainer, {
// Shell configuration options
});
import { platformProps } from '@1fe/shell';
// Access platform utilities in your widget
export default function MyWidget() {
useEffect(() => {
// Track app load time
platformProps.utils.appLoadTime.end();
// Use event bus for communication
platformProps.eventBus.emit('widget-loaded', { widgetId: 'my-widget' });
}, []);
return <div>My Widget Content</div>;
}
- @1fe/server - Express server for 1fe instances
- @1fe/cli - CLI tools for widget development
If you have questions or want to discuss this project, please visit the Issues or Discussions pages in our monorepo.
MIT © Docusign Inc.