
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
do_graphs
Advanced tools
Do Graph is an open source package used to build/create/design dynamic graphs for your react project.
Do Graph is an open source package used to build/create/design dynamic graphs for your react project.
npm i do_graphs --save
CustomDashboard:
a. routeBackendUrl: (mandatory) backend url of list of dynamically created route pages.
b. isMenuLayoutPresent: (mandatory) true if your app has side menu bar.
c. headers: (optional) API headers.
LayoutPages:
a. routeBackendUrl: (mandatory) backend url of list of dynamically created route pages.
b. menuBackendUrl: (mandatory) backend url of list of dynamically created menu.
c. frontendUrl: (mandatory) frontend url of your application.
d. headers: (optional) API headers.
Use Layouts component in your App.js file to add dynamically ceated pages in your app. Example:
import { RouteContext, getRoutLists, getMenuList, Layouts, CustomDashboard, LayoutPages } from 'do_graphs';
const App = () => {
const [routePages, setRoutePages] = useState([])
const [menu, setMenu] = useState([])
const getRoutes = async () => {
const result: any = await getRoutLists(backendUrl, config) // return the list of pages from backend
setRoutePages(result)
}
const getMenus = async () => {
const result: any = await getMenuList(backendUrl, config) // return the list of menu from backend
if (result?.length > 0) {
setMenu(result)
} else {
setMenu([])
}
}
useMemo(() => {
getRoutes()
getMenus()
}, [])
return (
<RouteContext.Provider value={{ routePages, setRoutePages, menu, setMenu }}>
<Route path={'/custom_layout'} element={<CustomDashboard routeBackendUrl={routeBackendUrl} isMenuLayoutPresent={isMenuLayoutPresent} headers={headers} />} />
<Route path={'/layout/:id'} element={<LayoutPages routeBackendUrl={CustomRouteUrl} menuBackendUrl={CustomMenuUrl} frontendUrl={Frontend} headers={headers} />} />
{routePages?.length > 0 && routePages?.map((it: any, n: number) => (
<React.Fragment key={n}>
<Route path={it.path} element={(<Layouts title={it?.title} html={it?.element} menuId={it?.menu_id} />)} />
</React.Fragment>
))}
</RouteContext>
)
}
export default App;
FAQs
Do Graph is an open source package used to build/create/design dynamic graphs for your react project.
The npm package do_graphs receives a total of 4 weekly downloads. As such, do_graphs popularity was classified as not popular.
We found that do_graphs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.