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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@poppyseed/squid-sdk

v0.5.0

Published

GraphQL query builder for Lastic

Downloads

29

Readme

GraphQL Query Builder for LasticXYZ

Welcome to the GraphQL query builder, an integral part of the LasticXYZ project ecosystem. This tool is designed to streamline the process of constructing GraphQL queries specifically tailored for the Lastic platform. It builds upon the innovative work done in the kodadot/uniquery repository and has been adapted and extended by LasticXYZ. Special thanks to @vikiival for the foundational code that inspired this project.

Features

  • Custom GraphQL Queries: Easily build custom queries tailored to your specific data retrieval needs for the Lastic platform.
  • Simplified Syntax: Leverages a simplified syntax for constructing complex GraphQL queries, making your development process faster and more intuitive.
  • High Performance: Designed for efficiency and speed, enabling quick integration and response times in your Lastic applications.

Getting Started

Installation for Development

To get started with development, clone the repository and install the dependencies using pnpm. Then, you can run the development server or execute tests as follows:

# Install dependencies
pnpm i

# Run the development server
pnpm run dev

# Execute tests
pnpm run test

Usage in Your Project

Installation

Before using the GraphQL query builder in your project, ensure it's installed by running:

# Install @poppyseed/squid-sdk from pnpm
pnpm install @poppyseed/squid-sdk

Basic Usage

Here's a quick example to get you started with building and fetching GraphQL queries:

import { getClient, SaleInitializedEvent } from '@poppyseed/squid-sdk';

// Initialize the client
const client = getClient();

// Build the query
const query = client.eventAllSaleInitialized();

// Fetch the results
const result: GraphLike<SaleInitializedEvent[]> = await client.fetch("rococo", query);

This example demonstrates how to import necessary components from the SDK, initialize the client, build a query, and then fetch the data.

Configuration

The @poppyseed/squid-sdk package is configured as follows, adhering to standards that ensure its wide compatibility and performance:

  • Version: 0.0.5
  • License: GPL-3.0
  • Module System: ES Modules (with CommonJS fallback)
  • Type Definitions: Included for TypeScript support

For a complete list of configurations, dependencies, and scripts, refer to the package.json details provided.

Contributing

We welcome contributions to the GraphQL query builder project. Whether it's bug reports, feature requests, or code contributions, your input is valuable to us. Please visit our GitHub repository to open an issue or submit a pull request.

License

This project is licensed under the GPL-3.0 license. For more information, see the LICENSE file in the repository.

For any queries or issues, please visit our GitHub Issues page.


This documentation is part of the LasticXYZ project. All rights reserved.