Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@1fe/server

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1fe/server

Server-side runtime and utilities for 1FE applications

latest
Source
npmnpm
Version
0.1.6
Version published
Maintainers
2
Created
Source

1FE Logo

@1fe/server

npm version npm downloads CI Status Coverage Status Bundle Size License: MIT TypeScript Join the community

Express server that serves as the backbone of a 1fe instance, handling dynamic configuration, widget loading, and platform services.

Follow our documentation here to get started with your own 1fe instance.

Installation

npm install @1fe/server
# or
yarn add @1fe/server

What is @1fe/server?

The @1fe/server package provides a complete Express.js server implementation for hosting 1fe applications. It includes:

  • Dynamic configuration management with live updates
  • Widget loading and version coordination
  • CSP (Content Security Policy) management
  • Health monitoring

Quick Start

Basic Server Setup

import oneFEServer from '@1fe/server';

const app = oneFEServer({
  port: 3000,
  configManagement: {
    widgetVersions: {
      url: 'https://your-cdn.com/configs/widget-versions.json',
    },
    libraryVersions: {
      url: 'https://your-cdn.com/configs/lib-versions.json',
    },
    dynamicConfigs: {
      url: 'https://your-cdn.com/configs/live.json',
    },
    refreshMs: 30000,
  },
  cspConfigs: {
    'script-src': ["'self'", 'https://your-cdn.com'],
    'style-src': ["'self'", "'unsafe-inline'"],
  },
});

app.listen(3000, () => {
  console.log('1fe server running on port 3000');
});

To learn more, follow the reference guide here

  • @1fe/shell - Application shell and platform utilities
  • @1fe/cli - CLI tools for widget development

Community

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

License

MIT © Docusign Inc.

Keywords

1fe

FAQs

Package last updated on 28 Oct 2025

Did you know?

Socket

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.

Install

Related posts