Skip to content

ccamel/bobinerie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

267 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

La Bobinerie

Bobinerie Banner

🧡 La Bobinerie - Haberdashery of Bobine modules: serious primitives, educational gems, and esoteric oddities. Grab, deploy, fork at will.

Open since 2025 Awesome Version

AssemblyScript Commit Convention: DAFT License: MIT

⸟

Build Lint Deploy E2E Tests Codecov

Le Comptoir

Available now:

Contracts

Per-account counter with Ed25519 session authentication.

pedagogical

》open doc

On-chain Forth interpreter contract for Bobine.

vm

》open doc

Threshold-based authorization contract for Bobine call execution.

governance

》open doc

XYK (constant-product) AMM pool for two fungible tokens: add/remove liquidity, swap, fee in bps.

defi

》open doc

A simple name storage contract that remembers who you are.

pedagogical

》open doc

Account-bound on-chain sigil (SVG PFP): mint one per derived address, optional on-chain tag.

creative

》open doc

A minimal fungible token module for Bobine, designed to be a boring, reliable building block for DeFi modules (pools, routers, etc.).

defi

》open doc

Agent Skills

Use when you need to call deployed Bobine modules with typed params or perform a signed Ed25519 call through an auth module.

portable skill

》open doc

Le Manuel de l’Artisan

Project Structure

bobinerie/
β”œβ”€β”€ contracts/               # All the smart contracts
β”‚   └── say-my-name/         # A single contract
β”‚       β”œβ”€β”€ contract.feature # BDD tests (specifications)
β”‚       β”œβ”€β”€ out/             # Compiled outputs (WASM + types)
β”‚       β”œβ”€β”€ README.md        # Contract documentation
β”‚       β”œβ”€β”€ src
β”‚       β”‚   β”œβ”€β”€ mod.ts
β”‚       β”‚   └── mods
β”‚       β”‚       └── mod.ts
β”‚       └── tsconfig.json
β”œβ”€β”€ skills/                  # Public portable agent skills
β”‚   └── bobine-contract-caller
β”‚       β”œβ”€β”€ SKILL.md         # Skill definition with version in frontmatter
β”‚       β”œβ”€β”€ references
β”‚       └── scripts
β”œβ”€β”€ run/                     # Deployment & execution scripts
└── package.json             # Build scripts

Setup

npm install

Configure your Bobine server in .env.local (optional):

SERVER=http://localhost:8080

Quick Start

Compile all contracts:

npm run prepack

Deploy a contract:

CONTRACT=say-my-name npm run contract:produce
# Returns: { address: "3ca2c27f..." }

Other common tasks:

  • Build a single contract: CONTRACT=say-my-name npm run contract:build
  • Produce all contracts: npm run produce
  • Generate docs: npm run docs
  • Run tests: npm run test
  • Run tests with coverage: npm run test:coverage (measures test infrastructure, not WASM contract code)

Execute a contract method:

npm run execute 3ca2c27f... sayMyName text:"Alice"

Avis aux artisans

Got a useful contract, skill, or intriguing experiment? Put it on the shelves.

Publishing a contract

  1. Create your contract in contracts/your-contract-name/
  2. Write comprehensive cucumber BDD tests in contracts/your-contract-name/contract.feature
  3. Add JSDoc documentation to all public API functions
  4. Run npm run docs to refresh the catalog and contract docs
  5. Submit a PR

Publishing a skill

  1. Create your skill in skills/your-skill-name/
  2. Add a portable SKILL.md with semver version in the frontmatter
  3. Add scripts/ and references/ only when they materially help the agent
  4. Validate the skill with skills-ref validate skills/your-skill-name
  5. Run npm run docs to refresh the catalog, then submit a PR

All contributions welcome, from serious primitives to silly meme contracts and tools.

About

🧡 La Bobinerie - Haberdashery of Bobine modules: from useful, serious pieces to educational gems and esoteric oddities. Grab, deploy, fork at will.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors