Spaace

The most gamified NFT Marketplace

Security Audit
9.8/10
Raised
$3M
Fastest platform
#1

context

Avicenne Studio helped Spaace build the Marketplace from scratch, and is now an advisor supporting Spaace’s internal tech team.

Heading

Heading

Building the fastest marketplace involves solving challenges of scalability, real-time performance, and secure financial transactions. Gamification features add complexity, requiring seamless integration while maintaining speed and security.

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Heading

Plus icon

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Heading

Plus icon

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Background
Spaace hired Avicenne to benefit from the expertise of a team that was able to build complex architectures and smart contracts, as well as great User Interfaces. They also needed help figuring out what limitations to their specifications the blockchain technology would enforce, and Avicenne helped them find the best alternatives without compromising the user experience.
Team
Avicenne’s team was formed by five web3 experts and a senior product manager. The developers worked with the product manager to specify the needs and express Spaace’s vision into technical features.Spaace has the ambition of being the most gamified NFT Marketplace ever, so we collaborated with Yu Kai Chou to build the whole gamification mechanisms on the platform.The team provided weekly sprint reports, documentation and regular changelogs to be as transparent as possible through their work with Spaace’s founders.In addition to the technical work needed, their role was to ensure code quality, clear documentation, reporting, sprints planning, and security audit preparations.
Co-designed, envisioned and crafted in collaboration with Yu-kai Chou, esteemed pioneer in the field of gamification. Responsible for gamifying the user experience of some of the world's most exceptional companies (Porsche, Google, Tesla, Uber, Microsoft), he has mastered the craft of gamified experiences for users worldwide.
Grid image
Background
Spaace hired Avicenne to benefit from the expertise of a team that was able to build complex architectures and smart contracts, as well as great User Interfaces. They also needed help figuring out what limitations to their specifications the blockchain technology would enforce, and Avicenne helped them find the best alternatives without compromising the user experience.
Team
Avicenne’s team was formed by five web3 experts and a senior product manager. The developers worked with the product manager to specify the needs and express Spaace’s vision into technical features.Spaace has the ambition of being the most gamified NFT Marketplace ever, so we collaborated with Yu Kai Chou to build the whole gamification mechanisms on the platform.The team provided weekly sprint reports, documentation and regular changelogs to be as transparent as possible through their work with Spaace’s founders.In addition to the technical work needed, their role was to ensure code quality, clear documentation, reporting, sprints planning, and security audit preparations.
Co-designed, envisioned and crafted in collaboration with Yu-kai Chou, esteemed pioneer in the field of gamification. Responsible for gamifying the user experience of some of the world's most exceptional companies (Porsche, Google, Tesla, Uber, Microsoft), he has mastered the craft of gamified experiences for users worldwide.
Grid image
Building the fastest marketplace ever
Building the fastest marketplace involves solving challenges of scalability, real-time performance, and secure financial transactions. Gamification features add complexity, requiring seamless integration while maintaining speed and security.
Grid image

The architecture of Spaace is the result of extensive thought and multiple iterations, involving both internal team members at Avicenne Studio and external experts. It was designed to address scalability challenges in terms of both features and user load.


The system is divided into microservices, all written in TypeScript using the Nest.js library, except for the front-end, which is built with React, and a specific “OpenRarity” microservice in Python with Flask. The latter was chosen due to technical limitations in calculating the entropy of NFT metadata, which is used to assign rarity scores.
These microservices are deployed using a serverless model, meaning they are containerized with Docker to start on-demand and shut down when idle, enabling horizontal scalability. When user demand spikes, multiple instances of each microservice can be spun up in milliseconds, ensuring smooth operation. Conversely, during low-traffic periods, costs are minimized by keeping only a few instances running.

To secure cryptographic secrets, Google Cloud Key Management Service (KMS) is used. This ensures that cryptographic keys never leave the secure environment, even when distributing rewards. Even if the backend is compromised, attackers cannot manipulate rewards, protecting the platform from significant financial loss. These keys are stored in highly secure data centers using Hardware Security Modules (HSM), certified by the National Institute of Standards and Technology (NIST).

Microservices communicate via Google Cloud Pub/Sub, a message broker that acts like a mailbox. Each microservice sends data to others through this queue system, ensuring messages are handled without overloading the receivers, even during high-traffic events. This system prevents message loss, crucial in environments with financial transactions.

