
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@apideck/wayfinder
Advanced tools
WayFinder is a TypeScript-based application that helps you navigate through your JSON data. It provides a user-friendly interface for navigating / querying your JSON data and building JSONPath expressions.
WayFinder is a TypeScript-based application that helps you navigate through your JSON data. It provides a user-friendly interface for navigating / querying your JSON data and building JSONPath expressions.
You can also manually adjust or add a filter expression directly in the JSONPath.
yarn add @apideck/wayfinder
// tailwind.config.js
module.exports = {
content: [
// ...
'./node_modules/@apideck/wayfinder/**/*.js'
]
// ...
}
import { Button, useModal } from '@apideck/components'
import { WayFinder } from '@apideck/wayfinder'
const exampleResponse = JSON.stringify(
{
id: 'file',
value: 'File',
popup: {
menuitem: [
{ id: 1, name: 'New' },
{ id: 2, name: 'Open' },
{ id: 3, name: 'Close' }
]
}
},
null,
2
)
const modalOptions = {
className: '!max-w-5xl !p-0',
onClose: () => console.log('Closing modal..')
}
const MyComponent = () => {
const { addModal, removeModal } = useModal()
return (
<Button
text="Open WayFinder"
onClick={() => {
addModal(
<WayFinder
onSelect={(jsonPath) => {
console.log(jsonPath)
removeModal()
}}
onClose={removeModal}
defaultInput={exampleResponse}
/>,
modalOptions
)
}}
/>
)
}
export default MyComponent
To run the WayFinder application locally, you need to have Node.js and Yarn installed on your machine. Once you have these prerequisites, follow the steps below:
Clone the repository to your local machine.
Navigate to the project directory and install the dependencies by running:
yarn install
This project includes Storybook for developing and testing UI components in isolation. To run Storybook, use the following command:
yarn storybook
This will start Storybook on a local server, typically http://localhost:6006
and open a browser window with the Storybook UI. You can then navigate to the component you want to test and interact with it in isolation.
To build the project for production, use the following command:
yarn build
This will create a dist
folder in the project root directory with the compiled assets ready for deployment.
The project uses ESLint for linting. To run the linter, use the following command:
yarn lint
This will run ESLint on the project and report any linting errors.
Remember to always follow the best practices and guidelines provided in the codebase when contributing to the project.
FAQs
WayFinder is a TypeScript-based application that helps you navigate through your JSON data. It provides a user-friendly interface for navigating / querying your JSON data and building JSONPath expressions.
We found that @apideck/wayfinder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.