
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@excalidraw/excalidraw
Advanced tools
Excalidraw is exported as a component to be directly embedded in your project.
Use npm
or yarn
to install the package.
npm install react react-dom @excalidraw/excalidraw
# or
yarn add react react-dom @excalidraw/excalidraw
Note: If you don't want to wait for the next stable release and try out the unreleased changes, use
@excalidraw/excalidraw@next
.
By default, Excalidraw will try to download all the used fonts from the CDN.
For self-hosting purposes, you'll have to copy the content of the folder node_modules/@excalidraw/excalidraw/dist/prod/fonts
to the path where your assets should be served from (i.e. public/
directory in your project). In that case, you should also set window.EXCALIDRAW_ASSET_PATH
to the very same path, i.e. /
in case it's in the root:
<script>window.EXCALIDRAW_ASSET_PATH = "/";</script>
Excalidraw takes 100% of width
and height
of the containing block so make sure the container in which you render Excalidraw has non zero dimensions.
Go to CodeSandbox example.
Head over to the docs.
Head over to the docs.
Head over to the docs.
FAQs
Excalidraw as a React component
The npm package @excalidraw/excalidraw receives a total of 60,803 weekly downloads. As such, @excalidraw/excalidraw popularity was classified as popular.
We found that @excalidraw/excalidraw demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.