
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@1fe/starter-app
Advanced tools
A production-ready template for creating your own 1fe instance. This application serves as both the reference implementation powering [demo.1fe.com](https://demo.1fe.com) and as the git template used by `create-1fe-app`.
A production-ready template for creating your own 1fe instance. This application serves as both the reference implementation powering demo.1fe.com and as the git template used by create-1fe-app.
This starter app demonstrates how to build a complete 1fe instance using @1fe/server and @1fe/shell. It includes:
>= 22npx @1fe/create-1fe-app my-1fe-app
cd my-1fe-app
yarn install
yarn dev
src/
├── configs/
│ ├── ecosystem-configs.ts # Live configurations
│ ├── critical-libs.ts # Critical library URLs
│ └── env.ts # Environment configuration
├── csp-configs.ts # Content Security Policy settings
├── server.ts # Express server setup
├── shell/ # Shell components and utilities
└── public/ # Static assets
Create a .env file based on .env.example:
| Variable | Description | Default |
|---|---|---|
PORT | Server port | 3001 |
NODE_ENV | Environment mode | development |
SERVER_BUILD_NUMBER | Build identifier | local |
Update src/configs/ecosystem-configs.ts to point to your CDN:
export const configManagement: OneFEConfigManagement = {
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: 30 * 1000,
};
Modify src/csp-configs.ts to allow your CDN domains:
export const cspConfigs = {
'script-src': [
"'self'",
"'unsafe-inline'",
'https://your-cdn.com',
// ... other sources
],
// ... other CSP directives
};
# Start development server (client + server)
yarn dev
# Build for production
yarn build
# Start production server
yarn start
# Run tests
yarn test
# Type checking
yarn typecheck
# Linting
yarn lint
This starter app can be deployed to any platform that supports Node.js applications:
yarn global add vercel
vercel --prod
yarn global add @railway/cli
railway deploy
Follow the respective platform documentation for Node.js applications. The built application is a standard Express.js server.
// In your live.json
{
"widgets": {
"basePrefix": "https://your-cdn.com/widgets/",
"configs": [
{
"widgetId": "@your-org/your-widget",
"plugin": {
"enabled": true,
"route": "/your-widget"
}
}
]
}
}
src/shell/components/ for custom layout componentssrc/public/src/shell/utils/CSP Errors: Make sure your CDN domains are added to csp-configs.ts
Widget Loading Failures: Verify your live configurations are accessible and valid
Build Errors: Ensure all dependencies are installed and Node.js version is >= 22
This project is licensed under the MIT License - see the LICENSE file for details.
Ready to build your 1fe instance? Check out our comprehensive documentation or explore the live demo!
FAQs
A production-ready template for creating your own 1fe instance. This application serves as both the reference implementation powering [demo.1fe.com](https://demo.1fe.com) and as the git template used by `create-1fe-app`.
We found that @1fe/starter-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.