
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@githubnext/blocks
Advanced tools
Welcome! This package supports local development of custom GitHub Blocks.
Welcome! This package supports local development of custom GitHub Blocks.
Using the blocks
command, you can run the following commands:
start
- Starts a local development environment and builds Blocks bundles.build
- Builds Blocks bundles.To reduce the cognitive load associated with writing file and folder block components, we've assembled a helper library that exposes interface definitions and a few helper functions.
yarn add @githubnext/blocks
import {
FileBlockProps,
FolderBlockProps,
getLanguageFromFilename,
getNestedFileTree,
} from '@githubnext/blocks`
import { FileBlockProps } from '@githubnext/blocks';
export default function (props: FileBlockProps) {
const { content, metadata, onUpdateMetadata } = props;
...
}
import { FolderBlockProps } from '@githubnext/blocks';
export default function (props: FileBlockProps) {
const { tree, metadata, onUpdateMetadata, BlockComponent } = props;
...
}
A helper function that returns the "language" of a file, given a valid file path with extension.
A helper function to turn the flat folder tree
array into a nested tree structure
import { FolderBlockProps, getNestedFileTree, } from "@githubnext/blocks";
export default function (props: FolderBlockProps) {
const { tree, onNavigateToPath } = props;
const data = useMemo(() => {
const nestedTree = getNestedFileTree(tree)[0]
return nestedTree
}, [tree])
...
}
FAQs
Welcome! This package supports local development of custom GitHub Blocks.
The npm package @githubnext/blocks receives a total of 3 weekly downloads. As such, @githubnext/blocks popularity was classified as not popular.
We found that @githubnext/blocks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.