
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@gouvfr-lasuite/integration
Advanced tools
The `@gouvfr-lasuite/integration` npm package helps services of [La Suite numérique](https://lasuite.numerique.gouv.fr/) with already-made React and HTML templates of common _La Suite_ UIs.
The @gouvfr-lasuite/integration
npm package helps services of La Suite numérique with already-made React and HTML templates of common La Suite UIs.
For now, it helps developers integrate:
npm install @gouvfr-lasuite/integration
If you use React, you can directly consume the exposed React components.
If you use anything else, you can copy and paste content from the HTML templates in the dist/html
folder.
CSS is also available. Depending on whether or not you use the DSFR, you can use different CSS files from dist/css
.
Precise documentation on usage is available on integration.lasuite.numerique.gouv.fr.
This folder is meant to generate the @gouvfr-lasuite/integration
npm package.
It's a vite app.
To start, npm install
a first time and copy the example env file: cp .env.example .env
. Make sure the API env var targets a running API. If you don't want to use the production one, you can run one locally easily: the API is exposed via the /website
server, go check the README there.
Then, run the local dev server with npm run dev
.
The main dev file is src/dev/dev.tsx
where a small testing React router is used to render the different React components while developing.
Run npm run build
to build all the dist/
files which are: React components, CSS files and HTML templates.
Internally, building all of this is a bit different than your usual vite app. We actually use 3 vite configs, and running npm run build
runs them all:
The default build generates the React components in es6 and commonjs files with the vite "lib" mode. Everything in src/index.ts
is exposed in the generated file.
The css-config
build generates the CSS files. They all go through purgecss. The list of CSS files to generate is in the css vite config.
CSS is rendered like that, and not through the main vite config, because CSS rendering in lib mode doesn't allow us to easily generate multiple CSS files while using the postcss-config.
The html-config
generates the HTML files.
HTML files are not written by hand: they are generated from the React components. The html vite config checks the src/html.tsx
file and renders HTML files for every template listed.
npm version
with either major
, minor
or patch
to bump the version. There is no precise versioning strategy for now, but following semver is a good idea. So: breaking changes should be major
updates, new features should be minor
updates and bug fixes should be patch
updates.CHANGELOG.md
file to describe the changes..env
file uses production values.npm pack
to generate a new tarball locally. It's an easy to verify manually that the package is good before publishing it.npm publish
to publish the package on npm.integration-vX.X.X
.FAQs
The `@gouvfr-lasuite/integration` npm package helps services of [La Suite numérique](https://lasuite.numerique.gouv.fr/) with already-made React and HTML templates of common _La Suite_ UIs.
The npm package @gouvfr-lasuite/integration receives a total of 2,640 weekly downloads. As such, @gouvfr-lasuite/integration popularity was classified as popular.
We found that @gouvfr-lasuite/integration 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.