Cointime

Download App
iOS & Android

Kwil Extensions - Redefining the Future of Decentralised Databases

Validated Project

Web3 is booming, and Arweave is becoming a popular infrastructure choice for developers. PermaDAO is a community where everyone can contribute to the Arweave ecosystem. It's a place to propose and tackle tasks related to Arweave, with the support and feedback of the entire community. Join PermaDAO and help shape Web3!  

Author: Azriel @ Contributor of PermaDAO

Reviewer: Xiaosong Hu @ Contributor of PermaDAO


Kwil has once again led the charge in transforming the blockchain landscape with the introduction of Kwil Extensions.

Kwil Extensions opens up a whole new world for decentralised databases by enabling developers to connect to any blockchain, implement advanced logic, and more. With the added potential of an extension marketplace in the future, we step into the new era of modular database software.

Let's take a closer look!

We're really excited about what people are already building with extensions. In particular, we have seen builders create extensions that enable data access control based on on-chain state, as well as accrue the value of data in their database back to on-chain assets. This is a fundamentally new method of value accrual in web3, enabling entirely new business models for dApps, DAOs, and protocols. We're beyond excited about what this unlocks for the space - Brennan Lamey, Kwil, Founder

Kwil Extensions

With extensions, you can:

  • Token-gate access to data, for any token, on any chain.
  • Create automated token incentives for sharing and composing on data.
  • Implement fine-grained access control mechanisms and implement advanced credentialing systems for data access.
  • Execute stateless functions to manipulate data as it is passed to a database.

Decoding Extensions

Kwil Extensions are stateless applications that function alongside a Kwil database. The genius of these extensions lies in their ability to inject custom functions straight into database queries. This allows developers to compose complex logic that SQL alone cannot achieve. They offer the convenience of automatically injecting data from external sources into your database, pushing data from your database to external targets such as smart contracts, and enabling intricate access control and verification mechanisms.

Being containerised applications, extensions can be authored in any language and subsequently imported into a Kwil database. While queries are executed on the database, the corresponding action logic also runs simultaneously.

An average of 100 lines of code is needed for an extension.

The Power of Extensions

The creative possibilities that extensions bring to the table are virtually boundless. They enable you to connect to any external data source and construct logic surrounding that data. This allows functionality such as such as Token Gating, Token Incentives, Access Control, and Stateless Functions.

  • Token Gating empowers developers to limit data access based on on-chain assets. Extensions can establish requirements like token possession, fund deposits, NFT ownership, etc., for database access. In other words, a user needs to be holding a certain asset in the wallet that is trying to access the Kwil database.

           Example: Private companies call sell memberships to users to access their databases. The memberships come with an NFT that allows access to the private data.

  • Meanwhile, Token Incentives can autonomously distribute token rewards to users for generating data, encouraging protocols around incentives for sharing composite data and earning automatic rewards.

           Example: A charity asks users to help make a complete database of nutritional data for all major food groups to benefit and promote healthier eating. In order to get people actively adding to the database, they incentivise them by distributing tokens in exchange for that data.

  • Through Access Control, extensions can link to external authentication sources to supervise data access, providing robust privacy and authentication for decentralized data.

           Example: A Web2 company can instantly start using Kwil decentalised databases to store their data and simply require users to complete a text message verification via its internal centralised system.

  • Finally, Stateless Functions allow developers to craft stateless functions callable from within a Kwil database, useful for creating intermediary logic to manipulate data sent to the database before storage.

           Example: Though users might submit data to a Kwil database in various formats, an Extension could automatically reformat the data so that it follows a similar structure to the existing data within the database.

Starting with Extensions

To deploy a custom extension, it must be embedded directly into a deployed Kwil network. This process requires running a local Kwil node with an extension server. Kwil also offers managed hosting for Kwil nodes equipped with an extension server for production purposes.

For creating extensions, Kwil offers Golang and TypeScript/JavaScript SDKs. Once an extension is deployment-ready, it can be plugged into the Extension Deployment Script to run on a local Kwil node.


  🔗 More about PermaDAO :Website | Twitter | Telegram | Discord | Medium | Youtube

Comments

All Comments

Recommended for you

  • US September PPI Rises 6.3% Year-on-Year, Exceeding Market Expectations

    The US Producer Price Index (PPI) for September recorded a year-on-year increase of 6.3%, the highest since May 2026, surpassing market expectations of 5.3%. The month-on-month PPI for September was reported at 1.3%, significantly higher than the market forecast of 0.5%. Additionally, US retail sales for September showed a month-on-month increase of 0.8%, also exceeding market expectations.

  • U.S. Initial Jobless Claims at 199,000 Last Week, Expected 200,000

    On October 15, the number of initial jobless claims in the U.S. last week was 199,000, expected to be 200,000, with the previous value revised from 197,000 to 198,000.

  • NYC Comptroller Urges Anthropic to Pause IPO Plans

    On October 15, New York City Comptroller Mark Levine stated in an interview that he has written to Anthropic CEO Dario Amodei, urging the company to pause its planned initial public offering (IPO). The letter calls for Anthropic to suspend its IPO plans until it can comprehensively and transparently address concerns related to AI safety, governance, and development that the company itself has raised. Levine wrote that the company should focus on mitigating these risks rather than moving forward with the IPO. Currently, New York City has an investment exposure of less than $10 million in Anthropic through the private market.

  • BTC Falls Below $81,000

    Market data shows that BTC has fallen below $81,000, currently priced at $80,997.1, with a 24-hour decline of 2.84%. The market is experiencing significant volatility, so please ensure proper risk management.

  • FTC Requests Documents from Anthropic and OpenAI

    On October 15, according to Axios: The U.S. Federal Trade Commission (FTC) has requested documents related to the incident from Anthropic and OpenAI. The FTC issued a civil subpoena to the AI companies on Wednesday.

  • Cook: Apple AI Approved in China, Testing Version Launching Late October

    On October 15, Apple CEO Tim Cook revealed in an interview in Shanghai that Apple AI has been approved in China. A testing version will be launched later in October, featuring initial functions such as real-time translation, writing assistance, and image removal, while Siri AI will not be included.

  • UBS: Fed Expected to Raise Rates for the Third Time in March 2027

    On October 15, UBS stated that it expects the Federal Reserve to implement its third rate hike in March 2027, revising its previous forecast that the rate hike cycle would conclude in December.

  • BTC Surpasses $81,000

    Market data shows that BTC has surpassed $81,000, currently priced at $81,002, with a 24-hour decline of 2.94%. The market is experiencing significant volatility, so please ensure proper risk management.

  • US Spot Bitcoin ETF Sees $261.4 Million Net Outflow Yesterday

    On October 15, according to monitoring data from Farside Investors, the US spot Bitcoin ETF experienced a net outflow of $261.4 million yesterday.

  • Over $476 Million Liquidated in the Last Hour, Primarily Long Positions

    Data shows that in the past hour, a total of $476 million was liquidated across the network, with long positions accounting for $457 million and short positions for $19.7945 million, primarily affecting long positions. Among these, $200 million in ETH and $116 million in BTC were liquidated.