npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tricoteuses/tisseuse

v0.13.3

Published

Find links in/to French legislative documents

Readme

Tricoteuses Tisseuse

Find links in/to French legislative documents

Tricoteuses Tisseuse is free and open source software.

Tricoteuses Tisseuse started from a full rewrite of Metslesliens by Seb35, published under the "DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE" (WTFPL) version 2.

Installation

Create database

Using Debian GNU/Linux, install PostgreSQL, then:

sudo su - postgres
createuser tisseuse -P # and enter the password
createdb -O tisseuse tisseuse
psql tisseuse
  CREATE EXTENSION IF NOT EXISTS pg_trgm;
\q
exit

Install dependencies

npm install

Server Configuration

Create a .env file to set configuration variables (you can use example.env as a template). Then:

npm run configure

Legal reference resolver

Tisseuse resolves legal references through a LegiResolver. The default resolver is canutes, which uses the configured Canutes database and a generated text_titles_infos.json file.

There are two supported resolver paths for tests and scripts:

  • f_legi: uses the flat f_legi database and does not need a generated text_titles_infos.json file.
  • canutes: uses the Canutes database and requires generating src/lib/text_parsers/text_titles_infos.json before running tests that parse or resolve French text titles.

Use f_legi explicitly when you want to run against the flat f_legi database:

TISSEUSE_LEGI_RESOLVER=f_legi npm test
npx tsx src/scripts/parse_assemblee_bill_raw.ts bill.html.raw --resolver f_legi

For the default Canutes resolver, generate the text title index first, then run the tests:

npx tsx src/scripts/extract_texts_titles_infos.ts
npm test

This creates src/lib/text_parsers/text_titles_infos.json. It is generated from the Canutes database, is listed in .gitignore, and must never be committed.

If you need to keep the generated file outside the working tree, pass it through TISSEUSE_TEXT_TITLES_INFOS_PATH or script options instead:

TISSEUSE_TEXT_TITLES_INFOS_PATH=/path/to/text_titles_infos.json npm test
npx tsx src/scripts/parse_akoma_ntoso_bill_raw.ts bill.akn.xml.raw --text-titles-infos /path/to/text_titles_infos.json

If no path is supplied, the Canutes resolver first tries src/lib/text_parsers/text_titles_infos.json from the current working tree, then the same generated file in the local tisseuse package source tree. That file is generated data and is not loaded through Vitest global setup; tests that need it preload it explicitly through the selected resolver.