Back to directory
docusign avatar

1fe

A centralized platform that standardizes the development, deployment, and execution of frontend experiences within a unified app shell and shared infrastructure.. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/docusign/1fe.git

30

Stars

2

Forks

9

Watchers

MIT

License

1fe (One Frontend) ๐Ÿš€

A micro-frontend platform that allows teams to focus on creating experiences for the front end utilizing shared utilities and governance controls provided by a single platform team. 1fe achieves this by standardizing the development, deployment and execution of frontend experiences.

Visit our documentation site for comprehensive guides and API references.

๐Ÿ“‹ Prerequisites

  • Node.js >= 22 (required)
  • Yarn (package manager)
  • Git with SSH access to submodules

๐Ÿš€ Quick Start

1. Clone and Setup

# Clone the repository
git clone https://github.com/docusign/1fe.git
cd 1fe

# Install dependencies
yarn install

# Build all packages
yarn build

๐Ÿ“ฆ Project Structure

This monorepo contains the core packages that power the 1fe ecosystem:

Core Packages

  • @1fe/server - Express server that serves as the backbone of a 1fe instance, handling dynamic configuration and widget loading
  • @1fe/shell - Application shell providing common UI components, layout, and platform utilities (the "sandbox") to widgets
  • @1fe/cli - Command-line tools for building, developing, and validating widgets with standardized configurations
  • @1fe/create-1fe-app - Scaffolding tool for quickly creating new 1fe instances

Configuration Packages

  • @1fe/eslint-config - Shared ESLint configuration enforced across all widgets
  • @1fe/typescript-config - Shared TypeScript configurations for consistent builds

๐Ÿ› ๏ธ Development Commands

Building

# Build all packages
yarn build

# Build packages in watch mode
yarn dev

# Clean all build artifacts
yarn clean

Testing

# Run unit tests across all packages
yarn test

# Run E2E tests (Playwright)
yarn test:playwright

# Type checking
yarn typecheck

๐Ÿ“– Development Workflow

Working with Submodules

This project uses Git submodules. Make sure they're initialized:

git submodule update --init --recursive

Package Development

Each package in this monorepo can be developed independently:

# Work on a specific package
cd packages/1fe-server
yarn dev

# Test a specific package
cd packages/1fe-cli
yarn test

๐Ÿค Contributing

We welcome contributions!

Pull Request Process

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Quality Requirements

  • All PRs trigger automated CI/CD pipeline
  • Tests must pass: Build โœ… Lint โœ… Unit Tests โœ… E2E Tests โœ…
  • Code review required before merging
  • Publishing happens automatically on merge to main

๐Ÿ’ฌ Community & Support

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Ready to get started? Check out our Installation Guide or explore the demo site to see 1fe in action!

Issues and Discussions

If you have questions or want to discuss this project, please visit the Issues or Discussions pages in our monorepo.