A PostgreSQL database, hosted on Google Cloud SQL, stores all platform data, including NFTs, metadata, order books, and user progress. This setup allows for vertical scalability, where more computing power is allocated during peak times. Redis caching is employed to speed up retrieval of frequently accessed data, particularly for popular NFT collections, while TypeSense, an open-source search engine, powers the search functionality on the web interface, allowing users to find collections, users, or NFTs in milliseconds.
Architecture
Accordion image
  • Designed and deployed a microservices-based architecture utilizing TypeScript with Nest.js for most services, React for the frontend, and Python with Flask for the "OpenRarity" microservice.
  • implemented a serverless infrastructure using Docker for containerization, enabling automatic scaling based on user demand, ensuring high availability while minimizing costs during low-traffic periods.
  • Deployed and managed three environments (development, staging, and production) on Google Cloud Platform (GCP), fully automated using Terraform, ensuring seamless infrastructure scaling, consistency, and reproducibility across all stages of development.
Web 3 integration
  • Integrated support for various wallets, allowing users to seamlessly connect and interact with the Spaace platform for NFT transactions.
  • Developed Web3 interactions to enable users to buy and sell NFTs with a single click, leveraging pre-calculated cryptographic proofs, signed by users in their digital wallets to approve transactions.
  • Created auction mechanisms for NFTs, offering various formats such as fixed price, Dutch auctions (declining price over time), and traditional English auctions, all governed by blockchain-based smart contracts.
  • Indexed all existing NFTs, including their images, metadata, and statistical calculations, to ensure efficient display and processing within the platform.
  • Designed a liquidity system for company tokens, enabling token holders to provide liquidity on an exchange and earn a share of transaction fees, with smart contracts ensuring automatic settlements in the case of liquidity withdrawal.
Smart Contrat
  • Developed and deployed **18 smart contracts** governing various platform features, including NFT auctions, staking, liquidity management, and reward distributions.
  • Built staking mechanisms where company revenues are proportionally redistributed to token holders, while maintaining sufficient liquidity for development and operational costs.
ICO and Token Management
  • Managed the Initial Coin Offering (ICO) for Spaace, allowing public sale of company “shares” via the blockchain. Smart contracts and Web3 infrastructure were developed to facilitate this.
  • Built a rewards system for token holders, including voting rights and dividend-like distributions, based on the quantity of tokens held.
UI Integrations
  • Developed a user-friendly interface that simplifies Web3 interactions, allowing users to place buy/sell orders for NFTs, manage their token liquidity, and participate in platform activities like staking and auctions.
  • Integrated a Loyalty Pass system, inspired by video game mechanics, offering users missions and quests to earn points and rewards such as company shares or bonuses.
Other Notable Features
  • Built a secure backend using Google Cloud Key Management Service (KMS) to manage cryptographic secrets, ensuring secure transactions and reward distribution even in the event of backend compromise.
  • Implemented Redis for caching frequently accessed data and TypeSense for quick searching across large NFT datasets, ensuring fast response times on the platform.
Focus area
challenge
Building the fastest marketplace ever
Building the fastest marketplace involves solving challenges of scalability, real-time performance, and secure financial transactions. Gamification features add complexity, requiring seamless integration while maintaining speed and security.
Grid image

The architecture of Spaace is the result of extensive thought and multiple iterations, involving both internal team members at Avicenne Studio and external experts. It was designed to address scalability challenges in terms of both features and user load.


The system is divided into microservices, all written in TypeScript using the Nest.js library, except for the front-end, which is built with React, and a specific “OpenRarity” microservice in Python with Flask. The latter was chosen due to technical limitations in calculating the entropy of NFT metadata, which is used to assign rarity scores.
These microservices are deployed using a serverless model, meaning they are containerized with Docker to start on-demand and shut down when idle, enabling horizontal scalability. When user demand spikes, multiple instances of each microservice can be spun up in milliseconds, ensuring smooth operation. Conversely, during low-traffic periods, costs are minimized by keeping only a few instances running.

To secure cryptographic secrets, Google Cloud Key Management Service (KMS) is used. This ensures that cryptographic keys never leave the secure environment, even when distributing rewards. Even if the backend is compromised, attackers cannot manipulate rewards, protecting the platform from significant financial loss. These keys are stored in highly secure data centers using Hardware Security Modules (HSM), certified by the National Institute of Standards and Technology (NIST).

