Code Monkey home page Code Monkey logo

x-writer's Introduction

๐Ÿ“ X-Writer

X-Writer is your own AI writing assistant that takes a title as input and generates a full blog post for you.

x-writer.mov

๐Ÿฆ„ Features

  • Next.js 13
  • React 18
  • TypeScript 4
  • Tailwind CSS 3
  • Path Mapping (for absolute imports)
  • GPT-3 and OpenAI

๐Ÿ—„๏ธ Environment Variables

Create a .env.local file in your root directory with the OpenAI API key.

OPENAI_API_KEY=GET_YOUR_OWN_KEY_FROM_OPENAI

๐Ÿš€ Quick start

To run this project locally:

npm i
npm run dev

๐ŸŽ“ Learning Next.js

Looking for more guidance? Full documentation available on the official Next.js website.

๐Ÿ’ซ Deploy

Note: The maximum execution timeout for Vercel Serverless Functions is 10 seconds when deployed on a Personal Account (Hobby plan). For Teams, the execution timeout is 60 seconds (Pro plan) or 900 seconds (Enterprise plan).

x-writer's People

Contributors

eneax avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

x-writer's Issues

Great script!

Hello, trying your app, and was able to launch it on Vercel and looks like it needs to. Im having an issue when I click the button to generate, if just spins. It was working correctly on my localhost, and it did generate, but not on Vercel. Am I missing something?

Thanks for the help!

Installation isn't working as expected

Following the instructions in the "readme"

$ npm i
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '^14.18.0 || >=16.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '>=14.6.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '^14.18.0 || >=16.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }

added 329 packages, and audited 330 packages in 10s

98 packages are looking for funding
run npm fund for details

1 high severity vulnerability

To address all issues, run:
npm audit fix

Run npm audit for details.

Now I ran npm audit fix
$ npm audit fix
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '^14.18.0 || >=16.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '>=14.6.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '^14.18.0 || >=16.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }

changed 1 package, and audited 330 packages in 807ms

98 packages are looking for funding
run npm fund for details

$ npm fund
[email protected]
โ”œโ”€โ”ฌ https://opencollective.com/eslint
โ”‚ โ”‚ โ””โ”€โ”€ [email protected], @eslint/[email protected], [email protected]
โ”‚ โ”œโ”€โ”€ https://github.com/sponsors/nzakas
โ”‚ โ”‚ โ””โ”€โ”€ @humanwhocodes/[email protected]
โ”‚ โ”œโ”€โ”€ https://github.com/sponsors/epoberezkin
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ https://github.com/chalk/chalk?sponsor=1
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ https://github.com/chalk/ansi-styles?sponsor=1
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ https://github.com/sponsors/sindresorhus
โ”‚ โ”‚ โ””โ”€โ”€ [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
โ”‚ โ”œโ”€โ”€ https://github.com/sponsors/mysticatea
โ”‚ โ”‚ โ””โ”€โ”€ [email protected], [email protected]
โ”‚ โ”œโ”€โ”€ https://opencollective.com/js-sdsl
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ https://github.com/sponsors/feross
โ”‚ โ”‚ โ””โ”€โ”€ [email protected], [email protected]
โ”‚ โ””โ”€โ”€ https://github.com/sponsors/isaacs
โ”‚ โ””โ”€โ”€ [email protected], [email protected]
โ”œโ”€โ”ฌ https://opencollective.com/postcss/
โ”‚ โ”‚ โ””โ”€โ”€ [email protected], [email protected], [email protected], [email protected], [email protected]
โ”‚ โ”œโ”€โ”€ https://opencollective.com/browserslist
โ”‚ โ”‚ โ””โ”€โ”€ [email protected], [email protected], [email protected]
โ”‚ โ””โ”€โ”€ https://www.patreon.com/infusion
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”€ https://opencollective.com/typescript-eslint
โ”‚ โ””โ”€โ”€ @typescript-eslint/[email protected], @typescript-eslint/[email protected], @typescript-eslint/[email protected], @typescript-eslint/[email protected], @typescript-eslint/[email protected]
โ”œโ”€โ”ฌ https://opencollective.com/unts/projects/eslint-import-resolver-ts
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ https://github.com/privatenumber/get-tsconfig?sponsor=1
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”€ https://opencollective.com/unts
โ”‚ โ””โ”€โ”€ [email protected], @pkgr/[email protected]
โ”œโ”€โ”€ https://github.com/sponsors/ljharb
โ”‚ โ””โ”€โ”€ [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
โ”œโ”€โ”€ https://opencollective.com/core-js
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”€ https://github.com/sponsors/RubenVerborgh
โ”‚ โ””โ”€โ”€ [email protected]
โ””โ”€โ”€ https://paulmillr.com/funding/
โ””โ”€โ”€ [email protected]

Information about my computer
$ npm --version
7.5.2

$ js --version
v12.22.12

System: Kernel: 6.0.0-6mx-amd64 [6.0.12-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-6.0.0-6mx-amd64
root=UUID= ro quiet splash
Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7
dm: LightDM 1.26.0 Distro: MX-21.3_ahs_x64 Wildflower January 15 2023
base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Desktop System: Gigabyte product: X570 AORUS ELITE WIFI v: -CF serial:
Mobo: Gigabyte model: X570 AORUS ELITE WIFI serial:
UEFI: American Megatrends LLC. v: F37d date: 07/20/2022
CPU: Info: 6-Core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3 family: 19 (25)
model-id: 21 (33) stepping: 0 microcode: A201016 cache: L2: 3 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 88805
Speed: 2200 MHz min/max: 2200/3700 MHz boost: enabled Core speeds (MHz): 1: 2200
2: 2200 3: 2200 4: 2198 5: 2199 6: 2200 7: 2200 8: 2200 9: 2200 10: 2200 11: 2200
12: 2200
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: always-on,
RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics: Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: Micro-Star MSI
driver: nvidia v: 520.56.06 bus-ID: 08:00.0 chip-ID: 10de:2504 class-ID: 0300
Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: loaded: nvidia
display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0")
s-diag: 777mm (30.6")
Monitor-1: HDMI-0 res: 2560x1440 dpi: 109 size: 597x336mm (23.5x13.2")
diag: 685mm (27")
OpenGL: renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2 v: 4.6.0 NVIDIA 520.56.06
direct render: Yes

I don't know how to proceed from here

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.