recallnet/js-recall
Acerca de
Monorepo de JS/TS para la red Recall
Sistemas e infraestructuraCrecimiento de estrellas medido
- in 24h
- -1
- in 7 days
- -2
- in 15 days
- -3
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originaljs-recall
JS/TS monorepo for Recall
Table of Contents
- Background
- Project Structure
- Prerequisites
- Installation
- Usage
- Development
- Development with Cursor
- Contributing
- License
Background
This repository contains packages and applications for Recall, written in JavaScript/TypeScript. It's structured as a monorepo using Turborepo and pnpm workspaces for efficient package management and build orchestration.
Project Structure
js-recall/
├── apps/ # Application packages
│ ├── api/ # Multi-chain trading simulator API
│ └── comps/ # Competitions web application
├── packages/ # Shared packages
│ ├── conversions/ # Unit conversion utilities (atto, etc.)
│ ├── db/ # Database schema and repositories
│ ├── eslint-config/ # Shared ESLint configuration
│ ├── fonts/ # Shared font resources
│ ├── load-test/ # Load testing suite (Artillery)
│ ├── rewards/ # Rewards calculation system
│ ├── services/ # Business logic services
│ ├── staking-contracts/ # Staking contract interfaces
│ ├── test-utils/ # E2E test utilities and helpers
│ ├── typescript-config/ # Shared TypeScript configuration
│ └── ui2/ # Modern UI component library
└── .changeset/ # Changesets for version management
Prerequisites
- Node.js >= 20
- pnpm 9.12.3 or higher
- Git
Installation
Clone the repository:
git clone https://github.com/recallnet/js-recall.git cd js-recallInstall dependencies:
pnpm installBuild all packages:
pnpm build
Usage
Each package in the monorepo has its own specific usage instructions. Here's a quick overview:
Applications
API (
apps/api): Multi-chain trading simulator APIcd apps/api pnpm devCompetitions (
apps/comps): Trading competitions web applicationcd apps/comps pnpm dev
Core Packages
- UI Library (
@recallnet/ui2): Modern UI componentsimport { Button } from "@recallnet/ui2/components/button";
See individual package READMEs for detailed usage instructions.
Development
The monorepo uses Turborepo for task orchestration. The following commands are available from root:
Common Commands
pnpm build: Build all packagespnpm dev: Run all packages in development mode (concurrency: 20)pnpm lint: Run all linterspnpm format: Format all filespnpm clean: Clean all dependencies
Version Management
pnpm changeset: Create a new changesetpnpm version-packages: Update package versionspnpm publish-packages: Publish to registry
Development Environment
The project includes configurations for:
- ESLint for code linting
- Prettier for code formatting
- TypeScript for type checking
- Changesets for version management
IDE Support
The repository includes configurations for:
- VSCode
- Cursor
- Zed
Development with Cursor
This project is optimized for development using Cursor, a modern IDE built for AI-assisted development. The repository includes .cursorrules configuration to ensure consistent development experience across the team.
Agent Mode Configuration
The repository uses Cursor's Agent mode for advanced development assistance:
.agent/directory is git-ignored and used by Cursor Agent for:- Task tracking
- Development plans
- Contextual information
- Specifications
Required Documentation Context
To get the most out of Cursor's AI features, add the following documentation to your Cursor Settings (Settings → Cursor Settings → Features → Docs):
Recall TypeScript SDK
https://docs.recall.network/tools/sdk/javascriptRecall Rust SDK
https://docs.recall.network/tools/sdk/rustTypeDoc Documentation
https://typedoc.org/Turborepo Documentation
https://turbo.build/repo/docs
Best Practices
- Use Agent mode when working on complex features or refactoring
- Let the Agent create development plans in
.agent/developer_plan.md - For new features, have the Agent create specifications in
.agent/spec.md - Reference GitHub issues in Agent-generated specs for traceability
- Review and approve Agent-generated plans before implementation
Tips
- The Agent can help navigate the monorepo structure
- Use Agent mode for code generation that follows project patterns
- Let the Agent assist with documentation and test creation
- Agent can help ensure compliance with project standards
Example Agent Prompts
Here are some useful prompts to help you work with the Cursor Agent:
Issue Analysis and Spec Creation
Use the gh CLI to read and then create a spec for a project to fix this issue: https://github.com/recallnet/js-recall/issues/126
Code Review and Documentation
Review the changes in the current branch and create a PR description that follows our standards. Include a summary of changes, testing notes, and any breaking changes.
Development Planning
Create a development plan for implementing feature X. Break it down into phases and include any necessary research links or documentation references.
Codebase Navigation
Help me understand how the authentication flow works in this codebase. Show me the relevant files and explain the process.
Testing and Quality
Review my changes and suggest appropriate test cases. Include unit tests, integration tests, and edge cases we should consider.
Contributing
PRs accepted. Please ensure your changes follow our coding standards and include appropriate tests.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT OR Apache-2.0, © 2025 Recall Contributors
Explorar proyectos relacionados
Cargando…