
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@foundrykit/cli
Advanced tools
The official CLI for FoundryKit - a modern component library for Next.js applications with Tailwind CSS v4 support.
The official CLI for FoundryKit - a modern component library for Next.js applications with Tailwind CSS v4 support.
# Using pnpm (recommended)
pnpm add -g @foundrykit/cli
# Using npm
npm install -g @foundrykit/cli
# Using yarn
yarn global add @foundrykit/cli
You can also use the CLI without installing it globally:
npx @foundrykit/cli [command]
Initialize FoundryKit in your Next.js project:
foundrykit init
This will:
init
Initialize FoundryKit in your Next.js project.
foundrykit init [options]
Options:
-f, --force
- Overwrite existing files--skip-install
- Skip installing dependencies--skip-prompts
- Use default paths without prompting for customizationWhat it does:
lib/utils.ts
or custom path)Path Customization: The init command now intelligently detects your project structure and offers to customize paths:
src/
directorycomponents/
, lib/
, styles/
directoriesExample prompts:
📂 Configure installation paths:
Press enter to use the default value shown in parentheses
? Utils file path: (./src/lib/utils.ts)
? Components directory: (./src/components/components)
? Primitives directory: (./src/components/primitives)
? Blocks directory: (./src/components/blocks)
? Hooks directory: (./src/hooks)
? Animations directory: (./src/components/animations)
? Global styles file: (./src/app/globals.css)
? Lib directory: (./src/lib)
list
List all available FoundryKit components and blocks from the live registry.
foundrykit list [options]
Options:
-c, --category <category>
- Filter by category (primitives, components, blocks)-s, --search <term>
- Search components by name or descriptionExamples:
# List all components
foundrykit list
# List only blocks
foundrykit list -c blocks
# Search for button components
foundrykit list -s button
# Components are fetched from https://foundry.umiflow.com/registry
add
Add a component or block to your project. Components are fetched from the live registry at foundry.umiflow.com.
foundrykit add <component-id> [options]
Options:
-o, --overwrite
- Overwrite existing files-p, --path <path>
- Custom installation pathExamples:
# Interactive mode - select from a list of all components
foundrykit add
# Add a specific component from the registry
foundrykit add hero-minimal
# Add a button component to a custom path
foundrykit add button -p components/custom
# Overwrite existing component
foundrykit add card -o
update
Update an existing component or block to the latest version.
foundrykit update <component-id>
Example:
foundrykit update hero-minimal
doctor
Check your project's health and configuration.
foundrykit doctor
This command checks:
FoundryKit CLI is built for Tailwind CSS v4, which uses CSS-based configuration instead of JavaScript config files. The CLI will:
Your globals.css
will be updated to include:
@import "@foundrykit/tailwind/globals.css";
This provides:
If you're using FoundryKit in a monorepo with workspace packages (like pnpm workspaces), the CLI will:
After initialization, you'll have these convenient scripts:
{
"scripts": {
"foundrykit": "foundrykit",
"fk": "foundrykit"
}
}
Use them like:
npm run fk list
pnpm fk add hero-minimal
yarn fk doctor
After initialization, your project will have:
your-nextjs-app/
├── app/
│ ├── layout.tsx # Updated with FoundryKit imports
│ └── globals.css # Tailwind CSS v4 with FoundryKit styles
├── components/
│ ├── ui/ # UI components
│ ├── blocks/ # Page blocks
│ └── providers.tsx # Theme provider setup
├── lib/
│ └── utils.ts # Utility functions (cn, etc.)
└── hooks/ # Custom React hooks
If you get command not found: foundrykit
after global installation with pnpm:
Ensure your pnpm global bin directory is in your PATH:
export PATH="$PNPM_HOME:$PATH"
Or use the local installation method:
npx @foundrykit/cli [command]
If you're in a monorepo and the CLI tries to install packages from npm:
pnpm-workspace.yaml
is properly configuredworkspace:*
protocol--skip-install
flag and link packages manually if neededIf you're migrating from Tailwind CSS v3:
tailwind.config.js
or tailwind.config.ts
@import
directivesfoundrykit init --force
to set up v4 configurationContributions are welcome! Please see our Contributing Guide for details.
MIT © FoundryKit
FoundryKit components are served from a live registry hosted at foundry.umiflow.com. The registry automatically updates when new components are released on GitHub.
https://foundry.umiflow.com/registry
- Returns all component metadatahttps://foundry.umiflow.com/registry/[id]
- Returns full component data including fileshttps://foundry.umiflow.com/registry?category=primitives&search=button
- Supports filteringTo use a custom registry, set the environment variable:
export FOUNDRYKIT_REGISTRY_URL=https://your-registry.com
foundrykit list
If the registry is unavailable, the CLI will automatically fall back to a local component cache, ensuring you can always work offline.
FAQs
The official CLI for FoundryKit - a modern component library for Next.js applications with Tailwind CSS v4 support.
We found that @foundrykit/cli 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.