Coder Social home page Coder Social logo

onedoclabs / onedoc Goto Github PK

View Code? Open in Web Editor NEW
63.0 1.0 0.0 219 KB

The first developer-oriented document platform. Generate, host and track PDFs with a single API, beautifully.

Home Page: https://www.onedoclabs.com/

TypeScript 29.59% JavaScript 11.30% Python 58.67% CSS 0.44%
pdf document-generator html sdk api document nodejs react ycombinator react-print-pdf

onedoc's Introduction

React email cover

Onedoc
Onedocs makes it easy for developers to design beautiful PDFs. With our API, we make document generation simpler, faster, better.

Onedoc

Stop spending hours making ugly documents, and start creating a dynamic experience now!

Onedoc makes it easy for developers to generate beautiful PDFs. It is a comprehensive solution with:

The first developer-oriented document platform. Generate, host and track documents with a single API.

Onedoc_demo_compressed.mp4

Why do documents feel so outdated❓

Billions of PDFs are generated daily: invoices, contracts, receipts, tickets,… yet there are no toolkits to allow companies to easily build them. Developers need to get their hands dirty to produce basic documents - let alone beautiful ones. This makes PDFs hard to dynamize and maintain, leading to poor brand experience and flawed analytics.

What does Onedoc bring to the table ✅

Onedoc bridges the gap between developers and documents. We make modern web technologies work for PDF generation: React, Tailwind, … In turn, developers can make highly dynamic documents and iterate quickly. What used to take hours now takes seconds with our API.

To make it even faster, we maintain an open-source library of beautiful components and templates and we offer a hosting and tracking service to better understand your documents.

Our goal 🎯

Onedoc is dedicated to transforming document management. We aim to empower businesses and developers to create, manage, and utilize documents more effectively, driving productivity and innovation in today's fast-paced, digital-first world.

What brought us here 🧐

We previously worked with giant firms, where documents were central to most workflows. They would get passed around, get into client’s hands, and everyone would complain about their layout and lack of proper information. While at a large mining company, clients would want to see shipping information and product details on their invoices. However, the development team wouldn’t be able to update these documents because the task was too complex and expensive.

SDK 💻

Our Team

  • Auguste LEFEVRE
    EPF Lausanne and ETH Zürich graduate in Computer Science, Auguste built extensive knowledge in machine intelligence and data analytics. Continuing his academic journey with a PhD in Quantitative Finance at the National University of Singapore, he left to co-found Onedoc with Pierre and Titouan with the idea to reshape the document management experience.

  • Titouan LAUNAY
    INSA Lyon graduate in civil engineering and architecture, Titouan is a self-taught computer programmer, developing and selling software to businesses since the age of 12. Co-founded an IT consulting company while studying, providing companies with data management and cloud consulting services. He now puts his effort into improving document management around the world.

  • Pierre DORGE
    EPF Lausanne and ETH Zürich graduate in Computer Science specializing in machine intelligence and information security. Pierre built extensive experience in software engineering and data management as the co-founder of an IT consulting company and now decided to focus on revolutionizing the document management experiences.

Contributing 🫂

There are many ways you can contribute to the sucees of Onedoc :

intro

onedoc's People

Contributors

augustelef avatar dependabot[bot] avatar pierredge avatar titou325 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

onedoc's Issues

Nodejs example crash

Hi,

I wanted to try your solution but the nodejs example of the documentation doesn't seems to work.

I followed the getting started tutorial at https://app.onedoclabs.com/ and when I run it it crashes.

const { Onedoc } = require("@onedoc/client");
const fs = require("fs");

const MY_API_KEY = "xxxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx";

const onedoc = new Onedoc(MY_API_KEY);

(async () => {
  const { file, link, info, error } = await onedoc.render({
    html: "<h1>Hello, world!</h1>",
  });

  fs.writeFileSync("output.pdf", Buffer.from(file));
})();

The log I get:

$ npm run start

> [email protected] start
> node index.js


{
  uploadURL: 'https://xxxxxxxxxxxxxxxxxxxx.supabase.co/storage/v1/upload/resumable',
  username: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  password: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  bucket: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  signedUrls: [
    {
      signedUrl: 'https://xxxxxxxxxxxxxxxxxxxx.supabase.co/storage/v1/object/upload/sign/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/index.html?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
      path: '/index.html',
      token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    }
  ]
}
undefined:1


SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:5329:19)
    at successSteps (node:internal/deps/undici/undici:5300:27)
    at fullyReadBody (node:internal/deps/undici/undici:1447:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async specConsumeBody (node:internal/deps/undici/undici:5309:7)
    at async Onedoc.render (/private/tmp/test-onedoc/node_modules/@onedoc/client/dist/index.js:196:17)
    at async /private/tmp/test-onedoc/index.js:7:39

Node.js v20.11.0

Am I doing anything wrong ?

Thanks,

Yohann

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.