Socket
Book a DemoInstallSign in
Socket

@flapper/gatsby-source-flapper

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flapper/gatsby-source-flapper

A flexible alternative to GraphQL for Gatsby

0.1.8
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Flapper for Gatsby

A flexible alternative to GraphQL for Gatsby.

Check out our documentation.

const pipelines = {
    page: [
        SourceFilesRecursively("pages/", [".tsx"]),
        SetUrl("{{relativePath}}"),
        RenderTemplate("{{path}}")
    ],
    post: [
        SourceMatchedFiles("posts/{{category_name}}/{{name}}.mdx"),
        SetUrl("posts/{{name}}"),
        BindMdx("{{path}}"),
        RenderTemplate("src/templates/MDXPost.tsx")
    ]
}

GraphQL is a sledgehammer

Gatsby's GraphQL is crazy powerful. You can do anything with it!

But it also takes a lot of effort to get your data into GraphQL, just to get it out again.

If you have your data on hand, Flapper just lets you use it.

Invent your own metaphors

Most SSGs try to lock you into "pages" and "posts" with "tags" and "categories".

Flapper lets you imagine metaphors useful for your site.

Want a "project" metaphor? Or a "article series" metaphor? Just make it.

Dead simple site generation

Use simple functions to build your data model using regular javascript data.

Map your data to URLs and Templates, get static HTML.

Templates are simply components with the full power of React.

Keywords

gatsby

FAQs

Package last updated on 20 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.