Microservices communicate via Google Cloud Pub/Sub, a message broker that acts like a mailbox. Each microservice sends data to others through this queue system, ensuring messages are handled without overloading the receivers, even during high-traffic events. This system prevents message loss, crucial in environments with financial transactions.

A PostgreSQL database, hosted on Google Cloud SQL, stores all platform data, including NFTs, metadata, order books, and user progress. This setup allows for vertical scalability, where more computing power is allocated during peak times. Redis caching is employed to speed up retrieval of frequently accessed data, particularly for popular NFT collections, while TypeSense, an open-source search engine, powers the search functionality on the web interface, allowing users to find collections, users, or NFTs in milliseconds.
Architecture
Accordion image
  • Designed and deployed a microservices-based architecture utilizing TypeScript with Nest.js for most services, React for the frontend, and Python with Flask for the "OpenRarity" microservice.
  • implemented a serverless infrastructure using Docker for containerization, enabling automatic scaling based on user demand, ensuring high availability while minimizing costs during low-traffic periods.
  • Deployed and managed three environments (development, staging, and production) on Google Cloud Platform (GCP), fully automated using Terraform, ensuring seamless infrastructure scaling, consistency, and reproducibility across all stages of development.
Web 3 integration
  • Integrated support for various wallets, allowing users to seamlessly connect and interact with the Spaace platform for NFT transactions.
  • Developed Web3 interactions to enable users to buy and sell NFTs with a single click, leveraging pre-calculated cryptographic proofs, signed by users in their digital wallets to approve transactions.
  • Created auction mechanisms for NFTs, offering various formats such as fixed price, Dutch auctions (declining price over time), and traditional English auctions, all governed by blockchain-based smart contracts.
  • Indexed all existing NFTs, including their images, metadata, and statistical calculations, to ensure efficient display and processing within the platform.
  • Designed a liquidity system for company tokens, enabling token holders to provide liquidity on an exchange and earn a share of transaction fees, with smart contracts ensuring automatic settlements in the case of liquidity withdrawal.
Smart Contrat
  • Developed and deployed **18 smart contracts** governing various platform features, including NFT auctions, staking, liquidity management, and reward distributions.
  • Built staking mechanisms where company revenues are proportionally redistributed to token holders, while maintaining sufficient liquidity for development and operational costs.
ICO and Token Management
  • Managed the Initial Coin Offering (ICO) for Spaace, allowing public sale of company “shares” via the blockchain. Smart contracts and Web3 infrastructure were developed to facilitate this.
  • Built a rewards system for token holders, including voting rights and dividend-like distributions, based on the quantity of tokens held.
UI Integrations
  • Developed a user-friendly interface that simplifies Web3 interactions, allowing users to place buy/sell orders for NFTs, manage their token liquidity, and participate in platform activities like staking and auctions.
  • Integrated a Loyalty Pass system, inspired by video game mechanics, offering users missions and quests to earn points and rewards such as company shares or bonuses.
Other Notable Features
  • Built a secure backend using Google Cloud Key Management Service (KMS) to manage cryptographic secrets, ensuring secure transactions and reward distribution even in the event of backend compromise.
  • Implemented Redis for caching frequently accessed data and TypeSense for quick searching across large NFT datasets, ensuring fast response times on the platform.
Focus area
challenge

Heading

Building the fastest marketplace ever lzlzlzlzlzlz

Building the fastest marketplace involves solving challenges of scalability, real-time performance, and secure financial transactions. Gamification features add complexity, requiring seamless integration while maintaining speed and security.

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Heading

Plus icon

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Heading

Plus icon

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Results

+22% Faster than the fastest platform

Our new infrastructure delivers impressive response times, loading NFTs in just 124ms per collection, compared to 484ms on OpenSea, 160ms on Blur, and 655ms on LooksRare. These results were achieved on our development servers, with production expected to be 4x faster than our largest competitor.

Top-tier Smart Contract Quality & Security

Spaace’s smart contracts scored 9.8/10 in Hacken’s audit, placing us among the top 30% of projects of this scale. No critical security issues were found, and all minor warnings were resolved swiftly, providing users with a secure and reliable platform.